Stg::PowerPack Class Reference
#include <stage.hh>
List of all members.
Detailed Description
Definition at line 1469 of file stage.hh.
Constructor & Destructor Documentation
Stg::PowerPack::PowerPack |
( |
Model * |
mod |
) |
|
Stg::PowerPack::~PowerPack |
( |
|
) |
|
Member Function Documentation
void Stg::PowerPack::ChargeStart |
( |
|
) |
[inline] |
void Stg::PowerPack::ChargeStop |
( |
|
) |
[inline] |
Lose energy as work or heat, and record the event
Lose energy as work or heat
bool Stg::PowerPack::GetCharging |
( |
|
) |
const [inline] |
Returns true iff the device received energy at the last timestep
Definition at line 1565 of file stage.hh.
void Stg::PowerPack::Print |
( |
const char * |
prefix |
) |
const [inline] |
void Stg::PowerPack::Print |
( |
char * |
prefix |
) |
const |
Print human-readable status on stdout, prefixed with the argument string
double Stg::PowerPack::ProportionRemaining |
( |
|
) |
const [inline] |
Returns the energy capacity minus the current amount stored
Subtract from the energy store
Transfer some stored energy to another power pack
void Stg::PowerPack::Visualize |
( |
Camera * |
cam |
) |
|
OpenGL visualization of the powerpack state
Friends And Related Function Documentation
friend class Canvas [friend] |
Member Data Documentation
TRUE iff the device is receiving energy
Definition at line 1514 of file stage.hh.
The model that owns this object
Definition at line 1505 of file stage.hh.
The documentation for this class was generated from the following file: