feat: implement shapes for entities
This commit is contained in:
@@ -134,6 +134,8 @@ protected:
|
||||
public:
|
||||
World(Game* game);
|
||||
|
||||
static constexpr std::uint8_t CastleWidth = 5, CastleHeight = 5;
|
||||
|
||||
bool loadMap(const protocol::WorldBeginDataPacket* worldHeader);
|
||||
bool loadMap(const protocol::WorldDataPacket* worldData);
|
||||
|
||||
@@ -191,6 +193,7 @@ public:
|
||||
virtual void OnArrowShot(MobPtr target, Tower* shooter);
|
||||
private:
|
||||
void moveMobs(std::uint64_t delta);
|
||||
void moveMob(MobPtr mob, std::uint64_t delta);
|
||||
void tickMobs(std::uint64_t delta);
|
||||
void cleanDeadMobs();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user