22 #include "CBot/CBotTypResult.h" 42 CBotVar*
MakeListVars(CBotVar** ppVars,
bool bSetVal=
false);
50 CBotTypResult
TypeParam(CBotToken* &p, CBotCStack* pile);
59 CBotTypResult
ArrayType(CBotToken* &p, CBotCStack* pile, CBotTypResult type);
67 bool WriteWord(FILE* pf,
unsigned short w);
107 if (m_next !=
nullptr)
130 while (p->m_next !=
nullptr) p = p->m_next;
146 assert(m_prev ==
nullptr);
148 if (m_next !=
nullptr)
150 m_next->m_prev =
nullptr;
181 while (p->m_next !=
nullptr) p = p->m_next;
void AddNext(T *elem)
Appends a new element at the end of the linked list.
Definition: CBotUtils.h:178
virtual ~CBotLinkedList()
Destructor. Be careful, destroys the whole linked list!
Definition: CBotUtils.h:105
T * GetPrev()
Returns the previous variable in the linked list.
Definition: CBotUtils.h:169
bool WriteWord(FILE *pf, unsigned short w)
WriteWord.
Definition: CBotUtils.cpp:112
float GetNumFloat(const std::string &str)
GetNumFloat Converts a string into a float number.
Definition: CBotUtils.cpp:179
Definition: CBotUtils.h:138
T * GetNext()
Returns the next variable in the linked list.
Definition: CBotUtils.h:160
virtual ~CBotDoublyLinkedList()
Destructor. Be careful, destroys the whole linked list!
Definition: CBotUtils.h:144
CBotTypResult TypeParam(CBotToken *&p, CBotCStack *pile)
TypeParam.
Definition: CBotUtils.cpp:59
long GetNumInt(const std::string &str)
GetNumInt Converts a string into integer may be of the form 0xabc123.
Definition: CBotUtils.cpp:144
bool WriteString(FILE *pf, std::string s)
WriteString.
Definition: CBotUtils.cpp:122
CBotVar * MakeListVars(CBotVar **ppVars, bool bSetVal)
MakeListVars Transforms the array of pointers to variables in a chained list of variables.
Definition: CBotUtils.cpp:35
T * GetNext()
Returns the next variable in the linked list.
Definition: CBotUtils.h:118
Definition: CBotUtils.h:99
bool WriteFloat(FILE *pf, float w)
WriteFloat.
Definition: CBotUtils.cpp:134
CBotTypResult ArrayType(CBotToken *&p, CBotCStack *pile, CBotTypResult type)
ArrayType.
Definition: CBotUtils.cpp:97
CBot engine.
Definition: CBotCallMethode.cpp:28
void AddNext(T *elem)
Appends a new element at the end of the linked list.
Definition: CBotUtils.h:127