diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-14 18:51:24 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-14 18:51:24 (GMT) |
| commit | 2c9295007a287dc01ff63fcf7b3da141f7474e37 (patch) | |
| tree | e8065e920ca45686a40e41fd46513e13d46f47b0 /src/Console.cpp | |
| parent | fc2f52099c0bbb2412046252bf7b5e4113bbe8e4 (diff) | |
| download | powder-2c9295007a287dc01ff63fcf7b3da141f7474e37.zip powder-2c9295007a287dc01ff63fcf7b3da141f7474e37.tar.gz | |
Various things, also IEF UI
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) { } |
