MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
Ball Class Reference
+ Collaboration diagram for Ball:

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 ( )
Ball::~Ball ( )
virtual

References myGraphicsItem, and myObjectParams.

Member Function Documentation

BallColor Ball::color ( ) const
double Ball::direction ( ) const
QGraphicsSvgItem * Ball::graphicsItem ( )
const std::wstring & Ball::id ( ) const
bool Ball::isMarkedForDeletion ( ) const
bool Ball::isMine ( ) const
bool Ball::isVisible ( ) const
void Ball::markForDeletion ( bool  mark)
const std::wstring & Ball::name ( ) const
ObjectParams * Ball::objectParams ( )
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().

double Ball::myDirection
protected

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().

bool Ball::myMarkedForDeletion
protected
ObjectParams* Ball::myObjectParams
protected
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 Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)