Public Member Functions |
| | BallController (BallMap *data, DdmRegionMap *regionData) |
| virtual | ~BallController () |
| virtual bool | createAndJoinFederation (const std::wstring &federation, const std::wstring &federateType, const std::wstring &federateName=std::wstring(), bool includeInterExt=false)=0 |
| virtual bool | resignAndDestroyFederation ()=0 |
| virtual bool | subscribe ()=0 |
| virtual bool | unsubscribe ()=0 |
| virtual void | update () |
| virtual void | addBall (int x, int y) |
| virtual void | deleteBall (const std::wstring id)=0 |
| virtual void | acquireBall (const std::wstring id)=0 |
| virtual void | divestBall (const std::wstring id)=0 |
| virtual bool | subscribeWithRegion (int xLowerBound, int yLowerBound, int xUpperBound, int yUpperBound)=0 |
| virtual bool | unsubscribeWithRegions (bool resubscribeWithoutRegion)=0 |
| virtual void | setDimensions (int minX, int minY, int maxX, int maxY) |
| virtual void | setBallColor (BallColor) |
| virtual const std::wstring & | federateId () const =0 |
| virtual const std::wstring & | federateType () const =0 |
| virtual const std::wstring & | federateName () const =0 |
| virtual const std::wstring & | federationName () const =0 |
| virtual bool | isFederateNameSupported () const =0 |
| virtual bool | isInteractionExtensionSupported () const =0 |
| virtual bool | isDdmEnabled () const |
| virtual bool | isOwnershipTransferEnabled () const |
| virtual bool | isConnected () const |
| virtual bool | isJoined () const |
| virtual bool | isSubscribed () const |
| virtual void | getPendingTextEvents (std::list< TextEvent > &textEvents) |
| virtual const std::wstring & | getLog () const |
| virtual void | clearLog () |
Protected Member Functions |
| virtual void | moveBalls () |
| virtual void | calculateNewLoc (double x, double y, double distance, double direction, double &newX, double &newY) const |
| virtual bool | calculateVertWallCollision (double x, double y, double distance, double direction, double newX, double newY, double radius, double &finalDirection, double &distAfterColl, double &collX, double &collY, double &finalX, double &finalY) const |
| virtual bool | calculateHorizWallCollision (double x, double y, double distance, double direction, double newX, double newY, double radius, double &finalDirection, double &distAfterColl, double &collX, double &collY, double &finalX, double &finalY) const |
| virtual void | sendUpdates ()=0 |
| virtual void | receiveUpdates ()=0 |
| virtual void | requestNewBall (Ball *ball, const std::wstring name)=0 |
Constructor & Destructor Documentation
| virtual BallController::~BallController |
( |
| ) |
|
|
virtual |
| BallController::BallController |
( |
| ) |
|
|
private |
Member Function Documentation
| virtual void BallController::acquireBall |
( |
const std::wstring |
id | ) |
|
|
pure virtual |
| virtual void BallController::addBall |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
virtual |
| virtual bool BallController::calculateHorizWallCollision |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
distance, |
|
|
double |
direction, |
|
|
double |
newX, |
|
|
double |
newY, |
|
|
double |
radius, |
|
|
double & |
finalDirection, |
|
|
double & |
distAfterColl, |
|
|
double & |
collX, |
|
|
double & |
collY, |
|
|
double & |
finalX, |
|
|
double & |
finalY |
|
) |
| const |
|
protectedvirtual |
| virtual void BallController::calculateNewLoc |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
distance, |
|
|
double |
direction, |
|
|
double & |
newX, |
|
|
double & |
newY |
|
) |
| const |
|
protectedvirtual |
| virtual bool BallController::calculateVertWallCollision |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
distance, |
|
|
double |
direction, |
|
|
double |
newX, |
|
|
double |
newY, |
|
|
double |
radius, |
|
|
double & |
finalDirection, |
|
|
double & |
distAfterColl, |
|
|
double & |
collX, |
|
|
double & |
collY, |
|
|
double & |
finalX, |
|
|
double & |
finalY |
|
) |
| const |
|
protectedvirtual |
| virtual void BallController::clearLog |
( |
| ) |
|
|
virtual |
| virtual bool BallController::createAndJoinFederation |
( |
const std::wstring & |
federation, |
|
|
const std::wstring & |
federateType, |
|
|
const std::wstring & |
federateName = std::wstring(), |
|
|
bool |
includeInterExt = false |
|
) |
| |
|
pure virtual |
| virtual void BallController::deleteBall |
( |
const std::wstring |
id | ) |
|
|
pure virtual |
| virtual void BallController::divestBall |
( |
const std::wstring |
id | ) |
|
|
pure virtual |
| virtual const std::wstring& BallController::federateId |
( |
| ) |
const |
|
pure virtual |
| virtual const std::wstring& BallController::federateName |
( |
| ) |
const |
|
pure virtual |
| virtual const std::wstring& BallController::federateType |
( |
| ) |
const |
|
pure virtual |
| virtual const std::wstring& BallController::federationName |
( |
| ) |
const |
|
pure virtual |
| virtual const std::wstring& BallController::getLog |
( |
| ) |
const |
|
virtual |
| virtual void BallController::getPendingTextEvents |
( |
std::list< TextEvent > & |
textEvents | ) |
|
|
virtual |
| virtual bool BallController::isConnected |
( |
| ) |
const |
|
virtual |
| virtual bool BallController::isDdmEnabled |
( |
| ) |
const |
|
virtual |
| virtual bool BallController::isFederateNameSupported |
( |
| ) |
const |
|
pure virtual |
| virtual bool BallController::isInteractionExtensionSupported |
( |
| ) |
const |
|
pure virtual |
| virtual bool BallController::isJoined |
( |
| ) |
const |
|
virtual |
| virtual bool BallController::isOwnershipTransferEnabled |
( |
| ) |
const |
|
virtual |
| virtual bool BallController::isSubscribed |
( |
| ) |
const |
|
virtual |
| virtual void BallController::moveBalls |
( |
| ) |
|
|
protectedvirtual |
| virtual void BallController::receiveUpdates |
( |
| ) |
|
|
protectedpure virtual |
| virtual void BallController::requestNewBall |
( |
Ball * |
ball, |
|
|
const std::wstring |
name |
|
) |
| |
|
protectedpure virtual |
| virtual bool BallController::resignAndDestroyFederation |
( |
| ) |
|
|
pure virtual |
| virtual void BallController::sendUpdates |
( |
| ) |
|
|
protectedpure virtual |
| virtual void BallController::setBallColor |
( |
BallColor |
| ) |
|
|
virtual |
| virtual void BallController::setDimensions |
( |
int |
minX, |
|
|
int |
minY, |
|
|
int |
maxX, |
|
|
int |
maxY |
|
) |
| |
|
virtual |
| virtual bool BallController::subscribe |
( |
| ) |
|
|
pure virtual |
| virtual bool BallController::subscribeWithRegion |
( |
int |
xLowerBound, |
|
|
int |
yLowerBound, |
|
|
int |
xUpperBound, |
|
|
int |
yUpperBound |
|
) |
| |
|
pure virtual |
| virtual bool BallController::unsubscribe |
( |
| ) |
|
|
pure virtual |
| virtual bool BallController::unsubscribeWithRegions |
( |
bool |
resubscribeWithoutRegion | ) |
|
|
pure virtual |
| virtual void BallController::update |
( |
| ) |
|
|
virtual |
Member Data Documentation
| const double BallController::degreesToRadians |
|
staticprotected |
| const double BallController::maxDegrees |
|
staticprotected |
| const double BallController::maxRadians |
|
staticprotected |
| BallMap* BallController::myBallData |
|
protected |
| bool BallController::myDdmEnabled |
|
protected |
| bool BallController::myIsConnected |
|
protected |
| bool BallController::myIsJoined |
|
protected |
| bool BallController::myIsSubscribed |
|
protected |
| std::wstring BallController::myLog |
|
protected |
| int BallController::myMaxX |
|
protected |
| int BallController::myMaxY |
|
protected |
| int BallController::myMinX |
|
protected |
| int BallController::myMinY |
|
protected |
| unsigned int BallController::myNextBallNumber |
|
protected |
| bool BallController::myOwnershipTransferEnabled |
|
protected |
| std::list<TextEvent> BallController::myPendingTextEvents |
|
protected |
| const double BallController::pi |
|
staticprotected |
The documentation for this class was generated from the following file: