Loading...
Searching...
No Matches
CBotEnums.h File Reference

Some enum values used across the CBot engine. More...

## Namespaces

namespace | CBot
| CBot engine.

## Enumerations

enum

CBot::CBotType {
CBot::CBotTypVoid = 0 , CBot::CBotTypByte = 1 , CBot::CBotTypShort = 2 , CBot::CBotTypChar = 3 ,
CBot::CBotTypInt = 4 , CBot::CBotTypLong = 5 , CBot::CBotTypFloat = 6 , CBot::CBotTypDouble = 7 ,
CBot::CBotTypBoolean = 8 , CBot::CBotTypString = 9 , CBot::CBotTypArrayPointer = 10 , CBot::CBotTypArrayBody = 11 ,
CBot::CBotTypPointer = 12 , CBot::CBotTypNullPointer = 13 , CBot::CBotTypClass = 15 , CBot::CBotTypIntrinsic = 16 ,
CBotTypMAX = 20
}

| Defines known types. This types are modeled on Java types. More...
enum | CBot::CBotGet { GetPosExtern = 1 , GetPosNom = 2 , GetPosParam = 3 , GetPosBloc = 4 }
| Different modes for CBotProgram::GetPosition. More...

enum

CBot::TokenId {
CBot::TokenKeyWord = 2000 , ID_IF = 2000 , ID_ELSE , ID_WHILE ,
ID_DO , ID_FOR , ID_BREAK , ID_CONTINUE ,
ID_SWITCH , ID_CASE , ID_DEFAULT , ID_TRY ,
ID_THROW , ID_CATCH , ID_FINALLY , ID_TXT_AND ,
ID_TXT_OR , ID_TXT_NOT , ID_RETURN , ID_CLASS ,
ID_EXTENDS , ID_SYNCHO , ID_NEW , ID_PUBLIC ,
ID_EXTERN , ID_STATIC , ID_PROTECTED , ID_PRIVATE ,
ID_REPEAT , ID_INT , ID_FLOAT , ID_BOOLEAN ,
ID_STRING , ID_VOID , ID_BOOL , ID_BYTE ,
ID_SHORT , ID_CHAR , ID_LONG , ID_DOUBLE ,
CBot::TokenKeyVal = 2200 , ID_TRUE = 2200 , ID_FALSE , ID_NULL ,
ID_NAN , CBot::TokenKeyOp = 2300 , ID_OPENPAR = 2300 , ID_CLOSEPAR ,
ID_OPBLK , ID_CLBLK , ID_SEP , ID_COMMA ,
ID_DOTS , ID_DOT , ID_OPBRK , ID_CLBRK ,
ID_DBLDOTS , ID_LOGIC , ID_ADD , ID_SUB ,
ID_MUL , ID_DIV , ID_ASS , ID_ASSADD ,
ID_ASSSUB , ID_ASSMUL , ID_ASSDIV , ID_ASSOR ,
ID_ASSAND , ID_ASSXOR , ID_ASSSL , ID_ASSSR ,
ID_ASSASR , ID_SL , ID_SR , ID_ASR ,
ID_INC , ID_DEC , ID_LO , ID_HI ,
ID_LS , ID_HS , ID_EQ , ID_NE ,
ID_AND , ID_XOR , ID_OR , ID_LOG_AND ,
ID_LOG_OR , ID_LOG_NOT , ID_NOT , ID_MODULO ,
ID_POWER , ID_ASSMODULO , TX_UNDEF = 4000 , TX_NAN
}

| This enum contains possible token types. More...
enum | CBot::TokenType { TokenTypNone = 0 , CBot::TokenTypKeyWord = 1 , CBot::TokenTypNum = 2 , CBot::TokenTypString = 3 , CBot::TokenTypVar = 4 , CBot::TokenTypDef = 5 , CBot::TokenTypChar = 6 }
| Types of tokens. More...

enum

CBot::CBotError : int {
CBotNoErr = 0 , CBot::CBotErrOpenPar = 5000 , CBot::CBotErrClosePar = 5001 , CBot::CBotErrNotBoolean = 5002 ,
CBot::CBotErrUndefVar = 5003 , CBot::CBotErrBadLeft = 5004 , CBot::CBotErrNoTerminator = 5005 , CBot::CBotErrCaseOut = 5006 ,
CBot::CBotErrNoEnd = 5007 , CBot::CBotErrCloseBlock = 5008 , CBot::CBotErrElseWhitoutIf = 5009 , CBot::CBotErrOpenBlock = 5010 ,
CBot::CBotErrBadType1 = 5011 , CBot::CBotErrRedefVar = 5012 , CBot::CBotErrBadType2 = 5013 , CBot::CBotErrUndefCall = 5014 ,
CBot::CBotErrNoDoubleDots = 5015 , CBot::CBotErrNoWhile = 5016 , CBot::CBotErrBreakOutside = 5017 , CBot::CBotErrUndefLabel = 5019 ,
CBot::CBotErrLabel = 5018 , CBot::CBotErrNoCase = 5020 , CBot::CBotErrBadNum = 5021 , CBot::CBotErrVoid = 5022 ,
CBot::CBotErrNoType = 5023 , CBot::CBotErrNoVar = 5024 , CBot::CBotErrNoFunc = 5025 , CBot::CBotErrOverParam = 5026 ,
CBot::CBotErrRedefFunc = 5027 , CBot::CBotErrLowParam = 5028 , CBot::CBotErrBadParam = 5029 , CBot::CBotErrNbParam = 5030 ,
CBot::CBotErrUndefItem = 5031 , CBot::CBotErrUndefClass = 5032 , CBot::CBotErrNoConstruct = 5033 , CBot::CBotErrRedefClass = 5034 ,
CBot::CBotErrCloseIndex = 5035 , CBot::CBotErrReserved = 5036 , CBot::CBotErrBadNew = 5037 , CBot::CBotErrOpenIndex = 5038 ,
CBot::CBotErrBadString = 5039 , CBot::CBotErrBadIndex = 5040 , CBot::CBotErrPrivate = 5041 , CBot::CBotErrNoPublic = 5042 ,
CBot::CBotErrNoExpression = 5043 , CBot::CBotErrAmbiguousCall = 5044 , CBot::CBotErrFuncNotVoid = 5045 , CBot::CBotErrNoClassName = 5046 ,
CBot::CBotErrNoReturn = 5047 , CBot::CBotErrDefaultValue = 5048 , CBot::CBotErrEndQuote = 5049 , CBot::CBotErrBadEscape = 5050 ,
CBot::CBotErrOctalRange = 5051 , CBot::CBotErrHexDigits = 5052 , CBot::CBotErrHexRange = 5053 , CBot::CBotErrUnicodeName = 5054 ,
CBot::CBotErrCharEmpty = 5055 , CBot::CBotErrRedefCase = 5056 , CBot::CBotErrZeroDiv = 6000 , CBot::CBotErrNotInit = 6001 ,
CBot::CBotErrBadThrow = 6002 , CBot::CBotErrNoRetVal = 6003 , CBot::CBotErrNoRun = 6004 , CBot::CBotErrUndefFunc = 6005 ,
CBot::CBotErrNotClass = 6006 , CBot::CBotErrNull = 6007 , CBot::CBotErrNan = 6008 , CBot::CBotErrOutArray = 6009 ,
CBot::CBotErrStackOver = 6010 , CBot::CBotErrDeletedPtr = 6011 , CBot::CBotErrFileOpen = 6012 , CBot::CBotErrNotOpen = 6013 ,
CBot::CBotErrRead = 6014 , CBot::CBotErrWrite = 6015 , CBot::CBotErrMAX
}

| This enum contains possible CBot error values. Values in range 5000-5999 are compile errors, 6000-6999 are runtime errors. More...

## Detailed Description

Some enum values used across the CBot engine.