IMS2  Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
ConsumableAddedEvent Class Reference

Event signifying that content has been added to a storable. More...

Inheritance diagram for ConsumableAddedEvent:
Event_Base

Public Member Functions

 ConsumableAddedEvent (double previousmass)
 
double GetPreviousMass ()
 
virtual bool operator== (Event_Base *e)
 These events are considered an equal event if they are sent by the same caller.
 
- Public Member Functions inherited from Event_Base
 Event_Base (EVENTTYPE _type, unsigned int _delay=0)
 
EventHandlerGetCaller ()
 Returns the EventHandler at which this event originated.
 
virtual bool operator!= (Event_Base *e)
 
virtual bool operator== (EVENTTYPE type)
 Allows to compare an event directly to an EVENTTYPE. More...
 
EVENTPIPE GetEventPipe ()
 

Private Attributes

double previousmass
 

Additional Inherited Members

- Protected Member Functions inherited from Event_Base
virtual bool sendMe ()
 Used to determine whether the event should be sent by the event generator. More...
 
- Protected Attributes inherited from Event_Base
unsigned int delay
 How many calls of ProcessEvents() on the event generator the event should be delayed.
 
EventHandlercaller
 Stores the EventHandler at which the event originated.
 
EVENTTYPE eventtype
 The type of this event.
 
EVENTPIPE pipe
 The pipe the event travels in (unless it was relayed). This is set by the EventHandler itself.
 

Detailed Description

Event signifying that content has been added to a storable.

Note
The caller of this event is expected to be castable to IMS_Storable*, so don't spawn it from classes not derived from it!

Constructor & Destructor Documentation

ConsumableAddedEvent::ConsumableAddedEvent ( double  previousmass)
inline
Parameters
previousmassThe mass of consumables the storable had before the new content was added

Member Function Documentation

double ConsumableAddedEvent::GetPreviousMass ( )
inline
Returns
The mass the caller had before the new content was added

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