mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
corrected hacked unit behaviour
This commit is contained in:
@@ -211,5 +211,7 @@ namespace battleship{
|
||||
|
||||
oldPlayerUnits.erase(oldPlayerUnits.begin() + oldId);
|
||||
newPlayer->addUnit(unit);
|
||||
unit->setPlayer(newPlayer);
|
||||
unit->halt();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace battleship{
|
||||
inline float getHeight() {return height;}
|
||||
inline float getLength() {return length;}
|
||||
inline vb01::Model* getModel() {return model;}
|
||||
inline void setPlayer(Player *pl){player = pl;}
|
||||
inline Player* getPlayer(){return player;}
|
||||
inline void toggleDebugging(bool d){this->debugging=d;}
|
||||
inline vb01::Vector3 getDirVec() {return dirVec;}
|
||||
|
||||
Reference in New Issue
Block a user