Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SimEvent Class Reference

#include <SimEvent.h>

List of all members.

Public Types

enum  EVENT {
  LAUNCH = 1, DOCK, LAND, EJECT,
  CRASH, COLLIDE, DESTROYED, MAKE_ORBIT,
  BREAK_ORBIT, QUANTUM_JUMP, LAUNCH_SHIP, RECOVER_SHIP,
  FIRE_GUNS, FIRE_MISSILE, DROP_DECOY, GUNS_KILL,
  MISSILE_KILL, LAUNCH_PROBE, SCAN_TARGET
}

Public Member Functions

 SimEvent (int event, const char *tgt=0, const char *info=0)
 ~SimEvent ()
int GetEvent () const
int GetTime () const
Text GetEventDesc () const
const char * GetTarget () const
const char * GetInfo () const
int GetCount () const
void SetTarget (const char *tgt)
void SetInfo (const char *info)
void SetCount (int count)
void SetTime (int time)

Static Public Member Functions

static const char * TYPENAME ()

Detailed Description

Definition at line 34 of file SimEvent.h.


Member Enumeration Documentation

Enumerator:
LAUNCH 
DOCK 
LAND 
EJECT 
CRASH 
COLLIDE 
DESTROYED 
MAKE_ORBIT 
BREAK_ORBIT 
QUANTUM_JUMP 
LAUNCH_SHIP 
RECOVER_SHIP 
FIRE_GUNS 
FIRE_MISSILE 
DROP_DECOY 
GUNS_KILL 
MISSILE_KILL 
LAUNCH_PROBE 
SCAN_TARGET 

Definition at line 39 of file SimEvent.h.


Constructor & Destructor Documentation

SimEvent::SimEvent ( int  event,
const char *  tgt = 0,
const char *  info = 0 
)

Definition at line 26 of file SimEvent.cpp.

SimEvent::~SimEvent ( )

Definition at line 41 of file SimEvent.cpp.


Member Function Documentation

int SimEvent::GetCount ( ) const
inline

Definition at line 55 of file SimEvent.h.

int SimEvent::GetEvent ( ) const
inline

Definition at line 50 of file SimEvent.h.

Text SimEvent::GetEventDesc ( ) const

Definition at line 74 of file SimEvent.cpp.

const char* SimEvent::GetInfo ( ) const
inline

Definition at line 54 of file SimEvent.h.

const char* SimEvent::GetTarget ( ) const
inline

Definition at line 53 of file SimEvent.h.

int SimEvent::GetTime ( ) const
inline

Definition at line 51 of file SimEvent.h.

void SimEvent::SetCount ( int  count)

Definition at line 68 of file SimEvent.cpp.

void SimEvent::SetInfo ( const char *  info)

Definition at line 61 of file SimEvent.cpp.

void SimEvent::SetTarget ( const char *  tgt)

Definition at line 54 of file SimEvent.cpp.

void SimEvent::SetTime ( int  time)

Definition at line 48 of file SimEvent.cpp.

static const char* SimEvent::TYPENAME ( )
inlinestatic

Definition at line 37 of file SimEvent.h.


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