Class Monster

Inheritance Relationships

Base Types

  • public game::environment::Object (Class Object)

  • public std::enable_shared_from_this< Monster >

Class Documentation

class game::environment::Monster : public game::environment::Object, public std::enable_shared_from_this<Monster>

Public Functions

Monster(uint32_t id, uint32_t vid, int32_t x = 0, int32_t y = 0, float rotation = 0)
~Monster() override
void Show(const std::shared_ptr<core::networking::Connection> &connection) override
void Remove(const std::shared_ptr<core::networking::Connection> &connection) override
void Update(uint32_t elapsedTime) override
void TakeDamage(const std::shared_ptr<Object> &object, int damage) override
std::shared_ptr<Object> GetPointer() override
int32_t GetHP() override
int32_t GetMaxHP() override
void SetGroup(std::weak_ptr<SpawnData> &&group)
void OnSpawned() override
void ObjectEnteredView(std::shared_ptr<Object> object) override
void ObjectLeftView(std::shared_ptr<Object> object) override
void Dead() override
ObjectType GetObjectType() const override
const std::string &GetName() const override
int32_t GetSpawnX() const
int32_t GetSpawnY() const
const formats::Monster &GetProto() const