improvements to reform taskforces upon destruction

This commit is contained in:
devZoGok
2026-03-15 15:21:11 +02:00
parent 6c55a255c0
commit a61f3eebdf
5 changed files with 46 additions and 31 deletions
+1
View File
@@ -43,6 +43,7 @@ namespace battleship{
std::vector<Unit*> getFriendlyUnits(bool = true);
std::vector<Unit*> getHostileUnits();
bool isObjectVisible(GameObject*, std::vector<Unit*>);
int getCpuPlayerId();
inline int getResource(ResourceType rt){return resources[(int)rt];}
inline void updateResource(ResourceType rt, int amount, bool add){resources[(int)rt] = (add ? resources[(int)rt] + amount : amount);}
inline Trader* getTrader(){return trader;}