Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PlayerPoseCollection Class Reference

This class contains the PlayerPoses of all detected robots. More...

#include <PlayerPoseCollection.h>

Collaboration diagram for PlayerPoseCollection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PlayerPoseCollection ()
 Constructor.

 PlayerPoseCollection (PlayerPoseCollection &other)
 Copy-Constructor.

 ~PlayerPoseCollection ()
 Destructor.

void setOwnPlayerPose (int index, const PlayerPose &pose)
 sets a player pose of the own team at a given index

void setOwnPlayerPose (int index, const double &x, const double &y, const double &rotation)
 sets a player pose of the own team at a given index

void setOwnPlayerPose (int index, const double &x, const double &y, const double &rotation, const double &validity)
 sets a player pose of the own team at a given index

const PlayerPosegetOwnPlayerPose (int index) const
 returns a player pose of the own team for a given index

void setOpponentPlayerPose (int index, const PlayerPose &pose)
 sets a player pose of the opponent team at a given index

void setOpponentPlayerPose (int index, const double &x, const double &y, const double &rotation)
 sets a player pose of the opponent team at a given index

void setOpponentPlayerPose (int index, const double &x, const double &y, const double &rotation, const double &validity)
 sets a player pose of the opponent team at a given index

const PlayerPosegetOpponentPlayerPose (int index) const
 returns a player pose of the opponent team for a given index

void operator= (const PlayerPoseCollection &other)
 copies another PlayerPoseCollection to this one


Public Attributes

int numberOfOpponentPlayers
 Number of located opponent robots.

int numberOfOwnPlayers
 Number of located own robots.


Protected Attributes

PlayerPose opponentPlayerPoses [4]
 A list of located opponent robots.

PlayerPose ownPlayerPoses [3]
 A list of located own robots.


Friends

Inoperator>> (In &stream, PlayerPoseCollection &playerPoseCollection)
 give the In operator acess to protected members

Outoperator<< (Out &stream, const PlayerPoseCollection &playerPoseCollection)
 give the Out operator acess to protected members


Detailed Description

This class contains the PlayerPoses of all detected robots.

Definition at line 142 of file PlayerPoseCollection.h.


Constructor & Destructor Documentation

PlayerPoseCollection::PlayerPoseCollection  ) 
 

Constructor.

Definition at line 21 of file PlayerPoseCollection.cpp.

References numberOfOpponentPlayers, and numberOfOwnPlayers.

PlayerPoseCollection::PlayerPoseCollection PlayerPoseCollection other  ) 
 

Copy-Constructor.

Definition at line 31 of file PlayerPoseCollection.cpp.

PlayerPoseCollection::~PlayerPoseCollection  ) 
 

Destructor.

Definition at line 27 of file PlayerPoseCollection.cpp.


Member Function Documentation

void PlayerPoseCollection::setOwnPlayerPose int  index,
const PlayerPose pose
[inline]
 

sets a player pose of the own team at a given index

Definition at line 155 of file PlayerPoseCollection.h.

References ownPlayerPoses.

Referenced by GT2004PlayersLocator::execute(), and operator=().

void PlayerPoseCollection::setOwnPlayerPose int  index,
const double &  x,
const double &  y,
const double &  rotation
[inline]
 

sets a player pose of the own team at a given index

Definition at line 158 of file PlayerPoseCollection.h.

References ownPlayerPoses, and PlayerPose::setPose().

Here is the call graph for this function:

void PlayerPoseCollection::setOwnPlayerPose int  index,
const double &  x,
const double &  y,
const double &  rotation,
const double &  validity
[inline]
 

sets a player pose of the own team at a given index

Definition at line 162 of file PlayerPoseCollection.h.

References ownPlayerPoses, PlayerPose::setPose(), and PlayerPose::setValidity().

Here is the call graph for this function:

const PlayerPose& PlayerPoseCollection::getOwnPlayerPose int  index  )  const [inline]
 

returns a player pose of the own team for a given index

Definition at line 169 of file PlayerPoseCollection.h.

References ownPlayerPoses.

Referenced by AngleSymbols::calculateCombinedAngles(), GT2004ObstaclesLocator::determineNextFreeTeammate(), GT2004PlayersLocator::execute(), GT2004StrategySymbols::getAngleToTeammate(), operator=(), and Field::placePlayers().

void PlayerPoseCollection::setOpponentPlayerPose int  index,
const PlayerPose pose
[inline]
 

sets a player pose of the opponent team at a given index

Definition at line 172 of file PlayerPoseCollection.h.

References opponentPlayerPoses.

Referenced by GT2004PlayersLocator::execute(), and operator=().

void PlayerPoseCollection::setOpponentPlayerPose int  index,
const double &  x,
const double &  y,
const double &  rotation
[inline]
 

sets a player pose of the opponent team at a given index

Definition at line 175 of file PlayerPoseCollection.h.

References opponentPlayerPoses, and PlayerPose::setPose().

Here is the call graph for this function:

void PlayerPoseCollection::setOpponentPlayerPose int  index,
const double &  x,
const double &  y,
const double &  rotation,
const double &  validity
[inline]
 

sets a player pose of the opponent team at a given index

Definition at line 179 of file PlayerPoseCollection.h.

References opponentPlayerPoses, PlayerPose::setPose(), and PlayerPose::setValidity().

Here is the call graph for this function:

const PlayerPose& PlayerPoseCollection::getOpponentPlayerPose int  index  )  const [inline]
 

returns a player pose of the opponent team for a given index

Definition at line 186 of file PlayerPoseCollection.h.

References opponentPlayerPoses.

Referenced by operator=(), Field::placePlayers(), and GTStandardConverter::setData().

void PlayerPoseCollection::operator= const PlayerPoseCollection other  ) 
 

copies another PlayerPoseCollection to this one

Definition at line 36 of file PlayerPoseCollection.cpp.

References getOpponentPlayerPose(), getOwnPlayerPose(), numberOfOpponentPlayers, numberOfOwnPlayers, setOpponentPlayerPose(), and setOwnPlayerPose().

Here is the call graph for this function:


Friends And Related Function Documentation

In& operator>> In stream,
PlayerPoseCollection playerPoseCollection
[friend]
 

give the In operator acess to protected members

Parameters:
stream The stream from which is read.
playerPoseCollection The PlayerPoseCollection object.
Returns:
The stream.

Definition at line 51 of file PlayerPoseCollection.cpp.

Out& operator<< Out stream,
const PlayerPoseCollection playerPoseCollection
[friend]
 

give the Out operator acess to protected members

Parameters:
stream The stream to write on.
playerPoseCollection The PlayerPoseCollection object.
Returns:
The stream.

Definition at line 71 of file PlayerPoseCollection.cpp.


Member Data Documentation

int PlayerPoseCollection::numberOfOpponentPlayers
 

Number of located opponent robots.

Definition at line 192 of file PlayerPoseCollection.h.

Referenced by GT2004PlayersLocator::execute(), operator<<(), operator=(), operator>>(), Field::placePlayers(), PlayerPoseCollection(), and GTStandardConverter::setData().

int PlayerPoseCollection::numberOfOwnPlayers
 

Number of located own robots.

Definition at line 195 of file PlayerPoseCollection.h.

Referenced by AngleSymbols::calculateCombinedAngles(), GT2004ObstaclesLocator::determineNextFreeTeammate(), GT2004PlayersLocator::execute(), GT2004StrategySymbols::getAngleToTeammate(), operator<<(), operator=(), operator>>(), Field::placePlayers(), and PlayerPoseCollection().

PlayerPose PlayerPoseCollection::opponentPlayerPoses[4] [protected]
 

A list of located opponent robots.

Definition at line 205 of file PlayerPoseCollection.h.

Referenced by getOpponentPlayerPose(), operator<<(), operator>>(), and setOpponentPlayerPose().

PlayerPose PlayerPoseCollection::ownPlayerPoses[3] [protected]
 

A list of located own robots.

Definition at line 208 of file PlayerPoseCollection.h.

Referenced by getOwnPlayerPose(), operator<<(), operator>>(), and setOwnPlayerPose().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:10:40 2004 for GT2004 by doxygen 1.3.6