Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Classes | Macros | Enumerations | Functions
CBotDll.h File Reference

Library for interpretation of CBOT language. More...

#include <stdio.h>
#include "resource.h"
#include <map>
#include <cstring>
Include dependency graph for CBotDll.h:

Go to the source code of this file.

Classes

class  CBotTypResult
 CBotTypResult class to define the complete type of a result. More...
class  CBotString
 CBotString Class used to work on strings. More...
class  CBotStringArray
class  CBotProgram
class  CBotVar
class  CBotClass
class  CBotToken

Macros

#define CBOTVERSION   104
#define OBJECTDELETED   (reinterpret_cast<void*>(-1))
#define OBJECTCREATED   (reinterpret_cast<void*>(-2))
#define CBotErrOpenPar   5000
#define CBotErrClosePar   5001
#define CBotErrNotBoolean   5002
#define CBotErrUndefVar   5003
#define CBotErrBadLeft   5004
#define CBotErrNoTerminator   5005
#define CBotErrCaseOut   5006
#define CBotErrCloseBlock   5008
#define CBotErrElseWhitoutIf   5009
#define CBotErrOpenBlock   5010
#define CBotErrBadType1   5011
#define CBotErrRedefVar   5012
#define CBotErrBadType2   5013
#define CBotErrUndefCall   5014
#define CBotErrNoDoubleDots   5015
#define CBotErrBreakOutside   5017
#define CBotErrUndefLabel   5019
#define CBotErrLabel   5018
#define CBotErrNoCase   5020
#define CBotErrBadNum   5021
#define CBotErrVoid   5022
#define CBotErrNoType   5023
#define CBotErrNoVar   5024
#define CBotErrNoFunc   5025
#define CBotErrOverParam   5026
#define CBotErrRedefFunc   5027
#define CBotErrLowParam   5028
#define CBotErrBadParam   5029
#define CBotErrNbParam   5030
#define CBotErrUndefItem   5031
#define CBotErrUndefClass   5032
#define CBotErrNoConstruct   5033
#define CBotErrRedefClass   5034
#define CBotErrCloseIndex   5035
#define CBotErrReserved   5036
#define CBotErrBadNew   5037
#define CBotErrOpenIndex   5038
#define CBotErrBadString   5039
#define CBotErrBadIndex   5040
#define CBotErrPrivate   5041
#define CBotErrNoPublic   5042
#define CBotErrZeroDiv   6000
#define CBotErrNotInit   6001
#define CBotErrBadThrow   6002
#define CBotErrNoRetVal   6003
#define CBotErrNoRun   6004
#define CBotErrUndefFunc   6005
#define CBotErrNotClass   6006
#define CBotErrNull   6007
#define CBotErrNan   6008
#define CBotErrOutArray   6009
#define CBotErrStackOver   6010
#define CBotErrDeletedPtr   6011
#define CBotErrFileOpen   6012
#define CBotErrNotOpen   6013
#define CBotErrRead   6014
#define CBotErrWrite   6015
#define IS_UNDEF   0
#define IS_DEF   1
#define IS_NAN   999
#define PR_PUBLIC   0
#define PR_READ   1
#define PR_PROTECT   2
#define PR_PRIVATE   3
#define MAXDEFNUM   1000
#define TokenTypKeyWord   1
#define TokenTypNum   2
#define TokenTypString   3
#define TokenTypVar   4
#define TokenTypDef   5
#define TokenKeyWord   2000
#define TokenKeyDeclare   2100
#define TokenKeyVal   2200
#define TokenKeyOp   2300

Enumerations

enum  CBotType {
  CBotTypVoid = 0, CBotTypByte = 1, CBotTypShort = 2, CBotTypChar = 3,
  CBotTypInt = 4, CBotTypLong = 5, CBotTypFloat = 6, CBotTypDouble = 7,
  CBotTypBoolean = 8, CBotTypString = 9, CBotTypArrayPointer = 10, CBotTypArrayBody = 11,
  CBotTypPointer = 12, CBotTypNullPointer = 13, CBotTypClass = 15, CBotTypIntrinsic = 16
}
 CBotType Defines known types. This types are modeled on Java types. Do not change the order of elements.
enum  CBotGet { GetPosExtern = 1, GetPosNom = 2, GetPosParam = 3, GetPosBloc = 4 }

Functions

FILE * fOpen (const char *name, const char *mode)
int fClose (FILE *filehandle)
size_t fWrite (const void *buffer, size_t elemsize, size_t length, FILE *filehandle)
size_t fRead (void *buffer, size_t elemsize, size_t length, FILE *filehandle)

Detailed Description

Library for interpretation of CBOT language.