Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes
Minotaur Class Reference

#include <minotaur.hpp>

Inheritance diagram for Minotaur:
Enemy Creature Object

Public Member Functions

 Minotaur (glm::vec3 corner, glm::vec3 facing)
 
bool doBehavior (ServerGameState &state) override
 
void doCollision (Object *other, ServerGameState &state) override
 Code to run when this object collides with another. More...
 
bool doDeath (ServerGameState &state) override
 
- Public Member Functions inherited from Enemy
 Enemy (glm::vec3 corner, glm::vec3 facing, ObjectType type, ModelType model, SharedStats &&stats)
 
 ~Enemy ()
 
virtual bool doBehavior (ServerGameState &state)
 
virtual bool doDeath (ServerGameState &state)
 
virtual SharedObject toShared () override
 Generates a SharedObject representation of this object. More...
 
- Public Member Functions inherited from Creature
 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...
 
- Public Member Functions inherited from Object
 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 Public Attributes

static const float SIGHT_LIMIT_GRID_CELLS = 10.0f
 
- Static Public Attributes inherited from Object
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...
 

Additional Inherited Members

- Data Fields inherited from Creature
SharedStats stats
 
SharedStatuses statuses
 
- Data Fields inherited from Object
EntityID globalID {}
 Unique object ID (used to index into the ServerGameState::objects vector) More...
 
SpecificID typeID {}
 Type-specific Object ID (used to index into the type-specific objects vector in ServerGameState) More...
 
MovableID movableID {}
 Movable ID (used to index into the movable objects vector in ServerGameState) More...
 
ObjectType type
 Identifies this object's type (derived class) More...
 
Physics physics
 Object's Physics-related properties. More...
 
ModelType modelType
 Object's render model type (specifies this Object's render model to the client) More...
 
AnimState animState
 Object's animation state and current action. For non-animated objects, this defaults as AnimState::IdleAnim. More...
 
bool is_sprinting
 used to determine if the player is sprinting for animation purposes More...
 
std::vector< glm::ivec2 > gridCellPositions
 Vector of (x, y) positions of GridCells currently occupied by this object. More...
 
float distance_moved
 Distance moved, for use in deciding when to play footsteps IMPORTANT: reset every time a footstep sound is performed for objects that play foosteps. More...
 

Constructor & Destructor Documentation

◆ Minotaur()

Minotaur::Minotaur ( glm::vec3  corner,
glm::vec3  facing 
)

Member Function Documentation

◆ doBehavior()

bool Minotaur::doBehavior ( ServerGameState state)
overridevirtual
Returns
true if the enemy was mutated, false otherwise

Reimplemented from Enemy.

◆ doCollision()

void Minotaur::doCollision ( Object other,
ServerGameState state 
)
overridevirtual

Code to run when this object collides with another.

NOTE: default implementation does nothing only override behaviors will matter

Reimplemented from Object.

◆ doDeath()

bool Minotaur::doDeath ( ServerGameState state)
overridevirtual
Returns
true if the enemy should be deleted, false otherwise

Reimplemented from Enemy.

Field Documentation

◆ SIGHT_LIMIT_GRID_CELLS

const float Minotaur::SIGHT_LIMIT_GRID_CELLS = 10.0f
inlinestatic

The documentation for this class was generated from the following files: