diff options
author | Piotr Dziwiński <piotrdz@gmail.com> | 2012-09-13 09:09:41 -0700 |
---|---|---|
committer | Piotr Dziwiński <piotrdz@gmail.com> | 2012-09-13 09:09:41 -0700 |
commit | e9fcec9de52471508933c9d90cc6041ce0af9752 (patch) | |
tree | 81d0674e4b54e95dad5508948491a26d9d5522da /src/script | |
parent | 8b2bca72dd71a1c23db51269a147443c80758f10 (diff) | |
parent | 01cc0fbc49696a19a56dfdd8359d4bb77e868925 (diff) | |
download | colobot-e9fcec9de52471508933c9d90cc6041ce0af9752.tar.gz colobot-e9fcec9de52471508933c9d90cc6041ce0af9752.tar.bz2 colobot-e9fcec9de52471508933c9d90cc6041ce0af9752.zip |
Merge pull request #45 from Erihel/dev-ui
Changes from dev-ui in erihel's fork
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/cbottoken.cpp | 10 | ||||
-rw-r--r-- | src/script/cbottoken.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/script/cbottoken.cpp b/src/script/cbottoken.cpp index 223da4d..788dba2 100644 --- a/src/script/cbottoken.cpp +++ b/src/script/cbottoken.cpp @@ -33,7 +33,7 @@ // Seeking the name of an object. -char* RetObjectName(ObjectType type) +char* GetObjectName(ObjectType type) { if ( type == OBJECT_PORTICO ) return "Portico"; if ( type == OBJECT_BASE ) return "SpaceShip"; @@ -126,7 +126,7 @@ char* RetObjectName(ObjectType type) // Seeking the name of a secondary object. // (because Otto thinks that Germans do not like nuclear power) -char* RetObjectAlias(ObjectType type) +char* GetObjectAlias(ObjectType type) { if ( type == OBJECT_NUCLEAR ) return "FuelCellPlant"; if ( type == OBJECT_URANIUM ) return "PlatinumOre"; @@ -139,7 +139,7 @@ char* RetObjectAlias(ObjectType type) // Returns the help file to use for the object. -char* RetHelpFilename(ObjectType type) +char* GetHelpFilename(ObjectType type) { if ( type == OBJECT_BASE ) return "help\\object\\base.txt"; if ( type == OBJECT_DERRICK ) return "help\\object\\derrick.txt"; @@ -224,7 +224,7 @@ char* RetHelpFilename(ObjectType type) // Returns the help file to use for instruction. -char* RetHelpFilename(const char *token) +char* GetHelpFilename(const char *token) { if ( strcmp(token, "if" ) == 0 ) return "help\\cbot\\if.txt"; if ( strcmp(token, "else" ) == 0 ) return "help\\cbot\\if.txt"; @@ -436,7 +436,7 @@ bool IsFunction(const char *token) // Returns using a compact instruction. -char* RetHelpText(const char *token) +char* GetHelpText(const char *token) { if ( strcmp(token, "if" ) == 0 ) return "if ( condition ) { bloc }"; if ( strcmp(token, "else" ) == 0 ) return "else { bloc }"; diff --git a/src/script/cbottoken.h b/src/script/cbottoken.h index c1a6a65..4be5f03 100644 --- a/src/script/cbottoken.h +++ b/src/script/cbottoken.h @@ -25,12 +25,12 @@ // Procedures. -extern char* RetObjectName(ObjectType type); -extern char* RetObjectAlias(ObjectType type); -extern char* RetHelpFilename(ObjectType type); -extern char* RetHelpFilename(const char *token); +extern char* GetObjectName(ObjectType type); +extern char* GetObjectAlias(ObjectType type); +extern char* GetHelpFilename(ObjectType type); +extern char* GetHelpFilename(const char *token); extern bool IsType(const char *token); extern bool IsFunction(const char *token); -extern char* RetHelpText(const char *token); +extern char* GetHelpText(const char *token); |