mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
First part of object instance API cleanup
- removed passability() method in favour of passableFor(PlayerColor) - moved operator < code to map handler - updated class documentation
This commit is contained in:
@@ -138,7 +138,7 @@ class DLL_LINKAGE CGGarrison : public CArmedInstance
|
||||
public:
|
||||
bool removableUnits;
|
||||
|
||||
ui8 getPassableness() const;
|
||||
bool passableFor(PlayerColor color) const override;
|
||||
void onHeroVisit(const CGHeroInstance * h) const override;
|
||||
void battleFinished(const CGHeroInstance *hero, const BattleResult &result) const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user