destructible units

This commit is contained in:
devZoGok
2023-10-15 16:00:47 +03:00
parent f8328a540f
commit d32b98be3e
19 changed files with 217 additions and 46 deletions
+6
View File
@@ -13,6 +13,12 @@ namespace battleship{
buildStatusForeground = createBar(Unit::lenHpBar, Vector4(0, 0, 1, 1));
}
Structure::~Structure(){
removeBar(buildStatusForeground);
removeBar(buildStatusBackground);
Unit::~Unit();
}
void Structure::update(){
Unit::update();