MAK RTIspy API Documentation for HLA 1516
Public Member Functions | Protected Attributes
Ball Class Reference
+ Collaboration diagram for Ball:

List of all members.

Public Member Functions

 Ball ()
virtual ~Ball ()
BallColor color () const
void setColor (BallColor newColor)
short x () const
void setX (short newXCoord)
short y () const
void setY (short newYCoord)
void setLocation (short newXCoord, short newYCoord)
unsigned short size () const
void setSize (unsigned short newSize)
double direction () const
void setDirection (double newDirection)
unsigned short speed () const
void setSpeed (unsigned short newSpeed)
bool isMine () const
void setIsMine (bool newIsMine)
bool isMarkedForDeletion () const
void markForDeletion (bool mark)
bool isVisible () const
void setVisible (bool visible)
const std::wstring & id () const
const std::wstring & name () const
ObjectParamsobjectParams ()
const ObjectParamsobjectParams () const
void setObjectParams (ObjectParams *newParams)
QGraphicsSvgItem * graphicsItem ()
void setGraphicsItem (QGraphicsSvgItem *item)

Protected Attributes

ObjectParamsmyObjectParams
QGraphicsSvgItem * myGraphicsItem
BallColor myColor
short myX
short myY
short mySize
double myDirection
unsigned short mySpeed
bool myIsMine
bool myIsVisible
bool myMarkedForDeletion

Constructor & Destructor Documentation

Ball::~Ball ( ) [virtual]

References myGraphicsItem, and myObjectParams.


Member Function Documentation

QGraphicsSvgItem * Ball::graphicsItem ( )
const std::wstring & Ball::id ( ) const
bool Ball::isMine ( ) const
bool Ball::isVisible ( ) const
void Ball::markForDeletion ( bool  mark)
const std::wstring & Ball::name ( ) const
const ObjectParams * Ball::objectParams ( ) const

References myObjectParams.

void Ball::setColor ( BallColor  newColor)
void Ball::setDirection ( double  newDirection)
void Ball::setGraphicsItem ( QGraphicsSvgItem *  item)
void Ball::setIsMine ( bool  newIsMine)
void Ball::setLocation ( short  newXCoord,
short  newYCoord 
)

References myX, and myY.

Referenced by BallController::addBall().

void Ball::setObjectParams ( ObjectParams newParams)
void Ball::setSize ( unsigned short  newSize)
void Ball::setSpeed ( unsigned short  newSpeed)
void Ball::setVisible ( bool  visible)
void Ball::setX ( short  newXCoord)
void Ball::setY ( short  newYCoord)
unsigned short Ball::size ( ) const
unsigned short Ball::speed ( ) const
short Ball::x ( ) const
short Ball::y ( ) const

Member Data Documentation

BallColor Ball::myColor [protected]

Referenced by color(), and setColor().

Referenced by direction(), and setDirection().

QGraphicsSvgItem* Ball::myGraphicsItem [protected]
bool Ball::myIsMine [protected]

Referenced by isMine(), and setIsMine().

bool Ball::myIsVisible [protected]

Referenced by isVisible(), and setVisible().

short Ball::mySize [protected]

Referenced by setSize(), and size().

unsigned short Ball::mySpeed [protected]

Referenced by setSpeed(), and speed().

short Ball::myX [protected]

Referenced by setLocation(), setX(), and x().

short Ball::myY [protected]

Referenced by setLocation(), setY(), and y().


The documentation for this class was generated from the following files:

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)