VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
makVrfEvents::DtEvent Class Referenceabstract
Inheritance diagram for makVrfEvents::DtEvent:
Inheritance graph
[legend]

Public Types

enum  EventType {
  Unknown = 0, DetonationEvent = 1, FireEvent = 2, DataInteractionEvent = 3,
  SignalInteractionEvent = 4, InfluenceInteractionEvent = 5, SensorFieldOfViewControlEvent = 6, CommentInteractionEvent = 7,
  SimControlEvent = 8, DIGuyActionEvent = 9, RadioMessageReceivedEvent = 10, ScenarioLoadedEvent = 11,
  LoadScenarioEvent = 12, CloseScenarioEvent = 13, SetEvent = 14, TransferRequestEvent = 15,
  TransferResponseEvent = 16, InitiateTakeEvent = 17, OwnershipAcquisitionAcquiredEvent = 18, OwnershipAcquisitionRejectedEvent = 19,
  TransferAcquisitionRequestEvent = 20, TransferAcquisitionResponseEvent = 21, CollisionEvent = 22, ServiceRequestEvent = 23,
  ResupplyOfferEvent = 24, ResupplyReceivedEvent = 25, ResupplyCancelEvent = 26, UserEvent = 128
}
 

Public Member Functions

 DtEvent ()
 
 DtEvent (EventType t)
 
 DtEvent (const DtEvent &orig)
 
virtual ~DtEvent ()
 
EventType eventType () const
 
virtual DtEventclone () const =0
 
virtual bool isNetworkEvent () const
 
virtual bool processLocally () const
 
void setSelfReflect (bool b)
 
bool selfReflect () const
 
DtEventoperator= (const DtEvent &)
 

Static Public Member Functions

static enum EventType UniqueEventTypeFor (const std::string &)
 

Protected Attributes

EventType myEventType
 
bool mySelfReflect
 

Member Enumeration Documentation

Enumerator
Unknown 
DetonationEvent 
FireEvent 
DataInteractionEvent 
SignalInteractionEvent 
InfluenceInteractionEvent 
SensorFieldOfViewControlEvent 
CommentInteractionEvent 
SimControlEvent 
DIGuyActionEvent 
RadioMessageReceivedEvent 
ScenarioLoadedEvent 
LoadScenarioEvent 
CloseScenarioEvent 
SetEvent 
TransferRequestEvent 
TransferResponseEvent 
InitiateTakeEvent 
OwnershipAcquisitionAcquiredEvent 
OwnershipAcquisitionRejectedEvent 
TransferAcquisitionRequestEvent 
TransferAcquisitionResponseEvent 
CollisionEvent 
ServiceRequestEvent 
ResupplyOfferEvent 
ResupplyReceivedEvent 
ResupplyCancelEvent 
UserEvent 

Constructor & Destructor Documentation

makVrfEvents::DtEvent::DtEvent ( )
inline
makVrfEvents::DtEvent::DtEvent ( EventType  t)
inline
makVrfEvents::DtEvent::DtEvent ( const DtEvent orig)
inline
virtual makVrfEvents::DtEvent::~DtEvent ( )
inline

Member Function Documentation

EventType makVrfEvents::DtEvent::eventType ( ) const
inline
virtual DtEvent* makVrfEvents::DtEvent::clone ( ) const
pure virtual
virtual bool makVrfEvents::DtEvent::isNetworkEvent ( ) const
inlinevirtual
virtual bool makVrfEvents::DtEvent::processLocally ( ) const
inlinevirtual

There are some events that, if sent over the network, don't want to be processed locally. Event these events (if not sent) do not want to be processed locally. Return false from this method to never process this event locally.

Reimplemented in makVrfEvents::DtSimControlEvent, and DtPlaceObjectEvent.

void makVrfEvents::DtEvent::setSelfReflect ( bool  b)
inline

If self-reflect is on, and the comm is not self reflecting, immediately process the event for self reflection.

bool makVrfEvents::DtEvent::selfReflect ( ) const
inline
DtEvent& makVrfEvents::DtEvent::operator= ( const DtEvent )
static enum EventType makVrfEvents::DtEvent::UniqueEventTypeFor ( const std::string &  )
static

For an event type that is not part of the pre-defined event types, call this to get a unique event type for your new event. Note this event type might not be the same from run to run so when referencing an event type for this event, call <MyEventConstructor>().eventType()

Member Data Documentation

EventType makVrfEvents::DtEvent::myEventType
protected
bool makVrfEvents::DtEvent::mySelfReflect
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)