#include <orb.hpp>
|
| | Orb (glm::vec3 corner, glm::vec3 dimensions, const PointLightProperties &properties) |
| |
| void | doCollision (Object *other, ServerGameState &state) override |
| | Code to run when this object collides with another. More...
|
| |
| void | useItem (Object *other, ServerGameState &state, int itemSelected) override |
| |
| void | dropItem (Object *other, ServerGameState &state, int itemSelected, float dropDistance) override |
| |
| SharedObject | toShared () override |
| | Generates a SharedObject representation of this object. More...
|
| |
| | 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 () |
| |
◆ Orb()
- Parameters
-
| corner | Corner position of the Orb |
| dimensions | Dimensions applied for the Orb |
| properties | are point light properties of how the orb will light it's surroundings |
◆ doCollision()
Code to run when this object collides with another.
NOTE: default implementation does nothing only override behaviors will matter
Reimplemented from Item.
◆ dropItem()
◆ toShared()
◆ useItem()
The documentation for this class was generated from the following files: