#include <dungeonmaster.hpp>
|
| | DungeonMaster (glm::vec3 corner, glm::vec3 facing) |
| |
| | ~DungeonMaster () |
| |
| virtual SharedObject | toShared () override |
| | Generates a SharedObject representation of this object. More...
|
| |
| int | getPlacedTraps () |
| | get the number of traps the DM currently has placed More...
|
| |
| void | setPlacedTraps (int placedTraps) |
| | set the number of traps the DM currently has placed More...
|
| |
| void | useMana (int mana) |
| | For lightning and light-cut usage. More...
|
| |
| void | manaRegen () |
| | mana regeneration function More...
|
| |
| void | setParalysis (bool isParalyzed, double paralysis_duration) |
| | Sets the whether the DungeonMaster is paralyzed. If isParalyzed is true, then this sets the paralysis duration and marks the timestamp for the paralysis start event. More...
|
| |
| bool | isParalyzed () const |
| | Getter for whether the DungeonMaster is paralyzed. More...
|
| |
| double | getParalysisDuration () const |
| | Getter for the DungeonMaster's paralysis duration. (this value should be ignored if the DungeonMaster's paralyzed boolean is false) More...
|
| |
| std::chrono::time_point< std::chrono::system_clock > | getParalysisStartTime () const |
| | Getter for the timestamp of the last time the DungeonMaster was paralyzed. More...
|
| |
| | Creature (ObjectType type, glm::vec3 corner, glm::vec3 facing, ModelType modelType, SharedStats &&stats) |
| |
| virtual | ~Creature () |
| |
| virtual SharedObject | toShared () override |
| | Generates a SharedObject representation of this object. More...
|
| |
| | Object (ObjectType type, Physics physics, ModelType modelType) |
| |
| virtual | ~Object () |
| |
| void | setModel (ModelType type) |
| | Sets this Object's model and initializes its dimensions to the given model's default dimensions. More...
|
| |
| virtual SharedObject | toShared () |
| | Generates a SharedObject representation of this object. More...
|
| |
| virtual void | doCollision (Object *other, ServerGameState &state) |
| | Code to run when this object collides with another. More...
|
| |
| std::string | to_string (unsigned int tab_offset) |
| |
| std::string | to_string () |
| |
|
| static std::unordered_map< ModelType, glm::vec3 > | models |
| | Maps from ModelType to a model's dimensions as read from the model files. (At present, these values are hard-coded in object.cpp) More...
|
| |
◆ DungeonMaster()
| DungeonMaster::DungeonMaster |
( |
glm::vec3 |
corner, |
|
|
glm::vec3 |
facing |
|
) |
| |
◆ ~DungeonMaster()
| DungeonMaster::~DungeonMaster |
( |
| ) |
|
◆ getParalysisDuration()
| double DungeonMaster::getParalysisDuration |
( |
| ) |
const |
Getter for the DungeonMaster's paralysis duration. (this value should be ignored if the DungeonMaster's paralyzed boolean is false)
- Returns
- double representing the number of seconds that the DungeonMaster should be paralyzed since the paralysis_start_time timestamp.
◆ getParalysisStartTime()
| std::chrono::time_point< std::chrono::system_clock > DungeonMaster::getParalysisStartTime |
( |
| ) |
const |
Getter for the timestamp of the last time the DungeonMaster was paralyzed.
- Returns
- std::chrono::time_point<std::chrono::system_clock> timestamp of the last time the DungeonMaster became paralyzed.
◆ getPlacedTraps()
| int DungeonMaster::getPlacedTraps |
( |
| ) |
|
get the number of traps the DM currently has placed
◆ isParalyzed()
| bool DungeonMaster::isParalyzed |
( |
| ) |
const |
◆ manaRegen()
| void DungeonMaster::manaRegen |
( |
| ) |
|
mana regeneration function
◆ setParalysis()
| void DungeonMaster::setParalysis |
( |
bool |
isParalyzed, |
|
|
double |
paralysis_duration |
|
) |
| |
Sets the whether the DungeonMaster is paralyzed. If isParalyzed is true, then this sets the paralysis duration and marks the timestamp for the paralysis start event.
- Parameters
-
| isParalyzed | Whether the DungeonMaster should now be paralyzed. |
| paralysis_duration | How long the DungeonMaster should be paralyzed for (ignored if isParalyzed is false) |
◆ setPlacedTraps()
| void DungeonMaster::setPlacedTraps |
( |
int |
placedTraps | ) |
|
set the number of traps the DM currently has placed
- Parameters
-
| placedTraps | the number of traps the DM has placed |
◆ toShared()
◆ useMana()
| void DungeonMaster::useMana |
( |
int |
mana | ) |
|
For lightning and light-cut usage.
- Parameters
-
| mana | the amount of mana the specific DM action takes |
◆ dmInfo
◆ lightning
| Weapon* DungeonMaster::lightning |
The DM's lightning weapon.
◆ sharedTrapInventory
The documentation for this class was generated from the following files: