mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 07:23:05 +00:00
HDB: Add Player Variables and Player Functions
This commit is contained in:
parent
5066349297
commit
25f619dbb4
@ -402,6 +402,39 @@ public:
|
|||||||
// Entity Functions
|
// Entity Functions
|
||||||
AIEntity *locateEntity(const char *luaName);
|
AIEntity *locateEntity(const char *luaName);
|
||||||
|
|
||||||
|
// Player Functions
|
||||||
|
void assignPlayer(AIEntity *p) {
|
||||||
|
_player = p;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool playerDead() {
|
||||||
|
return _playerDead;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool playerOnIce() {
|
||||||
|
return _playerOnIce;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool playerLocked() {
|
||||||
|
return _playerLock;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setPlayerLock(bool status) {
|
||||||
|
_playerLock = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setPlayerInvisible(bool status) {
|
||||||
|
_playerInvisible = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool playerRunning() {
|
||||||
|
return _playerRunning;
|
||||||
|
}
|
||||||
|
|
||||||
|
void togglePlayerRunning() {
|
||||||
|
_playerRunning = !_playerRunning;
|
||||||
|
}
|
||||||
|
|
||||||
// Cinematic Functions
|
// Cinematic Functions
|
||||||
void processCines();
|
void processCines();
|
||||||
void cineStart(bool abortable, const char *abortFunc);
|
void cineStart(bool abortable, const char *abortFunc);
|
||||||
@ -420,6 +453,14 @@ public:
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
Common::Array<AIEntity *> *_ents;
|
Common::Array<AIEntity *> *_ents;
|
||||||
|
AIEntity *_player;
|
||||||
|
|
||||||
|
// Player Variables
|
||||||
|
bool _playerDead;
|
||||||
|
bool _playerInvisible; // While on RailRider for example
|
||||||
|
bool _playerOnIce;
|
||||||
|
bool _playerEmerging;
|
||||||
|
bool _playerRunning;
|
||||||
|
|
||||||
// Cinematics Variables
|
// Cinematics Variables
|
||||||
bool _cineAbortable;
|
bool _cineAbortable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user