diff options
Diffstat (limited to 'src/Console.cpp')
| -rw-r--r-- | src/Console.cpp | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/src/Console.cpp b/src/Console.cpp index 6bf8ce6..f861fd1 100644 --- a/src/Console.cpp +++ b/src/Console.cpp @@ -1,29 +1,21 @@ #include <string> +#include <math.h> #include "Console.h" -int Console::ParseType(std::string * type) +int Console::ParsePartref(char * txt) { - char * txt = (char *)type->c_str(); - int i = -1; - // alternative names for some elements - if (*type == "C4") i = PT_PLEX; - else if (*type == "C5") i = PT_C5; - else if (*type == "NONE") i = PT_NONE; - if (i>=0 && i<PT_NUM && sim->ptypes[i].enabled) - { - (*lastError) = ""; - return i; - } - for (i=1; i<PT_NUM; i++) { - if (strcasecmp(txt, sim->ptypes[i].name)==0 && sim->ptypes[i].enabled) - { - (*lastError) = ""; - return i; - } - } - (*lastError) = "Particle type not recognised"; - return -1; + +} + +int Console::ParseCoords(char * coords, int *x, int *y) +{ + +} + +int Console::ParseType(char * txt) +{ + } void Console::Tick(float * dt) @@ -41,7 +33,7 @@ void Console::ConsoleHidden() } -int Console::ProcessCommand(std::string * command) +int Console::ProcessCommand(char * console) { } |
