Removed STARTDEBUGDD

dev-time-step
krzys-h 2015-11-21 17:33:48 +01:00
parent 0c21631c9c
commit 8a160961fc
7 changed files with 0 additions and 54 deletions

View File

@ -225,9 +225,6 @@ CBotInstr* CBotInstr::Compile(CBotToken* &p, CBotCStack* pStack)
case ID_THROW:
return CBotThrow::Compile(p, pStack);
case ID_DEBUGDD:
return CBotStartDebugDD::Compile(p, pStack);
case ID_INT:
return CBotInt::Compile(p, pStack);

View File

@ -627,19 +627,6 @@ public:
};
class CBotStartDebugDD : public CBotInstr
{
private:
public:
CBotStartDebugDD();
~CBotStartDebugDD();
static
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
bool Execute(CBotStack* &pj) override;
};
class CBotIf : public CBotInstr
{
private:

View File

@ -487,8 +487,6 @@ private:
long m_Ident; // associated identifier
public:
static CBotString m_DebugVarStr; // end of a debug
bool m_bDebugDD; // idem déclanchable par robot \TODO ???
bool m_bCompileClass;
public:

View File

@ -33,7 +33,6 @@ CBotProgram::CBotProgram()
m_ErrorCode = 0;
m_Ident = 0;
m_bDebugDD = 0;
}
CBotProgram::CBotProgram(CBotVar* pInstance)
@ -46,7 +45,6 @@ CBotProgram::CBotProgram(CBotVar* pInstance)
m_ErrorCode = 0;
m_Ident = 0;
m_bDebugDD = 0;
}

View File

@ -57,7 +57,6 @@ const std::map<EID,const char *> CBotString::s_keywordString =
{ID_STATIC, "static"},
{ID_PROTECTED, "protected"},
{ID_PRIVATE, "private"},
{ID_DEBUGDD, "STARTDEBUGDD"},
{ID_INT, "int"},
{ID_FLOAT, "float"},
{ID_BOOLEAN, "boolean"},

View File

@ -1259,35 +1259,3 @@ void CBotThrow :: RestoreState(CBotStack* &pj, bool bMain)
}
////////////////////////////////////////////////////////////
CBotStartDebugDD::CBotStartDebugDD()
{
name = "CBotStartDebugDD"; // debug
}
CBotStartDebugDD::~CBotStartDebugDD()
{
}
CBotInstr* CBotStartDebugDD::Compile(CBotToken* &p, CBotCStack* pStack)
{
if (!IsOfType(p, ID_DEBUGDD)) return nullptr; // should never happen
return new CBotStartDebugDD(); // creates the object
}
// execution of instruction "throw"
bool CBotStartDebugDD :: Execute(CBotStack* &pj)
{
CBotProgram* p = pj->GetBotCall();
p->m_bDebugDD = true;
return true;
}

View File

@ -49,7 +49,6 @@ enum EID
ID_STATIC,
ID_PROTECTED,
ID_PRIVATE,
ID_DEBUGDD,
ID_INT,
ID_FLOAT,
ID_BOOLEAN,