factored out GameObjectFrame

refactored GameObject/Unit- Factory class
This commit is contained in:
devZoGok
2023-10-07 12:43:08 +03:00
parent 1f82b1dfd9
commit cf9ac6199e
15 changed files with 104 additions and 80 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef GAME_OBJECT_FRAME_H
#define GAME_OBJECT_FRAME_H
#include "gameObject.h"
#include <vector.h>
#include <quaternion.h>
namespace battleship{
struct GameObjectFrame : public GameObject{
enum Status{PLACEABLE, NOT_PLACEABLE, PLACED};
enum Type {UNIT, RESOURCE_DEPOSIT};
GameObjectFrame(int i, Type t, vb01::Vector3 pos = vb01::Vector3::VEC_ZERO, vb01::Quaternion rot = vb01::Quaternion::QUAT_W) : GameObject(i, nullptr, pos, rot), type(t) {
initModel(false);
}
~GameObjectFrame(){}
Type type;
Status status;
};
}
#endif