mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
factored out GameObjectFrame
refactored GameObject/Unit- Factory class
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef GAME_OBJECT_FACTORY_H
|
||||
#define GAME_OBJECT_FACTORY_H
|
||||
|
||||
#include <vector.h>
|
||||
#include <quaternion.h>
|
||||
|
||||
namespace battleship{
|
||||
class Unit;
|
||||
class Projectile;
|
||||
class ResourceDeposit;
|
||||
class Player;
|
||||
|
||||
class GameObjectFactory{
|
||||
public:
|
||||
enum GameObjectType{UNIT, PROJECTILE, RESOURCE_DEPOSIT};
|
||||
static Unit* createUnit(Player*, int, vb01::Vector3, vb01::Quaternion);
|
||||
static Projectile* createProjectile(Player*, Unit*, int, vb01::Vector3, vb01::Quaternion);
|
||||
static ResourceDeposit* createResourceDeposit(int, vb01::Vector3, vb01::Quaternion);
|
||||
private:
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user