Class Map

Inheritance Relationships

Base Type

  • public std::enable_shared_from_this< Map >

Class Documentation

class game::environment::Map : public std::enable_shared_from_this<Map>

Public Functions

Map(std::string name, uint64_t x, uint64_t y, uint8_t width, uint8_t height, std::shared_ptr<World> world)
~Map()
bool Load()
void Update(uint32_t elapsedTime)
void InitialSpawn()
std::string GetName() const
uint64_t GetX() const
uint64_t GetUnitX() const
uint64_t GetY() const
uint64_t GetUnitY() const
uint8_t GetWidth() const
uint8_t GetHeight() const
bool IsAttributeSet(uint64_t x, uint64_t y, uint8_t attr)
bool IsMovablePosition(uint64_t x, uint64_t y)
void SpawnObject(const std::shared_ptr<Object> &object)
void DespawnObject(const std::shared_ptr<Object> &object)
void QueryObjectsAround(std::vector<std::shared_ptr<Object>> &out, uint64_t x, uint64_t y, uint32_t radius)
std::shared_ptr<Object> GetObject(uint32_t vid)
size_t GetObjectCount()