| PlayerData::PlayerData |
( |
std::string |
name | ) |
|
constructor
- Parameters
-
| name | The name of the player |
| EntityId PlayerData::activeCreature |
( |
| ) |
|
Getter for the id of the players currently active creature entity.
- Returns
| GameState & PlayerData::activeCreatureGamestate |
( |
| ) |
|
Getter for the players currently active creatures gamestate.
- Returns
| bool PlayerData::isBoolSet |
( |
std::string |
key | ) |
const |
Returns whether a key has a true bool set to it.
- Returns
Getter for the map of locked concepts.
- Returns
| luabind::scope PlayerData::luaBindings |
( |
| ) |
|
|
static |
Lua bindings.
Exposes:
- Returns
| const std::string & PlayerData::playerName |
( |
| ) |
|
Getter for the players name.
- Returns
| void PlayerData::setActiveCreature |
( |
EntityId |
creatureId, |
|
|
GameState & |
gamestate |
|
) |
| |
setter for the players active creature
- Parameters
-
| creatureId | Entity id of the creature |
| gamestate | The gamestate that the players new active creature belongs to |
| void PlayerData::setBool |
( |
std::string |
key, |
|
|
bool |
value |
|
) |
| |
Binds a string to a bool.
- Parameters
-
| key | The string key to bind |
| value | What value to bind the key to |
The documentation for this class was generated from the following files:
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/engine/player_data.h
- /home/hhyyrylainen/Projects/thrive_install/thrive/src/engine/player_data.cpp