Added controllers and flags

This commit is contained in:
andreja6
2020-03-08 23:22:42 -07:00
parent 9c76bf6956
commit 44d8947975
6 changed files with 128 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "instance.h"
#include "enum.h"
class PVInstance :
public Instance
@@ -13,4 +14,21 @@ public:
virtual void PropUpdate(LPPROPGRIDITEM &pItem);
bool nameShown;
bool controllerFlagShown;
Enum::Controller::Value controller;
protected:
static G3D::Color3 getControllerColor(int controller)
{
switch(controller)
{
case Enum::Controller::KeyboardLeft:
return Color3::red();
case Enum::Controller::KeyboardRight:
return Color3::blue();
case Enum::Controller::Chase:
return Color3::black();
case Enum::Controller::Flee:
return Color3::yellow();
}
return Color3::gray();
}
};