Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F626500
Backend.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
Backend.h
View Options
/***************************************************************************
Backend.h - description
-------------------
begin : Sun Dec 8 2002
copyright : (C) 2002 by upi
email : upi@apocalypse.rulez.org
***************************************************************************/
#ifndef BACKEND_H
#define BACKEND_H
#include
<string>
#include
"FighterEnum.h"
class
RlePack
;
#define MAXDOODADS 20
#define MAXSOUNDS 20
class
Backend
{
public
:
// Lifecycle
Backend
();
~
Backend
();
bool
Construct
();
// Miscellaneous
const
char
*
PerlEvalF
(
const
char
*
a_pcFormat
,
...
);
const
char
*
GetPerlString
(
const
char
*
a_pcScalarName
);
int
GetPerlInt
(
const
char
*
a_pcScalarName
);
// Game data
void
AdvancePerl
();
void
ReadFromPerl
();
void
PlaySounds
();
void
WriteToString
(
std
::
string
&
a_rsOutString
);
void
ReadFromString
(
const
std
::
string
&
a_rsString
);
public
:
int
m_iGameTime
;
int
m_iGameOver
;
bool
m_bKO
;
int
m_iBgX
,
m_iBgY
;
int
m_iNumDoodads
;
int
m_iNumSounds
;
struct
SPlayer
{
int
m_iX
,
m_iY
,
m_iFrame
,
m_iHitPoints
;
}
m_aoPlayers
[
2
];
struct
SDoodad
{
int
m_iX
,
m_iY
,
m_iType
,
m_iFrame
;
int
m_iDir
,
m_iGfxOwner
;
std
::
string
m_sText
;
}
m_aoDoodads
[
MAXDOODADS
];
std
::
string
m_asSounds
[
MAXSOUNDS
];
};
extern
Backend
g_oBackend
;
int
DoGame
(
char
*
replay
,
bool
isReplay
,
bool
bDebug
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 12:47 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
134879
Default Alt Text
Backend.h (1 KB)
Attached To
Mode
R76 OpenMortal
Attached
Detach File
Event Timeline