implemented point defense

This commit is contained in:
devZoGok
2023-11-26 09:38:19 +02:00
parent 6a2b9d8fe8
commit 760b986b18
12 changed files with 96 additions and 31 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
#include "transport.h"
#include "projectile.h"
#include "resourceDeposit.h"
#include "pointDefense.h"
#include "defConfigs.h"
#include <solUtil.h>
@@ -28,9 +29,10 @@ namespace battleship{
case UnitClass::LAND_FACTORY:
case UnitClass::NAVAL_FACTORY:
return new Factory(player, id, pos, rot, buildStatus);
case UnitClass::POINT_DEFENSE:
return new PointDefense(player, id, pos, rot, buildStatus);
case UnitClass::MARKET:
case UnitClass::LAB:
case UnitClass::POINT_DEFENSE:
return new Structure(player, id, pos, rot, buildStatus);
default:
return new Vehicle(player, id, pos, rot);