Transport vehicle class

This commit is contained in:
devZoGok
2023-10-17 19:46:16 +03:00
parent dfeddbdaa0
commit 0a4b7ae08e
9 changed files with 74 additions and 4 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
#include "gameObjectFactory.h"
#include "player.h"
#include "vehicle.h"
#include "engineer.h"
#include "transport.h"
#include "projectile.h"
#include "resourceDeposit.h"
#include "defConfigs.h"
@@ -22,6 +22,8 @@ namespace battleship{
switch((UnitClass)unitClass){
case UnitClass::ENGINEER:
return new Engineer(player, id, pos, rot);
case UnitClass::TRANSPORT:
return new Transport(player, id, pos, rot);
default:
return new Vehicle(player, id, pos, rot);
}