mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-09-03 12:33:28 +00:00
factored out GameObjectFrame
refactored GameObject/Unit- Factory class
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@
|
||||
#include "addUnitCommand.h"
|
||||
#include "inGameAppState.h"
|
||||
#include "player.h"
|
||||
#include "unitFactory.h"
|
||||
#include "gameObjectFactory.h"
|
||||
|
||||
namespace battleship{
|
||||
using namespace gameBase;
|
||||
@@ -48,7 +48,7 @@ namespace battleship{
|
||||
|
||||
void AddUnitCommand::addUnit(){
|
||||
Player* player = Map::getSingleton()->getPlayer(playerId);
|
||||
player->addUnit(UnitFactory::createUnit(player, unitId, pos, rot));
|
||||
player->addUnit(GameObjectFactory::createUnit(player, unitId, pos, rot));
|
||||
}
|
||||
|
||||
void AddUnitCommand::execute(){
|
||||
|
||||
Reference in New Issue
Block a user