Redo Command and CommandMap again

This commit is contained in:
josh committed 2017-10-24 20:59:00 -04:00
1 parent a509c4bded
commit 4df3f620f1
4 files changed
+77 -104

No files matched your search

+23 -7
View File
@@ -6,12 +6,6 @@
class Command
{
public:
enum : uint32_t
{
FOLLOWING_CHAR = 0x1u,
RANGE = 0x2u,
};
enum : uint32_t
{
NOP,
@@ -24,7 +18,29 @@ public:
COMMAND_COUNT,
};
uint32_t find_command_by_name(const char * name);
class Motion
{
public:
enum : uint32_t
{
NOP,
FORWARD_UP_TO_CHAR,
FORWARD_ON_TO_CHAR,
BACK_UP_TO_CHAR,
BACK_ON_TO_CHAR,
};
uint32_t id;
uint32_t count;
uint32_t following_char;
};
uint32_t id;
uint32_t count;
uint32_t following_char;
Motion motion;
Command();
};
#endif