added color change upon changing a unit's player

This commit is contained in:
devZoGok
2025-06-24 12:23:56 +03:00
parent 7c4d26e08c
commit 86f73ca279
5 changed files with 46 additions and 35 deletions
+2
View File
@@ -29,6 +29,7 @@ namespace battleship{
void updateGameStats(Unit*);
static sf::Sound* prepareSfx(sf::SoundBuffer*, std::string);
bool pointWithinObj(vb01::Vector3, float = 0, float = 0, bool = false, float = 0);
void changePlayer(Player *newPlayer);
inline vb01::Vector2 getScreenPos(){return screenPos;}
inline vb01::Vector3 getCorner(int i){return corners[i];}
inline bool isSelectable(){return selectable;}
@@ -50,6 +51,7 @@ namespace battleship{
inline vb01::Node* getHitbox(){return hitbox;}
inline bool isRemove(){return remove;}
protected:
virtual void useColor(vb01::Material*);
virtual void initProperties();
virtual void destroyModel();
virtual void initModel(bool = true);