diff options
author | krzys-h <krzys_h@interia.pl> | 2013-05-19 21:48:29 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-05-19 21:48:29 +0200 |
commit | f90a4b48f5ecdc498c32b1b4a35d57f107f36fd5 (patch) | |
tree | a44f5a61c7729db9fd0e37aafce2140e88d7991f /src/script/cbottoken.cpp | |
parent | 6798641a71e18e1e3ea798617deb38f557b3c497 (diff) | |
download | colobot-f90a4b48f5ecdc498c32b1b4a35d57f107f36fd5.tar.gz colobot-f90a4b48f5ecdc498c32b1b4a35d57f107f36fd5.tar.bz2 colobot-f90a4b48f5ecdc498c32b1b4a35d57f107f36fd5.zip |
Added object.research(type)
Diffstat (limited to 'src/script/cbottoken.cpp')
-rw-r--r-- | src/script/cbottoken.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/cbottoken.cpp b/src/script/cbottoken.cpp index 1747e5c..b5af5c3 100644 --- a/src/script/cbottoken.cpp +++ b/src/script/cbottoken.cpp @@ -256,6 +256,7 @@ std::string GetHelpFilename(const char *token) if ( strcmp(token, "progfunc" ) == 0 ) return std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + std::string("/cbot/factory.txt"); if ( strcmp(token, "busy" ) == 0 ) return std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + std::string("/cbot/busy.txt"); if ( strcmp(token, "factory" ) == 0 ) return std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + std::string("/cbot/factory.txt"); + if ( strcmp(token, "research" ) == 0 ) return std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + std::string("/cbot/research.txt"); if ( strcmp(token, "destroy" ) == 0 ) return std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + std::string("/cbot/destroy.txt"); if ( strcmp(token, "search" ) == 0 ) return std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + std::string("/cbot/search.txt"); if ( strcmp(token, "radar" ) == 0 ) return std::string("help/") + CApplication::GetInstancePointer()->GetLanguageChar() + std::string("/cbot/radar.txt"); @@ -382,6 +383,7 @@ bool IsFunction(const char *token) if ( strcmp(token, "progfunc" ) == 0 ) return true; if ( strcmp(token, "busy" ) == 0 ) return true; if ( strcmp(token, "factory" ) == 0 ) return true; + if ( strcmp(token, "research" ) == 0 ) return true; if ( strcmp(token, "destroy" ) == 0 ) return true; if ( strcmp(token, "search" ) == 0 ) return true; if ( strcmp(token, "radar" ) == 0 ) return true; @@ -474,6 +476,7 @@ const char* GetHelpText(const char *token) if ( strcmp(token, "progfunc" ) == 0 ) return "progfunc ( funcname );"; if ( strcmp(token, "busy" ) == 0 ) return "object.busy ( );"; if ( strcmp(token, "factory" ) == 0 ) return "object.factory ( cat, program );"; + if ( strcmp(token, "research" ) == 0 ) return "object.research ( type );"; if ( strcmp(token, "destroy" ) == 0 ) return "object.destroy ( );"; if ( strcmp(token, "search" ) == 0 ) return "search ( );"; if ( strcmp(token, "radar" ) == 0 ) return "radar ( cat, angle, focus, min, max, sens );"; |