MAK RTIspy API Documentation for HLA 1.3
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
timeManagedEntity Class Reference
+ Collaboration diagram for timeManagedEntity:

Public Types

enum  entity_state { Alive = 0, FiredUpon = 1, Damaged = 2, Dead = 3 }
enum  active_state { Initial = 0, Firing = 1, SendDetonate = 3, Idle = 5 }

Public Member Functions

 timeManagedEntity ()
 ~timeManagedEntity ()
bool attrUpdateWaiting ()
bool interactionWaiting ()
attributeUpdateEventgetNextAttrUpdateEvent ()
interactionEventgetNextInteractionEvent ()
void addAttrUpdateEvent (attributeUpdateEvent *)
void addInteractionEvent (interactionEvent *)
bool shouldFire ()
bool shouldDetonate ()
bool isFiredUpon ()
bool isDetonated ()
void setPhaseLine (int phaseLine)
void incPosition ()
void firePressed ()
void reset ()
void tick ()

Private Member Functions

void sendFire ()
void sendDetonate ()
void processEvents ()

Private Attributes

bool myFirePressed
unsigned int myPosition
unsigned int myVelocity
unsigned int myPhaseLine
entity_state myPhysicalState
active_state myState
std::queue
< attributeUpdateEvent * > 
myAttrUpdateQueue
std::queue< interactionEvent * > myInteractionQueue

Member Enumeration Documentation

Enumerator:
Initial 
Firing 
SendDetonate 
Idle 
Enumerator:
Alive 
FiredUpon 
Damaged 
Dead 

Constructor & Destructor Documentation

timeManagedEntity::timeManagedEntity ( )
timeManagedEntity::~timeManagedEntity ( )

Member Function Documentation

void timeManagedEntity::addAttrUpdateEvent ( attributeUpdateEvent eventToAdd)

References myAttrUpdateQueue.

void timeManagedEntity::addInteractionEvent ( interactionEvent eventToAdd)

References myInteractionQueue.

bool timeManagedEntity::attrUpdateWaiting ( )

References myAttrUpdateQueue.

Referenced by processEvents(), and ~timeManagedEntity().

void timeManagedEntity::firePressed ( )

References myFirePressed.

Referenced by main().

attributeUpdateEvent * timeManagedEntity::getNextAttrUpdateEvent ( )

References myAttrUpdateQueue.

Referenced by processEvents(), and ~timeManagedEntity().

interactionEvent * timeManagedEntity::getNextInteractionEvent ( )

References myInteractionQueue.

Referenced by processEvents(), and ~timeManagedEntity().

void timeManagedEntity::incPosition ( )

References myPosition.

Referenced by main().

bool timeManagedEntity::interactionWaiting ( )

References myInteractionQueue.

Referenced by processEvents(), and ~timeManagedEntity().

bool timeManagedEntity::isDetonated ( )

References Damaged, and myPhysicalState.

Referenced by main(), processEvents(), and tick().

bool timeManagedEntity::isFiredUpon ( )

References FiredUpon, and myPhysicalState.

void timeManagedEntity::processEvents ( )
private
void timeManagedEntity::reset ( )
void timeManagedEntity::sendDetonate ( )
private
void timeManagedEntity::sendFire ( )
private
void timeManagedEntity::setPhaseLine ( int  phaseLine)

References myPhaseLine.

Referenced by parseCmdLine().

bool timeManagedEntity::shouldDetonate ( )

References myState, and SendDetonate.

Referenced by main().

bool timeManagedEntity::shouldFire ( )

References Firing, and myState.

Referenced by main().

void timeManagedEntity::tick ( )

Member Data Documentation

std::queue< attributeUpdateEvent* > timeManagedEntity::myAttrUpdateQueue
private
bool timeManagedEntity::myFirePressed
private

Referenced by firePressed(), reset(), and tick().

std::queue< interactionEvent* > timeManagedEntity::myInteractionQueue
private
unsigned int timeManagedEntity::myPhaseLine
private

Referenced by setPhaseLine(), and tick().

entity_state timeManagedEntity::myPhysicalState
private
unsigned int timeManagedEntity::myPosition
private

Referenced by incPosition(), and tick().

active_state timeManagedEntity::myState
private
unsigned int timeManagedEntity::myVelocity
private

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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)