The CBackend class provides access to the perl game engine.
More...
#include <Backend.h>
List of all members.
Detailed Description
The CBackend class provides access to the perl game engine.
The backend maintains just about all game-relevant data, such as fighters, player information, doodads, current game state, and so forth. CBackend provides access for the frontend to the backend's variables and functions. Some of this is done via custom methods (such as GetNumberOfFighters()), but certain functions are only available via the "generic" perl interface, PerlEvalF().
It is the CBackend's job to provide variables which describe the current scene to the frontend. The backend can
- Read the scene from the Perl backend.
- Write the scene into a string
- Read the scene from a string.
The string conversion routines are used for saving replays and instant playback.
Constructor & Destructor Documentation
Member Function Documentation
void CBackend::AdvancePerl |
( |
|
) |
|
|
|
Makes the perl interpreted advance from the current scene to the next one.
This should be called a constant number of time per second to make the game running seamlessly. Most speedup or slowdown effects are accomplished by changing the frequency at which this method is called. |
bool CBackend::Construct |
( |
|
) |
|
|
int CBackend::GetNumberOfAvailableFighters |
( |
|
) |
|
|
int CBackend::GetNumberOfFighters |
( |
|
) |
|
|
|
Returns the total number of registered fighters in the backend.
This may be more than the actual number of playable characters, as some or many characters may not be ready or installed.
- See also:
- GetFighterID
GetNumberOfAvailableFighters
|
int CBackend::GetPerlInt |
( |
const char * |
a_pcScalarName |
) |
|
|
const char * CBackend::GetPerlString |
( |
const char * |
a_pcScalarName |
) |
|
|
bool CBackend::IsDead |
( |
int |
a_iPlayer |
) |
|
|
const char * CBackend::PerlEvalF |
( |
const char * |
a_pcFormat, |
|
|
|
... |
|
) |
|
|
void CBackend::PlaySounds |
( |
|
) |
|
|
void CBackend::ReadFromPerl |
( |
|
) |
|
|
void CBackend::ReadFromString |
( |
const char * |
a_pcBuffer |
) |
|
|
void CBackend::ReadFromString |
( |
const std::string & |
a_rsString |
) |
|
|
void CBackend::WriteToString |
( |
std::string & |
a_rsOutString |
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following files: