1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

direction & image functionality

This commit is contained in:
Laserlicht
2025-06-20 03:02:43 +02:00
parent d0d3b96fa9
commit e1adbde5ac
7 changed files with 29 additions and 10 deletions

View File

@@ -56,8 +56,8 @@ public:
/// returns true if specified object is the currently active hero
virtual bool isActiveHero(const CGObjectInstance* obj) const = 0;
/// returns true if specified object is a monster and currently attacked
virtual bool isMonsterAttacked(const CGObjectInstance * obj) const = 0;
/// returns pos of attacker if specified object is a monster and currently attacked
virtual std::optional<int3> monsterAttacked(const CGObjectInstance * obj) const = 0;
virtual size_t objectGroupIndex(ObjectInstanceID objectID) const = 0;
virtual Point objectImageOffset(ObjectInstanceID objectID, const int3 & coordinates) const = 0;