Changed the way of getting an instance type

This commit is contained in:
andreja6
2018-04-11 06:42:11 -07:00
parent 59f6652396
commit 2b508cd017
5 changed files with 8 additions and 12 deletions

View File

@@ -3,9 +3,7 @@
std::string name;
Instance* parent;
static const int BASE_INSTANCE = 0;
static const int PHYSICAL_INSTANCE = 1;
static const int type = BASE_INSTANCE;
static const std::string className = "Instance";
Instance::Instance(void)
{
@@ -16,10 +14,7 @@ Instance::~Instance(void)
{
name = "Default Game Instance";
}
int getType()
{
return type;
}