#include <potion.hpp>
|
| | Potion (glm::vec3 corner, glm::vec3 dimensions, PotionType type) |
| |
| void | useItem (Object *other, ServerGameState &state, int itemSelected) override |
| |
| bool | timeOut () |
| |
| UsedItemsMap::iterator | revertEffect (ServerGameState &state) |
| |
| | Item (ObjectType type, bool movable, glm::vec3 corner, ModelType model, glm::vec3 dimensions) |
| |
| virtual void | useItem (Object *other, ServerGameState &state, int itemSelected) |
| |
| virtual void | dropItem (Object *other, ServerGameState &state, int itemSelected, float dropDistance) |
| |
| void | doCollision (Object *other, ServerGameState &state) override |
| | Code to run when this object collides with another. More...
|
| |
| 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...
|
| |
◆ Potion()
| Potion::Potion |
( |
glm::vec3 |
corner, |
|
|
glm::vec3 |
dimensions, |
|
|
PotionType |
type |
|
) |
| |
- Parameters
-
| corner | Corner position of the Potion |
| dimensions | Dimensions applied for the Potion |
| type | Type of Potion |
◆ revertEffect()
◆ timeOut()
◆ useItem()
◆ duration
◆ effectScalar
◆ potType
The documentation for this class was generated from the following files: