Apply clang-modernize -add-override
parent
2dbacc28b5
commit
ba3284b8b8
398
src/CBot/CBot.h
398
src/CBot/CBot.h
|
@ -483,8 +483,8 @@ public:
|
|||
~CBotWhile();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotDo : public CBotInstr
|
||||
|
@ -499,8 +499,8 @@ public:
|
|||
~CBotDo();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotFor : public CBotInstr
|
||||
|
@ -517,8 +517,8 @@ public:
|
|||
~CBotFor();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotBreak : public CBotInstr
|
||||
|
@ -531,8 +531,8 @@ public:
|
|||
~CBotBreak();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotReturn : public CBotInstr
|
||||
|
@ -545,8 +545,8 @@ public:
|
|||
~CBotReturn();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -561,8 +561,8 @@ public:
|
|||
~CBotSwitch();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -576,9 +576,9 @@ public:
|
|||
~CBotCase();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool CompCase(CBotStack* &pj, int val);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
bool CompCase(CBotStack* &pj, int val) override;
|
||||
};
|
||||
|
||||
class CBotCatch : public CBotInstr
|
||||
|
@ -595,8 +595,8 @@ public:
|
|||
static
|
||||
CBotCatch* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool TestCatch(CBotStack* &pj, int val);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
void RestoreCondState(CBotStack* &pj, bool bMain);
|
||||
};
|
||||
|
||||
|
@ -612,8 +612,8 @@ public:
|
|||
~CBotTry();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotThrow : public CBotInstr
|
||||
|
@ -626,8 +626,8 @@ public:
|
|||
~CBotThrow();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -640,7 +640,7 @@ public:
|
|||
~CBotStartDebugDD();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -656,8 +656,8 @@ public:
|
|||
~CBotIf();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -675,8 +675,8 @@ public:
|
|||
~CBotInt();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, bool cont = false, bool noskip = false);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// definition of an array
|
||||
|
@ -695,8 +695,8 @@ public:
|
|||
~CBotInstArray();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, CBotTypResult type);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -713,15 +713,15 @@ public:
|
|||
~CBotListArray();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, CBotTypResult type);
|
||||
bool Execute(CBotStack* &pj, CBotVar* pVar);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj, CBotVar* pVar) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
class CBotEmpty : public CBotInstr
|
||||
{
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// defininition of a boolean
|
||||
|
@ -737,8 +737,8 @@ public:
|
|||
~CBotBoolean();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, bool cont = false, bool noskip=false);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -755,8 +755,8 @@ public:
|
|||
~CBotFloat();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, bool cont = false, bool noskip=false);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// definition of an element string
|
||||
|
@ -772,8 +772,8 @@ public:
|
|||
~CBotIString();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, bool cont = false, bool noskip=false);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// definition of an element of any class
|
||||
|
@ -793,8 +793,8 @@ public:
|
|||
~CBotClassInst();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, CBotClass* pClass = nullptr);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotCondition : public CBotInstr
|
||||
|
@ -823,9 +823,9 @@ public:
|
|||
CBotLeftExpr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pStack, CBotStack* array);
|
||||
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotCStack* &pile);
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotCStack* &pile) override;
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pile, CBotToken* prevToken, bool bStep);
|
||||
void RestoreStateVar(CBotStack* &pile, bool bMain);
|
||||
void RestoreStateVar(CBotStack* &pile, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -843,9 +843,9 @@ public:
|
|||
void SetUniqNum(int num);
|
||||
// static
|
||||
// CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotCStack* &pile);
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pile, CBotToken* prevToken, bool bStep, bool bExtend);
|
||||
void RestoreStateVar(CBotStack* &pj, bool bMain);
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotCStack* &pile) override;
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pile, CBotToken* prevToken, bool bStep, bool bExtend) override;
|
||||
void RestoreStateVar(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// management of indices of the tables
|
||||
|
@ -862,9 +862,9 @@ public:
|
|||
~CBotIndexExpr();
|
||||
// static
|
||||
// CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotCStack* &pile);
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pile, CBotToken* prevToken, bool bStep, bool bExtend);
|
||||
void RestoreStateVar(CBotStack* &pj, bool bMain);
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotCStack* &pile) override;
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pile, CBotToken* prevToken, bool bStep, bool bExtend) override;
|
||||
void RestoreStateVar(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// expressions like
|
||||
|
@ -882,8 +882,8 @@ public:
|
|||
~CBotExpression();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pStack);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pStack) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotListExpression : public CBotInstr
|
||||
|
@ -896,8 +896,8 @@ public:
|
|||
~CBotListExpression();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pStack);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pStack) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotLogicExpr : public CBotInstr
|
||||
|
@ -913,8 +913,8 @@ public:
|
|||
~CBotLogicExpr();
|
||||
// static
|
||||
// CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pStack);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pStack) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -952,8 +952,8 @@ public:
|
|||
~CBotExprUnaire();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pStack);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pStack) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// all operations with two operands
|
||||
|
@ -968,8 +968,8 @@ public:
|
|||
~CBotTwoOpExpr();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, int* pOperations = nullptr);
|
||||
bool Execute(CBotStack* &pStack);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pStack) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1000,8 +1000,8 @@ public:
|
|||
~CBotListInstr();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, bool bLocal = true);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1020,8 +1020,8 @@ public:
|
|||
~CBotInstrCall();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// a call of method
|
||||
|
@ -1045,9 +1045,9 @@ public:
|
|||
~CBotInstrMethode();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack, CBotVar* pVar);
|
||||
bool Execute(CBotStack* &pj);
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pj, CBotToken* prevToken, bool bStep, bool bExtend);
|
||||
void RestoreStateVar(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pj, CBotToken* prevToken, bool bStep, bool bExtend) override;
|
||||
void RestoreStateVar(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// expression for the variable name
|
||||
|
@ -1067,11 +1067,11 @@ public:
|
|||
static
|
||||
CBotInstr* CompileMethode(CBotToken* &p, CBotCStack* pStack);
|
||||
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
bool ExecuteVar(CBotVar* &pVar, CBotStack* &pile, CBotToken* prevToken, bool bStep);
|
||||
bool Execute2Var(CBotVar* &pVar, CBotStack* &pj, CBotToken* prevToken, bool bStep);
|
||||
void RestoreStateVar(CBotStack* &pj, bool bMain);
|
||||
void RestoreStateVar(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotPostIncExpr : public CBotInstr
|
||||
|
@ -1085,8 +1085,8 @@ public:
|
|||
~CBotPostIncExpr();
|
||||
// static
|
||||
// CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotPreIncExpr : public CBotInstr
|
||||
|
@ -1100,8 +1100,8 @@ public:
|
|||
~CBotPreIncExpr();
|
||||
// static
|
||||
// CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1118,8 +1118,8 @@ public:
|
|||
~CBotLeftExprVar();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1133,8 +1133,8 @@ public:
|
|||
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1146,8 +1146,8 @@ public:
|
|||
CBotExprNull();
|
||||
~CBotExprNull();
|
||||
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotExprNan : public CBotInstr
|
||||
|
@ -1158,8 +1158,8 @@ public:
|
|||
CBotExprNan();
|
||||
~CBotExprNan();
|
||||
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
class CBotNew : public CBotInstr
|
||||
|
@ -1176,8 +1176,8 @@ public:
|
|||
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
// expression representing a number
|
||||
|
@ -1194,8 +1194,8 @@ public:
|
|||
~CBotExprNum();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1211,8 +1211,8 @@ public:
|
|||
~CBotExprAlpha();
|
||||
static
|
||||
CBotInstr* Compile(CBotToken* &p, CBotCStack* pStack);
|
||||
bool Execute(CBotStack* &pj);
|
||||
void RestoreState(CBotStack* &pj, bool bMain);
|
||||
bool Execute(CBotStack* &pj) override;
|
||||
void RestoreState(CBotStack* &pj, bool bMain) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1231,44 +1231,44 @@ public:
|
|||
CBotVarInt( const CBotToken* name );
|
||||
// ~CBotVarInt();
|
||||
|
||||
void SetValInt(int val, const char* s = nullptr);
|
||||
void SetValFloat(float val);
|
||||
int GetValInt();
|
||||
float GetValFloat();
|
||||
CBotString GetValString();
|
||||
void SetValInt(int val, const char* s = nullptr) override;
|
||||
void SetValFloat(float val) override;
|
||||
int GetValInt() override;
|
||||
float GetValFloat() override;
|
||||
CBotString GetValString() override;
|
||||
|
||||
void Copy(CBotVar* pSrc, bool bName=true);
|
||||
void Copy(CBotVar* pSrc, bool bName=true) override;
|
||||
|
||||
|
||||
void Add(CBotVar* left, CBotVar* right); // addition
|
||||
void Sub(CBotVar* left, CBotVar* right); // substraction
|
||||
void Mul(CBotVar* left, CBotVar* right); // multiplication
|
||||
int Div(CBotVar* left, CBotVar* right); // division
|
||||
int Modulo(CBotVar* left, CBotVar* right); // remainder of division
|
||||
void Power(CBotVar* left, CBotVar* right); // power
|
||||
void Add(CBotVar* left, CBotVar* right) override; // addition
|
||||
void Sub(CBotVar* left, CBotVar* right) override; // substraction
|
||||
void Mul(CBotVar* left, CBotVar* right) override; // multiplication
|
||||
int Div(CBotVar* left, CBotVar* right) override; // division
|
||||
int Modulo(CBotVar* left, CBotVar* right) override; // remainder of division
|
||||
void Power(CBotVar* left, CBotVar* right) override; // power
|
||||
|
||||
bool Lo(CBotVar* left, CBotVar* right);
|
||||
bool Hi(CBotVar* left, CBotVar* right);
|
||||
bool Ls(CBotVar* left, CBotVar* right);
|
||||
bool Hs(CBotVar* left, CBotVar* right);
|
||||
bool Eq(CBotVar* left, CBotVar* right);
|
||||
bool Ne(CBotVar* left, CBotVar* right);
|
||||
bool Lo(CBotVar* left, CBotVar* right) override;
|
||||
bool Hi(CBotVar* left, CBotVar* right) override;
|
||||
bool Ls(CBotVar* left, CBotVar* right) override;
|
||||
bool Hs(CBotVar* left, CBotVar* right) override;
|
||||
bool Eq(CBotVar* left, CBotVar* right) override;
|
||||
bool Ne(CBotVar* left, CBotVar* right) override;
|
||||
|
||||
void XOr(CBotVar* left, CBotVar* right);
|
||||
void Or(CBotVar* left, CBotVar* right);
|
||||
void And(CBotVar* left, CBotVar* right);
|
||||
void XOr(CBotVar* left, CBotVar* right) override;
|
||||
void Or(CBotVar* left, CBotVar* right) override;
|
||||
void And(CBotVar* left, CBotVar* right) override;
|
||||
|
||||
void SL(CBotVar* left, CBotVar* right);
|
||||
void SR(CBotVar* left, CBotVar* right);
|
||||
void ASR(CBotVar* left, CBotVar* right);
|
||||
void SL(CBotVar* left, CBotVar* right) override;
|
||||
void SR(CBotVar* left, CBotVar* right) override;
|
||||
void ASR(CBotVar* left, CBotVar* right) override;
|
||||
|
||||
void Neg();
|
||||
void Not();
|
||||
void Inc();
|
||||
void Dec();
|
||||
void Neg() override;
|
||||
void Not() override;
|
||||
void Inc() override;
|
||||
void Dec() override;
|
||||
|
||||
bool Save0State(FILE* pf);
|
||||
bool Save1State(FILE* pf);
|
||||
bool Save0State(FILE* pf) override;
|
||||
bool Save1State(FILE* pf) override;
|
||||
|
||||
};
|
||||
|
||||
|
@ -1282,34 +1282,34 @@ public:
|
|||
CBotVarFloat( const CBotToken* name );
|
||||
// ~CBotVarFloat();
|
||||
|
||||
void SetValInt(int val, const char* s = nullptr);
|
||||
void SetValFloat(float val);
|
||||
int GetValInt();
|
||||
float GetValFloat();
|
||||
CBotString GetValString();
|
||||
void SetValInt(int val, const char* s = nullptr) override;
|
||||
void SetValFloat(float val) override;
|
||||
int GetValInt() override;
|
||||
float GetValFloat() override;
|
||||
CBotString GetValString() override;
|
||||
|
||||
void Copy(CBotVar* pSrc, bool bName=true);
|
||||
void Copy(CBotVar* pSrc, bool bName=true) override;
|
||||
|
||||
|
||||
void Add(CBotVar* left, CBotVar* right); // addition
|
||||
void Sub(CBotVar* left, CBotVar* right); // substraction
|
||||
void Mul(CBotVar* left, CBotVar* right); // multiplication
|
||||
int Div(CBotVar* left, CBotVar* right); // division
|
||||
int Modulo(CBotVar* left, CBotVar* right); // remainder of division
|
||||
void Power(CBotVar* left, CBotVar* right); // power
|
||||
void Add(CBotVar* left, CBotVar* right) override; // addition
|
||||
void Sub(CBotVar* left, CBotVar* right) override; // substraction
|
||||
void Mul(CBotVar* left, CBotVar* right) override; // multiplication
|
||||
int Div(CBotVar* left, CBotVar* right) override; // division
|
||||
int Modulo(CBotVar* left, CBotVar* right) override; // remainder of division
|
||||
void Power(CBotVar* left, CBotVar* right) override; // power
|
||||
|
||||
bool Lo(CBotVar* left, CBotVar* right);
|
||||
bool Hi(CBotVar* left, CBotVar* right);
|
||||
bool Ls(CBotVar* left, CBotVar* right);
|
||||
bool Hs(CBotVar* left, CBotVar* right);
|
||||
bool Eq(CBotVar* left, CBotVar* right);
|
||||
bool Ne(CBotVar* left, CBotVar* right);
|
||||
bool Lo(CBotVar* left, CBotVar* right) override;
|
||||
bool Hi(CBotVar* left, CBotVar* right) override;
|
||||
bool Ls(CBotVar* left, CBotVar* right) override;
|
||||
bool Hs(CBotVar* left, CBotVar* right) override;
|
||||
bool Eq(CBotVar* left, CBotVar* right) override;
|
||||
bool Ne(CBotVar* left, CBotVar* right) override;
|
||||
|
||||
void Neg();
|
||||
void Inc();
|
||||
void Dec();
|
||||
void Neg() override;
|
||||
void Inc() override;
|
||||
void Dec() override;
|
||||
|
||||
bool Save1State(FILE* pf);
|
||||
bool Save1State(FILE* pf) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1323,21 +1323,21 @@ public:
|
|||
CBotVarString( const CBotToken* name );
|
||||
// ~CBotVarString();
|
||||
|
||||
void SetValString(const char* p);
|
||||
CBotString GetValString();
|
||||
void SetValString(const char* p) override;
|
||||
CBotString GetValString() override;
|
||||
|
||||
void Copy(CBotVar* pSrc, bool bName=true);
|
||||
void Copy(CBotVar* pSrc, bool bName=true) override;
|
||||
|
||||
void Add(CBotVar* left, CBotVar* right); // addition
|
||||
void Add(CBotVar* left, CBotVar* right) override; // addition
|
||||
|
||||
bool Lo(CBotVar* left, CBotVar* right);
|
||||
bool Hi(CBotVar* left, CBotVar* right);
|
||||
bool Ls(CBotVar* left, CBotVar* right);
|
||||
bool Hs(CBotVar* left, CBotVar* right);
|
||||
bool Eq(CBotVar* left, CBotVar* right);
|
||||
bool Ne(CBotVar* left, CBotVar* right);
|
||||
bool Lo(CBotVar* left, CBotVar* right) override;
|
||||
bool Hi(CBotVar* left, CBotVar* right) override;
|
||||
bool Ls(CBotVar* left, CBotVar* right) override;
|
||||
bool Hs(CBotVar* left, CBotVar* right) override;
|
||||
bool Eq(CBotVar* left, CBotVar* right) override;
|
||||
bool Ne(CBotVar* left, CBotVar* right) override;
|
||||
|
||||
bool Save1State(FILE* pf);
|
||||
bool Save1State(FILE* pf) override;
|
||||
};
|
||||
|
||||
// class for the management of boolean
|
||||
|
@ -1350,22 +1350,22 @@ public:
|
|||
CBotVarBoolean( const CBotToken* name );
|
||||
// ~CBotVarBoolean();
|
||||
|
||||
void SetValInt(int val, const char* s = nullptr);
|
||||
void SetValFloat(float val);
|
||||
int GetValInt();
|
||||
float GetValFloat();
|
||||
CBotString GetValString();
|
||||
void SetValInt(int val, const char* s = nullptr) override;
|
||||
void SetValFloat(float val) override;
|
||||
int GetValInt() override;
|
||||
float GetValFloat() override;
|
||||
CBotString GetValString() override;
|
||||
|
||||
void Copy(CBotVar* pSrc, bool bName=true);
|
||||
void Copy(CBotVar* pSrc, bool bName=true) override;
|
||||
|
||||
void And(CBotVar* left, CBotVar* right);
|
||||
void Or(CBotVar* left, CBotVar* right);
|
||||
void XOr(CBotVar* left, CBotVar* right);
|
||||
void Not();
|
||||
bool Eq(CBotVar* left, CBotVar* right);
|
||||
bool Ne(CBotVar* left, CBotVar* right);
|
||||
void And(CBotVar* left, CBotVar* right) override;
|
||||
void Or(CBotVar* left, CBotVar* right) override;
|
||||
void XOr(CBotVar* left, CBotVar* right) override;
|
||||
void Not() override;
|
||||
bool Eq(CBotVar* left, CBotVar* right) override;
|
||||
bool Ne(CBotVar* left, CBotVar* right) override;
|
||||
|
||||
bool Save1State(FILE* pf);
|
||||
bool Save1State(FILE* pf) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1394,38 +1394,38 @@ public:
|
|||
~CBotVarClass();
|
||||
// void InitCBotVarClass( const CBotToken* name, CBotTypResult& type, int &nIdent );
|
||||
|
||||
void Copy(CBotVar* pSrc, bool bName=true);
|
||||
void SetClass(CBotClass* pClass); //, int &nIdent);
|
||||
CBotClass* GetClass();
|
||||
CBotVar* GetItem(const char* name); // return an element of a class according to its name (*)
|
||||
CBotVar* GetItemRef(int nIdent);
|
||||
void Copy(CBotVar* pSrc, bool bName=true) override;
|
||||
void SetClass(CBotClass* pClass) override; //, int &nIdent);
|
||||
CBotClass* GetClass() override;
|
||||
CBotVar* GetItem(const char* name) override; // return an element of a class according to its name (*)
|
||||
CBotVar* GetItemRef(int nIdent) override;
|
||||
|
||||
CBotVar* GetItem(int n, bool bExtend);
|
||||
CBotVar* GetItemList();
|
||||
CBotVar* GetItem(int n, bool bExtend) override;
|
||||
CBotVar* GetItemList() override;
|
||||
|
||||
CBotString GetValString();
|
||||
CBotString GetValString() override;
|
||||
|
||||
bool Save1State(FILE* pf);
|
||||
void Maj(void* pUser, bool bContinue);
|
||||
bool Save1State(FILE* pf) override;
|
||||
void Maj(void* pUser, bool bContinue) override;
|
||||
|
||||
void IncrementUse(); // a reference to incrementation
|
||||
void DecrementUse(); // a reference to decrementation
|
||||
|
||||
CBotVarClass*
|
||||
GetPointer();
|
||||
GetPointer() override;
|
||||
void SetItemList(CBotVar* pVar);
|
||||
|
||||
void SetIdent(long n);
|
||||
void SetIdent(long n) override;
|
||||
|
||||
static CBotVarClass* Find(long id);
|
||||
|
||||
|
||||
// CBotVar* GetMyThis();
|
||||
|
||||
bool Eq(CBotVar* left, CBotVar* right);
|
||||
bool Ne(CBotVar* left, CBotVar* right);
|
||||
bool Eq(CBotVar* left, CBotVar* right) override;
|
||||
bool Ne(CBotVar* left, CBotVar* right) override;
|
||||
|
||||
void ConstructorSet();
|
||||
void ConstructorSet() override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1442,27 +1442,27 @@ public:
|
|||
CBotVarPointer( const CBotToken* name, CBotTypResult& type );
|
||||
~CBotVarPointer();
|
||||
|
||||
void Copy(CBotVar* pSrc, bool bName=true);
|
||||
void SetClass(CBotClass* pClass);
|
||||
CBotClass* GetClass();
|
||||
CBotVar* GetItem(const char* name); // return an element of a class according to its name (*)
|
||||
CBotVar* GetItemRef(int nIdent);
|
||||
CBotVar* GetItemList();
|
||||
void Copy(CBotVar* pSrc, bool bName=true) override;
|
||||
void SetClass(CBotClass* pClass) override;
|
||||
CBotClass* GetClass() override;
|
||||
CBotVar* GetItem(const char* name) override; // return an element of a class according to its name (*)
|
||||
CBotVar* GetItemRef(int nIdent) override;
|
||||
CBotVar* GetItemList() override;
|
||||
|
||||
CBotString GetValString();
|
||||
void SetPointer(CBotVar* p);
|
||||
CBotString GetValString() override;
|
||||
void SetPointer(CBotVar* p) override;
|
||||
CBotVarClass*
|
||||
GetPointer();
|
||||
GetPointer() override;
|
||||
|
||||
void SetIdent(long n); // associates an identification number (unique)
|
||||
void SetIdent(long n) override; // associates an identification number (unique)
|
||||
long GetIdent(); // gives the identification number associated with
|
||||
void ConstructorSet();
|
||||
void ConstructorSet() override;
|
||||
|
||||
bool Save1State(FILE* pf);
|
||||
void Maj(void* pUser, bool bContinue);
|
||||
bool Save1State(FILE* pf) override;
|
||||
void Maj(void* pUser, bool bContinue) override;
|
||||
|
||||
bool Eq(CBotVar* left, CBotVar* right);
|
||||
bool Ne(CBotVar* left, CBotVar* right);
|
||||
bool Eq(CBotVar* left, CBotVar* right) override;
|
||||
bool Ne(CBotVar* left, CBotVar* right) override;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1482,19 +1482,19 @@ public:
|
|||
CBotVarArray( const CBotToken* name, CBotTypResult& type );
|
||||
~CBotVarArray();
|
||||
|
||||
void SetPointer(CBotVar* p);
|
||||
void SetPointer(CBotVar* p) override;
|
||||
CBotVarClass*
|
||||
GetPointer();
|
||||
GetPointer() override;
|
||||
|
||||
void Copy(CBotVar* pSrc, bool bName=true);
|
||||
CBotVar* GetItem(int n, bool bGrow=false); // makes an element according to its numeric index
|
||||
void Copy(CBotVar* pSrc, bool bName=true) override;
|
||||
CBotVar* GetItem(int n, bool bGrow=false) override; // makes an element according to its numeric index
|
||||
// enlarged the table if necessary if bExtend
|
||||
// CBotVar* GetItem(const char* name); // makes a element by literal index
|
||||
CBotVar* GetItemList(); // gives the first item in the list
|
||||
CBotVar* GetItemList() override; // gives the first item in the list
|
||||
|
||||
CBotString GetValString(); // gets the contents of the array into a string
|
||||
CBotString GetValString() override; // gets the contents of the array into a string
|
||||
|
||||
bool Save1State(FILE* pf);
|
||||
bool Save1State(FILE* pf) override;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -35,16 +35,16 @@ struct SystemTimeStamp
|
|||
class CSystemUtilsLinux : public CSystemUtils
|
||||
{
|
||||
public:
|
||||
virtual void Init() override;
|
||||
void Init() override;
|
||||
|
||||
virtual SystemDialogResult SystemDialog(SystemDialogType type, const std::string& title, const std::string& message) override;
|
||||
SystemDialogResult SystemDialog(SystemDialogType type, const std::string& title, const std::string& message) override;
|
||||
|
||||
virtual void GetCurrentTimeStamp(SystemTimeStamp *stamp) override;
|
||||
virtual long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after) override;
|
||||
void GetCurrentTimeStamp(SystemTimeStamp *stamp) override;
|
||||
long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after) override;
|
||||
|
||||
virtual std::string GetSaveDir() override;
|
||||
std::string GetSaveDir() override;
|
||||
|
||||
virtual void Usleep(int usec) override;
|
||||
void Usleep(int usec) override;
|
||||
|
||||
private:
|
||||
bool m_zenityAvailable = false;
|
||||
|
|
|
@ -28,13 +28,13 @@
|
|||
class CSystemUtilsMacOSX : public CSystemUtilsOther
|
||||
{
|
||||
public:
|
||||
virtual void Init() override;
|
||||
void Init() override;
|
||||
|
||||
virtual std::string GetDataPath() override;
|
||||
virtual std::string GetLangPath() override;
|
||||
virtual std::string GetSaveDir() override;
|
||||
std::string GetDataPath() override;
|
||||
std::string GetLangPath() override;
|
||||
std::string GetSaveDir() override;
|
||||
|
||||
virtual void Usleep(int usec) override;
|
||||
void Usleep(int usec) override;
|
||||
|
||||
private:
|
||||
std::string m_ASPath;
|
||||
|
|
|
@ -42,12 +42,12 @@ struct SystemTimeStamp
|
|||
class CSystemUtilsOther : public CSystemUtils
|
||||
{
|
||||
public:
|
||||
virtual void Init() override;
|
||||
virtual SystemDialogResult SystemDialog(SystemDialogType type, const std::string& title, const std::string& message) override;
|
||||
void Init() override;
|
||||
SystemDialogResult SystemDialog(SystemDialogType type, const std::string& title, const std::string& message) override;
|
||||
|
||||
virtual void GetCurrentTimeStamp(SystemTimeStamp *stamp) override;
|
||||
virtual long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after) override;
|
||||
void GetCurrentTimeStamp(SystemTimeStamp *stamp) override;
|
||||
long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after) override;
|
||||
|
||||
virtual void Usleep(int usec) override;
|
||||
void Usleep(int usec) override;
|
||||
};
|
||||
|
||||
|
|
|
@ -33,16 +33,16 @@ struct SystemTimeStamp
|
|||
class CSystemUtilsWindows : public CSystemUtils
|
||||
{
|
||||
public:
|
||||
virtual void Init() override;
|
||||
void Init() override;
|
||||
|
||||
virtual SystemDialogResult SystemDialog(SystemDialogType type, const std::string& title, const std::string& message) override;
|
||||
SystemDialogResult SystemDialog(SystemDialogType type, const std::string& title, const std::string& message) override;
|
||||
|
||||
virtual void GetCurrentTimeStamp(SystemTimeStamp *stamp) override;
|
||||
virtual long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after) override;
|
||||
void GetCurrentTimeStamp(SystemTimeStamp *stamp) override;
|
||||
long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after) override;
|
||||
|
||||
virtual std::string GetSaveDir() override;
|
||||
std::string GetSaveDir() override;
|
||||
|
||||
virtual void Usleep(int usec) override;
|
||||
void Usleep(int usec) override;
|
||||
|
||||
public:
|
||||
static std::string UTF8_Encode(const std::wstring &wstr);
|
||||
|
|
|
@ -122,40 +122,40 @@ public:
|
|||
explicit CDefaultFramebuffer(const FramebufferParams ¶ms);
|
||||
|
||||
//! Creates default framebuffer
|
||||
virtual void Create() override;
|
||||
void Create() override;
|
||||
|
||||
//! Destroys default framebuffer
|
||||
virtual void Destroy() override;
|
||||
void Destroy() override;
|
||||
|
||||
//! Returns true
|
||||
virtual bool IsDefault() override;
|
||||
bool IsDefault() override;
|
||||
|
||||
//! Returns width of buffers in this framebuffer
|
||||
virtual int GetWidth() override;
|
||||
int GetWidth() override;
|
||||
|
||||
//! Returns height of buffers in this framebuffer
|
||||
virtual int GetHeight() override;
|
||||
int GetHeight() override;
|
||||
|
||||
//! Returns depth size in bits
|
||||
virtual int GetDepth() override;
|
||||
int GetDepth() override;
|
||||
|
||||
//! Returns number of samples or 1 if multisampling is not supported
|
||||
virtual int GetSamples() override;
|
||||
int GetSamples() override;
|
||||
|
||||
//! Returns texture that contains color buffer or 0 if not available
|
||||
virtual int GetColorTexture() override;
|
||||
int GetColorTexture() override;
|
||||
|
||||
//! Returns texture that contains depth buffer or 0 if not available
|
||||
virtual int GetDepthTexture() override;
|
||||
int GetDepthTexture() override;
|
||||
|
||||
//! Binds this framebuffer to context
|
||||
virtual void Bind() override;
|
||||
void Bind() override;
|
||||
|
||||
//! Unbinds this framebuffer from context
|
||||
virtual void Unbind() override;
|
||||
void Unbind() override;
|
||||
|
||||
//! Copies content of color buffer to screen
|
||||
virtual void CopyToScreen(int fromX, int fromY, int fromWidth, int fromHeight, int toX, int toY, int toWidth, int toHeight) override;
|
||||
void CopyToScreen(int fromX, int fromY, int fromWidth, int fromHeight, int toX, int toY, int toWidth, int toHeight) override;
|
||||
};
|
||||
|
||||
} // end of Gfx
|
||||
|
|
|
@ -73,24 +73,10 @@ void CNullDevice::SetTransform(TransformType type, const Math::Matrix &matrix)
|
|||
{
|
||||
}
|
||||
|
||||
const Math::Matrix& CNullDevice::GetTransform(TransformType type)
|
||||
{
|
||||
return m_matrix;
|
||||
}
|
||||
|
||||
void CNullDevice::MultiplyTransform(TransformType type, const Math::Matrix &matrix)
|
||||
{
|
||||
}
|
||||
|
||||
void CNullDevice::SetMaterial(const Material &material)
|
||||
{
|
||||
}
|
||||
|
||||
const Material& CNullDevice::GetMaterial()
|
||||
{
|
||||
return m_material;
|
||||
}
|
||||
|
||||
int CNullDevice::GetMaxLightCount()
|
||||
{
|
||||
return 99;
|
||||
|
@ -100,20 +86,10 @@ void CNullDevice::SetLight(int index, const Light &light)
|
|||
{
|
||||
}
|
||||
|
||||
const Light& CNullDevice::GetLight(int index)
|
||||
{
|
||||
return m_light;
|
||||
}
|
||||
|
||||
void CNullDevice::SetLightEnabled(int index, bool enabled)
|
||||
{
|
||||
}
|
||||
|
||||
bool CNullDevice::GetLightEnabled(int index)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Texture CNullDevice::CreateTexture(CImage *image, const TextureCreateParams ¶ms)
|
||||
{
|
||||
Texture tex;
|
||||
|
@ -156,20 +132,10 @@ void CNullDevice::SetTexture(int index, unsigned int textureId)
|
|||
{
|
||||
}
|
||||
|
||||
Texture CNullDevice::GetTexture(int index)
|
||||
{
|
||||
return Texture();
|
||||
}
|
||||
|
||||
void CNullDevice::SetTextureEnabled(int index, bool enabled)
|
||||
{
|
||||
}
|
||||
|
||||
bool CNullDevice::GetTextureEnabled(int index)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void CNullDevice::SetTextureStageParams(int index, const TextureStageParams ¶ms)
|
||||
{
|
||||
}
|
||||
|
@ -182,11 +148,6 @@ void CNullDevice::SetTextureCoordGeneration(int index, TextureGenerationParams &
|
|||
{
|
||||
}
|
||||
|
||||
TextureStageParams CNullDevice::GetTextureStageParams(int index)
|
||||
{
|
||||
return TextureStageParams();
|
||||
}
|
||||
|
||||
void CNullDevice::DrawPrimitive(PrimitiveType type, const Vertex *vertices, int vertexCount,
|
||||
Color color)
|
||||
{
|
||||
|
@ -249,11 +210,6 @@ void CNullDevice::SetRenderState(RenderState state, bool enabled)
|
|||
{
|
||||
}
|
||||
|
||||
bool CNullDevice::GetRenderState(RenderState state)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void CNullDevice::SetColorMask(bool red, bool green, bool blue, bool alpha)
|
||||
{
|
||||
}
|
||||
|
@ -262,86 +218,38 @@ void CNullDevice::SetDepthTestFunc(CompFunc func)
|
|||
{
|
||||
}
|
||||
|
||||
CompFunc CNullDevice::GetDepthTestFunc()
|
||||
{
|
||||
return COMP_FUNC_NEVER;
|
||||
}
|
||||
|
||||
void CNullDevice::SetDepthBias(float factor, float units)
|
||||
{
|
||||
}
|
||||
|
||||
float CNullDevice::GetDepthBias()
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
void CNullDevice::SetAlphaTestFunc(CompFunc func, float refValue)
|
||||
{
|
||||
}
|
||||
|
||||
void CNullDevice::GetAlphaTestFunc(CompFunc &func, float &refValue)
|
||||
{
|
||||
|
||||
func = COMP_FUNC_NEVER;
|
||||
refValue = 0.0f;
|
||||
}
|
||||
|
||||
void CNullDevice::SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend)
|
||||
{
|
||||
}
|
||||
|
||||
void CNullDevice::GetBlendFunc(BlendFunc &srcBlend, BlendFunc &dstBlend)
|
||||
{
|
||||
srcBlend = BLEND_ZERO;
|
||||
dstBlend = BLEND_ZERO;
|
||||
}
|
||||
|
||||
void CNullDevice::SetClearColor(const Color &color)
|
||||
{
|
||||
}
|
||||
|
||||
Color CNullDevice::GetClearColor()
|
||||
{
|
||||
return Color(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
void CNullDevice::SetGlobalAmbient(const Color &color)
|
||||
{
|
||||
}
|
||||
|
||||
Color CNullDevice::GetGlobalAmbient()
|
||||
{
|
||||
return Color(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
void CNullDevice::SetFogParams(FogMode mode, const Color &color, float start, float end, float density)
|
||||
{
|
||||
}
|
||||
|
||||
void CNullDevice::GetFogParams(FogMode &mode, Color &color, float &start, float &end, float &density)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
void CNullDevice::SetCullMode(CullMode mode)
|
||||
{
|
||||
}
|
||||
|
||||
CullMode CNullDevice::GetCullMode()
|
||||
{
|
||||
return CULL_CW;
|
||||
}
|
||||
|
||||
void CNullDevice::SetShadeModel(ShadeModel model)
|
||||
{
|
||||
}
|
||||
|
||||
ShadeModel CNullDevice::GetShadeModel()
|
||||
{
|
||||
return SHADE_FLAT;
|
||||
}
|
||||
|
||||
void CNullDevice::SetShadowColor(float value)
|
||||
{
|
||||
}
|
||||
|
@ -350,11 +258,6 @@ void CNullDevice::SetFillMode(FillMode mode)
|
|||
{
|
||||
}
|
||||
|
||||
FillMode CNullDevice::GetFillMode()
|
||||
{
|
||||
return FILL_POINT;
|
||||
}
|
||||
|
||||
void CNullDevice::CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -42,127 +42,106 @@ public:
|
|||
CNullDevice();
|
||||
virtual ~CNullDevice();
|
||||
|
||||
virtual void DebugHook();
|
||||
virtual void DebugLights();
|
||||
void DebugHook() override;
|
||||
void DebugLights() override;
|
||||
|
||||
virtual bool Create();
|
||||
virtual void Destroy();
|
||||
bool Create() override;
|
||||
void Destroy() override;
|
||||
|
||||
virtual void ConfigChanged(const DeviceConfig &newConfig);
|
||||
void ConfigChanged(const DeviceConfig &newConfig) override;
|
||||
|
||||
virtual void BeginScene();
|
||||
virtual void EndScene();
|
||||
void BeginScene() override;
|
||||
void EndScene() override;
|
||||
|
||||
virtual void Clear();
|
||||
void Clear() override;
|
||||
|
||||
virtual void SetTransform(TransformType type, const Math::Matrix &matrix);
|
||||
virtual const Math::Matrix& GetTransform(TransformType type);
|
||||
virtual void MultiplyTransform(TransformType type, const Math::Matrix &matrix);
|
||||
void SetTransform(TransformType type, const Math::Matrix &matrix) override;
|
||||
|
||||
virtual void SetMaterial(const Material &material);
|
||||
virtual const Material& GetMaterial();
|
||||
void SetMaterial(const Material &material) override;
|
||||
|
||||
virtual int GetMaxLightCount();
|
||||
virtual void SetLight(int index, const Light &light);
|
||||
virtual const Light& GetLight(int index);
|
||||
virtual void SetLightEnabled(int index, bool enabled);
|
||||
virtual bool GetLightEnabled(int index);
|
||||
int GetMaxLightCount() override;
|
||||
void SetLight(int index, const Light &light) override;
|
||||
void SetLightEnabled(int index, bool enabled) override;
|
||||
|
||||
virtual Texture CreateTexture(CImage *image, const TextureCreateParams ¶ms);
|
||||
virtual Texture CreateTexture(ImageData *data, const TextureCreateParams ¶ms);
|
||||
virtual Texture CreateDepthTexture(int width, int height, int depth);
|
||||
virtual void DestroyTexture(const Texture &texture);
|
||||
virtual void DestroyAllTextures();
|
||||
Texture CreateTexture(CImage *image, const TextureCreateParams ¶ms) override;
|
||||
Texture CreateTexture(ImageData *data, const TextureCreateParams ¶ms) override;
|
||||
Texture CreateDepthTexture(int width, int height, int depth) override;
|
||||
void DestroyTexture(const Texture &texture) override;
|
||||
void DestroyAllTextures() override;
|
||||
|
||||
virtual int GetMaxTextureStageCount();
|
||||
virtual void SetTexture(int index, const Texture &texture);
|
||||
virtual void SetTexture(int index, unsigned int textureId);
|
||||
virtual Texture GetTexture(int index);
|
||||
virtual void SetTextureEnabled(int index, bool enabled);
|
||||
virtual bool GetTextureEnabled(int index);
|
||||
int GetMaxTextureStageCount() override;
|
||||
void SetTexture(int index, const Texture &texture) override;
|
||||
void SetTexture(int index, unsigned int textureId) override;
|
||||
void SetTextureEnabled(int index, bool enabled) override;
|
||||
|
||||
virtual void SetTextureStageParams(int index, const TextureStageParams ¶ms);
|
||||
virtual TextureStageParams GetTextureStageParams(int index);
|
||||
void SetTextureStageParams(int index, const TextureStageParams ¶ms) override;
|
||||
|
||||
virtual void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT);
|
||||
virtual void SetTextureCoordGeneration(int index, TextureGenerationParams ¶ms);
|
||||
void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT) override;
|
||||
void SetTextureCoordGeneration(int index, TextureGenerationParams ¶ms) override;
|
||||
|
||||
virtual void DrawPrimitive(PrimitiveType type, const Vertex *vertices , int vertexCount,
|
||||
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f));
|
||||
virtual void DrawPrimitive(PrimitiveType type, const VertexTex2 *vertices, int vertexCount,
|
||||
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f));
|
||||
virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount);
|
||||
void DrawPrimitive(PrimitiveType type, const Vertex* vertices, int vertexCount, Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override;
|
||||
void DrawPrimitive(PrimitiveType type, const VertexTex2* vertices, int vertexCount, Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override;
|
||||
void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) override;
|
||||
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const Vertex* vertices, int vertexCount);
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount);
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount);
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const Vertex* vertices, int vertexCount);
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount);
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount);
|
||||
virtual void DrawStaticBuffer(unsigned int bufferId);
|
||||
virtual void DestroyStaticBuffer(unsigned int bufferId);
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
void DrawStaticBuffer(unsigned int bufferId) override;
|
||||
void DestroyStaticBuffer(unsigned int bufferId) override;
|
||||
|
||||
virtual int ComputeSphereVisibility(const Math::Vector ¢er, float radius);
|
||||
int ComputeSphereVisibility(const Math::Vector ¢er, float radius) override;
|
||||
|
||||
virtual void SetViewport(int x, int y, int width, int height);
|
||||
void SetViewport(int x, int y, int width, int height) override;
|
||||
|
||||
virtual void SetRenderState(RenderState state, bool enabled);
|
||||
virtual bool GetRenderState(RenderState state);
|
||||
void SetRenderState(RenderState state, bool enabled) override;
|
||||
|
||||
virtual void SetColorMask(bool red, bool green, bool blue, bool alpha);
|
||||
void SetColorMask(bool red, bool green, bool blue, bool alpha) override;
|
||||
|
||||
virtual void SetDepthTestFunc(CompFunc func);
|
||||
virtual CompFunc GetDepthTestFunc();
|
||||
void SetDepthTestFunc(CompFunc func) override;
|
||||
|
||||
virtual void SetDepthBias(float factor, float units);
|
||||
virtual float GetDepthBias();
|
||||
void SetDepthBias(float factor, float units) override;
|
||||
|
||||
virtual void SetAlphaTestFunc(CompFunc func, float refValue);
|
||||
virtual void GetAlphaTestFunc(CompFunc &func, float &refValue);
|
||||
void SetAlphaTestFunc(CompFunc func, float refValue) override;
|
||||
|
||||
virtual void SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend);
|
||||
virtual void GetBlendFunc(BlendFunc &srcBlend, BlendFunc &dstBlend);
|
||||
void SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend) override;
|
||||
|
||||
virtual void SetClearColor(const Color &color);
|
||||
virtual Color GetClearColor();
|
||||
void SetClearColor(const Color &color) override;
|
||||
|
||||
virtual void SetGlobalAmbient(const Color &color);
|
||||
virtual Color GetGlobalAmbient();
|
||||
void SetGlobalAmbient(const Color &color) override;
|
||||
|
||||
virtual void SetFogParams(FogMode mode, const Color &color, float start, float end, float density);
|
||||
virtual void GetFogParams(FogMode &mode, Color &color, float &start, float &end, float &density);
|
||||
void SetFogParams(FogMode mode, const Color &color, float start, float end, float density) override;
|
||||
|
||||
virtual void SetCullMode(CullMode mode);
|
||||
virtual CullMode GetCullMode();
|
||||
void SetCullMode(CullMode mode) override;
|
||||
|
||||
virtual void SetShadeModel(ShadeModel model);
|
||||
virtual ShadeModel GetShadeModel();
|
||||
void SetShadeModel(ShadeModel model) override;
|
||||
|
||||
virtual void SetShadowColor(float value);
|
||||
void SetShadowColor(float value) override;
|
||||
|
||||
virtual void SetFillMode(FillMode mode) ;
|
||||
virtual FillMode GetFillMode();
|
||||
void SetFillMode(FillMode mode) override;
|
||||
|
||||
virtual void CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height);
|
||||
void CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height) override;
|
||||
|
||||
virtual std::unique_ptr<CFrameBufferPixels> GetFrameBufferPixels() const;
|
||||
std::unique_ptr<CFrameBufferPixels> GetFrameBufferPixels() const override;
|
||||
|
||||
virtual CFramebuffer* GetFramebuffer(std::string name);
|
||||
CFramebuffer* GetFramebuffer(std::string name) override;
|
||||
|
||||
virtual CFramebuffer* CreateFramebuffer(std::string name, const FramebufferParams& params);
|
||||
CFramebuffer* CreateFramebuffer(std::string name, const FramebufferParams& params) override;
|
||||
|
||||
virtual void DeleteFramebuffer(std::string name);
|
||||
void DeleteFramebuffer(std::string name) override;
|
||||
|
||||
virtual bool IsAnisotropySupported();
|
||||
virtual int GetMaxAnisotropyLevel();
|
||||
bool IsAnisotropySupported() override;
|
||||
int GetMaxAnisotropyLevel() override;
|
||||
|
||||
virtual int GetMaxSamples();
|
||||
int GetMaxSamples() override;
|
||||
|
||||
virtual bool IsShadowMappingSupported();
|
||||
bool IsShadowMappingSupported() override;
|
||||
|
||||
virtual int GetMaxTextureSize();
|
||||
int GetMaxTextureSize() override;
|
||||
|
||||
virtual bool IsFramebufferSupported();
|
||||
bool IsFramebufferSupported() override;
|
||||
|
||||
private:
|
||||
Math::Matrix m_matrix;
|
||||
|
|
|
@ -57,108 +57,108 @@ public:
|
|||
CGL21Device(const DeviceConfig &config);
|
||||
virtual ~CGL21Device();
|
||||
|
||||
virtual void DebugHook() override;
|
||||
virtual void DebugLights() override;
|
||||
void DebugHook() override;
|
||||
void DebugLights() override;
|
||||
|
||||
virtual bool Create() override;
|
||||
virtual void Destroy() override;
|
||||
bool Create() override;
|
||||
void Destroy() override;
|
||||
|
||||
virtual void ConfigChanged(const DeviceConfig &newConfig) override;
|
||||
void ConfigChanged(const DeviceConfig &newConfig) override;
|
||||
|
||||
virtual void BeginScene() override;
|
||||
virtual void EndScene() override;
|
||||
void BeginScene() override;
|
||||
void EndScene() override;
|
||||
|
||||
virtual void Clear() override;
|
||||
void Clear() override;
|
||||
|
||||
virtual void SetTransform(TransformType type, const Math::Matrix &matrix) override;
|
||||
void SetTransform(TransformType type, const Math::Matrix &matrix) override;
|
||||
|
||||
virtual void SetMaterial(const Material &material) override;
|
||||
void SetMaterial(const Material &material) override;
|
||||
|
||||
virtual int GetMaxLightCount() override;
|
||||
virtual void SetLight(int index, const Light &light) override;
|
||||
virtual void SetLightEnabled(int index, bool enabled) override;
|
||||
int GetMaxLightCount() override;
|
||||
void SetLight(int index, const Light &light) override;
|
||||
void SetLightEnabled(int index, bool enabled) override;
|
||||
|
||||
virtual Texture CreateTexture(CImage *image, const TextureCreateParams ¶ms) override;
|
||||
virtual Texture CreateTexture(ImageData *data, const TextureCreateParams ¶ms) override;
|
||||
virtual Texture CreateDepthTexture(int width, int height, int depth) override;
|
||||
virtual void DestroyTexture(const Texture &texture) override;
|
||||
virtual void DestroyAllTextures() override;
|
||||
Texture CreateTexture(CImage *image, const TextureCreateParams ¶ms) override;
|
||||
Texture CreateTexture(ImageData *data, const TextureCreateParams ¶ms) override;
|
||||
Texture CreateDepthTexture(int width, int height, int depth) override;
|
||||
void DestroyTexture(const Texture &texture) override;
|
||||
void DestroyAllTextures() override;
|
||||
|
||||
virtual int GetMaxTextureStageCount() override;
|
||||
virtual void SetTexture(int index, const Texture &texture) override;
|
||||
virtual void SetTexture(int index, unsigned int textureId) override;
|
||||
virtual void SetTextureEnabled(int index, bool enabled) override;
|
||||
int GetMaxTextureStageCount() override;
|
||||
void SetTexture(int index, const Texture &texture) override;
|
||||
void SetTexture(int index, unsigned int textureId) override;
|
||||
void SetTextureEnabled(int index, bool enabled) override;
|
||||
|
||||
virtual void SetTextureStageParams(int index, const TextureStageParams ¶ms) override;
|
||||
void SetTextureStageParams(int index, const TextureStageParams ¶ms) override;
|
||||
|
||||
virtual void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT) override;
|
||||
virtual void SetTextureCoordGeneration(int index, TextureGenerationParams ¶ms) override;
|
||||
void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT) override;
|
||||
void SetTextureCoordGeneration(int index, TextureGenerationParams ¶ms) override;
|
||||
|
||||
virtual void DrawPrimitive(PrimitiveType type, const Vertex *vertices , int vertexCount,
|
||||
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override;
|
||||
virtual void DrawPrimitive(PrimitiveType type, const VertexTex2 *vertices, int vertexCount,
|
||||
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override;
|
||||
virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) override;
|
||||
void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) override;
|
||||
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
virtual void DrawStaticBuffer(unsigned int bufferId) override;
|
||||
virtual void DestroyStaticBuffer(unsigned int bufferId) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
void DrawStaticBuffer(unsigned int bufferId) override;
|
||||
void DestroyStaticBuffer(unsigned int bufferId) override;
|
||||
|
||||
virtual int ComputeSphereVisibility(const Math::Vector ¢er, float radius) override;
|
||||
int ComputeSphereVisibility(const Math::Vector ¢er, float radius) override;
|
||||
|
||||
virtual void SetViewport(int x, int y, int width, int height) override;
|
||||
void SetViewport(int x, int y, int width, int height) override;
|
||||
|
||||
virtual void SetRenderState(RenderState state, bool enabled) override;
|
||||
void SetRenderState(RenderState state, bool enabled) override;
|
||||
|
||||
virtual void SetColorMask(bool red, bool green, bool blue, bool alpha) override;
|
||||
void SetColorMask(bool red, bool green, bool blue, bool alpha) override;
|
||||
|
||||
virtual void SetDepthTestFunc(CompFunc func) override;
|
||||
void SetDepthTestFunc(CompFunc func) override;
|
||||
|
||||
virtual void SetDepthBias(float factor, float units) override;
|
||||
void SetDepthBias(float factor, float units) override;
|
||||
|
||||
virtual void SetAlphaTestFunc(CompFunc func, float refValue) override;
|
||||
void SetAlphaTestFunc(CompFunc func, float refValue) override;
|
||||
|
||||
virtual void SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend) override;
|
||||
void SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend) override;
|
||||
|
||||
virtual void SetClearColor(const Color &color) override;
|
||||
void SetClearColor(const Color &color) override;
|
||||
|
||||
virtual void SetGlobalAmbient(const Color &color) override;
|
||||
void SetGlobalAmbient(const Color &color) override;
|
||||
|
||||
virtual void SetFogParams(FogMode mode, const Color &color, float start, float end, float density) override;
|
||||
void SetFogParams(FogMode mode, const Color &color, float start, float end, float density) override;
|
||||
|
||||
virtual void SetCullMode(CullMode mode) override;
|
||||
void SetCullMode(CullMode mode) override;
|
||||
|
||||
virtual void SetShadeModel(ShadeModel model) override;
|
||||
void SetShadeModel(ShadeModel model) override;
|
||||
|
||||
virtual void SetShadowColor(float value) override;
|
||||
void SetShadowColor(float value) override;
|
||||
|
||||
virtual void SetFillMode(FillMode mode) override;
|
||||
void SetFillMode(FillMode mode) override;
|
||||
|
||||
virtual void CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height) override;
|
||||
void CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height) override;
|
||||
|
||||
virtual std::unique_ptr<CFrameBufferPixels> GetFrameBufferPixels() const override;
|
||||
std::unique_ptr<CFrameBufferPixels> GetFrameBufferPixels() const override;
|
||||
|
||||
virtual CFramebuffer* GetFramebuffer(std::string name) override;
|
||||
CFramebuffer* GetFramebuffer(std::string name) override;
|
||||
|
||||
virtual CFramebuffer* CreateFramebuffer(std::string name, const FramebufferParams& params) override;
|
||||
CFramebuffer* CreateFramebuffer(std::string name, const FramebufferParams& params) override;
|
||||
|
||||
virtual void DeleteFramebuffer(std::string name) override;
|
||||
void DeleteFramebuffer(std::string name) override;
|
||||
|
||||
virtual bool IsAnisotropySupported() override;
|
||||
virtual int GetMaxAnisotropyLevel() override;
|
||||
bool IsAnisotropySupported() override;
|
||||
int GetMaxAnisotropyLevel() override;
|
||||
|
||||
virtual int GetMaxSamples() override;
|
||||
int GetMaxSamples() override;
|
||||
|
||||
virtual bool IsShadowMappingSupported() override;
|
||||
bool IsShadowMappingSupported() override;
|
||||
|
||||
virtual int GetMaxTextureSize() override;
|
||||
int GetMaxTextureSize() override;
|
||||
|
||||
virtual bool IsFramebufferSupported() override;
|
||||
bool IsFramebufferSupported() override;
|
||||
|
||||
private:
|
||||
//! Updates position for given light based on transformation matrices
|
||||
|
|
|
@ -57,108 +57,108 @@ public:
|
|||
CGL33Device(const DeviceConfig &config);
|
||||
virtual ~CGL33Device();
|
||||
|
||||
virtual void DebugHook() override;
|
||||
virtual void DebugLights() override;
|
||||
void DebugHook() override;
|
||||
void DebugLights() override;
|
||||
|
||||
virtual bool Create() override;
|
||||
virtual void Destroy() override;
|
||||
bool Create() override;
|
||||
void Destroy() override;
|
||||
|
||||
virtual void ConfigChanged(const DeviceConfig &newConfig) override;
|
||||
void ConfigChanged(const DeviceConfig &newConfig) override;
|
||||
|
||||
virtual void BeginScene() override;
|
||||
virtual void EndScene() override;
|
||||
void BeginScene() override;
|
||||
void EndScene() override;
|
||||
|
||||
virtual void Clear() override;
|
||||
void Clear() override;
|
||||
|
||||
virtual void SetTransform(TransformType type, const Math::Matrix &matrix) override;
|
||||
void SetTransform(TransformType type, const Math::Matrix &matrix) override;
|
||||
|
||||
virtual void SetMaterial(const Material &material) override;
|
||||
void SetMaterial(const Material &material) override;
|
||||
|
||||
virtual int GetMaxLightCount() override;
|
||||
virtual void SetLight(int index, const Light &light) override;
|
||||
virtual void SetLightEnabled(int index, bool enabled) override;
|
||||
int GetMaxLightCount() override;
|
||||
void SetLight(int index, const Light &light) override;
|
||||
void SetLightEnabled(int index, bool enabled) override;
|
||||
|
||||
virtual Texture CreateTexture(CImage *image, const TextureCreateParams ¶ms) override;
|
||||
virtual Texture CreateTexture(ImageData *data, const TextureCreateParams ¶ms) override;
|
||||
virtual Texture CreateDepthTexture(int width, int height, int depth) override;
|
||||
virtual void DestroyTexture(const Texture &texture) override;
|
||||
virtual void DestroyAllTextures() override;
|
||||
Texture CreateTexture(CImage *image, const TextureCreateParams ¶ms) override;
|
||||
Texture CreateTexture(ImageData *data, const TextureCreateParams ¶ms) override;
|
||||
Texture CreateDepthTexture(int width, int height, int depth) override;
|
||||
void DestroyTexture(const Texture &texture) override;
|
||||
void DestroyAllTextures() override;
|
||||
|
||||
virtual int GetMaxTextureStageCount() override;
|
||||
virtual void SetTexture(int index, const Texture &texture) override;
|
||||
virtual void SetTexture(int index, unsigned int textureId) override;
|
||||
virtual void SetTextureEnabled(int index, bool enabled) override;
|
||||
int GetMaxTextureStageCount() override;
|
||||
void SetTexture(int index, const Texture &texture) override;
|
||||
void SetTexture(int index, unsigned int textureId) override;
|
||||
void SetTextureEnabled(int index, bool enabled) override;
|
||||
|
||||
virtual void SetTextureStageParams(int index, const TextureStageParams ¶ms) override;
|
||||
void SetTextureStageParams(int index, const TextureStageParams ¶ms) override;
|
||||
|
||||
virtual void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT) override;
|
||||
virtual void SetTextureCoordGeneration(int index, TextureGenerationParams ¶ms) override;
|
||||
void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT) override;
|
||||
void SetTextureCoordGeneration(int index, TextureGenerationParams ¶ms) override;
|
||||
|
||||
virtual void DrawPrimitive(PrimitiveType type, const Vertex *vertices , int vertexCount,
|
||||
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override;
|
||||
virtual void DrawPrimitive(PrimitiveType type, const VertexTex2 *vertices, int vertexCount,
|
||||
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override;
|
||||
virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) override;
|
||||
void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) override;
|
||||
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
virtual void DrawStaticBuffer(unsigned int bufferId) override;
|
||||
virtual void DestroyStaticBuffer(unsigned int bufferId) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
void DrawStaticBuffer(unsigned int bufferId) override;
|
||||
void DestroyStaticBuffer(unsigned int bufferId) override;
|
||||
|
||||
virtual int ComputeSphereVisibility(const Math::Vector ¢er, float radius) override;
|
||||
int ComputeSphereVisibility(const Math::Vector ¢er, float radius) override;
|
||||
|
||||
virtual void SetViewport(int x, int y, int width, int height) override;
|
||||
void SetViewport(int x, int y, int width, int height) override;
|
||||
|
||||
virtual void SetRenderState(RenderState state, bool enabled) override;
|
||||
void SetRenderState(RenderState state, bool enabled) override;
|
||||
|
||||
virtual void SetColorMask(bool red, bool green, bool blue, bool alpha) override;
|
||||
void SetColorMask(bool red, bool green, bool blue, bool alpha) override;
|
||||
|
||||
virtual void SetDepthTestFunc(CompFunc func) override;
|
||||
void SetDepthTestFunc(CompFunc func) override;
|
||||
|
||||
virtual void SetDepthBias(float factor, float units) override;
|
||||
void SetDepthBias(float factor, float units) override;
|
||||
|
||||
virtual void SetAlphaTestFunc(CompFunc func, float refValue) override;
|
||||
void SetAlphaTestFunc(CompFunc func, float refValue) override;
|
||||
|
||||
virtual void SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend) override;
|
||||
void SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend) override;
|
||||
|
||||
virtual void SetClearColor(const Color &color) override;
|
||||
void SetClearColor(const Color &color) override;
|
||||
|
||||
virtual void SetGlobalAmbient(const Color &color) override;
|
||||
void SetGlobalAmbient(const Color &color) override;
|
||||
|
||||
virtual void SetFogParams(FogMode mode, const Color &color, float start, float end, float density) override;
|
||||
void SetFogParams(FogMode mode, const Color &color, float start, float end, float density) override;
|
||||
|
||||
virtual void SetCullMode(CullMode mode) override;
|
||||
void SetCullMode(CullMode mode) override;
|
||||
|
||||
virtual void SetShadeModel(ShadeModel model) override;
|
||||
void SetShadeModel(ShadeModel model) override;
|
||||
|
||||
virtual void SetShadowColor(float value) override;
|
||||
void SetShadowColor(float value) override;
|
||||
|
||||
virtual void SetFillMode(FillMode mode) override;
|
||||
void SetFillMode(FillMode mode) override;
|
||||
|
||||
virtual void CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height) override;
|
||||
void CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height) override;
|
||||
|
||||
virtual std::unique_ptr<CFrameBufferPixels> GetFrameBufferPixels() const override;
|
||||
std::unique_ptr<CFrameBufferPixels> GetFrameBufferPixels() const override;
|
||||
|
||||
virtual CFramebuffer* GetFramebuffer(std::string name) override;
|
||||
CFramebuffer* GetFramebuffer(std::string name) override;
|
||||
|
||||
virtual CFramebuffer* CreateFramebuffer(std::string name, const FramebufferParams& params) override;
|
||||
CFramebuffer* CreateFramebuffer(std::string name, const FramebufferParams& params) override;
|
||||
|
||||
virtual void DeleteFramebuffer(std::string name) override;
|
||||
void DeleteFramebuffer(std::string name) override;
|
||||
|
||||
virtual bool IsAnisotropySupported() override;
|
||||
virtual int GetMaxAnisotropyLevel() override;
|
||||
bool IsAnisotropySupported() override;
|
||||
int GetMaxAnisotropyLevel() override;
|
||||
|
||||
virtual int GetMaxSamples() override;
|
||||
int GetMaxSamples() override;
|
||||
|
||||
virtual bool IsShadowMappingSupported() override;
|
||||
bool IsShadowMappingSupported() override;
|
||||
|
||||
virtual int GetMaxTextureSize() override;
|
||||
int GetMaxTextureSize() override;
|
||||
|
||||
virtual bool IsFramebufferSupported() override;
|
||||
bool IsFramebufferSupported() override;
|
||||
|
||||
private:
|
||||
//! Updates position for given light based on transformation matrices
|
||||
|
|
|
@ -76,108 +76,108 @@ public:
|
|||
CGLDevice(const DeviceConfig &config);
|
||||
virtual ~CGLDevice();
|
||||
|
||||
virtual void DebugHook() override;
|
||||
virtual void DebugLights() override;
|
||||
void DebugHook() override;
|
||||
void DebugLights() override;
|
||||
|
||||
virtual bool Create() override;
|
||||
virtual void Destroy() override;
|
||||
bool Create() override;
|
||||
void Destroy() override;
|
||||
|
||||
virtual void ConfigChanged(const DeviceConfig &newConfig) override;
|
||||
void ConfigChanged(const DeviceConfig &newConfig) override;
|
||||
|
||||
virtual void BeginScene() override;
|
||||
virtual void EndScene() override;
|
||||
void BeginScene() override;
|
||||
void EndScene() override;
|
||||
|
||||
virtual void Clear() override;
|
||||
void Clear() override;
|
||||
|
||||
virtual void SetTransform(TransformType type, const Math::Matrix &matrix) override;
|
||||
void SetTransform(TransformType type, const Math::Matrix &matrix) override;
|
||||
|
||||
virtual void SetMaterial(const Material &material) override;
|
||||
void SetMaterial(const Material &material) override;
|
||||
|
||||
virtual int GetMaxLightCount() override;
|
||||
virtual void SetLight(int index, const Light &light) override;
|
||||
virtual void SetLightEnabled(int index, bool enabled) override;
|
||||
int GetMaxLightCount() override;
|
||||
void SetLight(int index, const Light &light) override;
|
||||
void SetLightEnabled(int index, bool enabled) override;
|
||||
|
||||
virtual Texture CreateTexture(CImage *image, const TextureCreateParams ¶ms) override;
|
||||
virtual Texture CreateTexture(ImageData *data, const TextureCreateParams ¶ms) override;
|
||||
virtual Texture CreateDepthTexture(int width, int height, int depth) override;
|
||||
virtual void DestroyTexture(const Texture &texture) override;
|
||||
virtual void DestroyAllTextures() override;
|
||||
Texture CreateTexture(CImage *image, const TextureCreateParams ¶ms) override;
|
||||
Texture CreateTexture(ImageData *data, const TextureCreateParams ¶ms) override;
|
||||
Texture CreateDepthTexture(int width, int height, int depth) override;
|
||||
void DestroyTexture(const Texture &texture) override;
|
||||
void DestroyAllTextures() override;
|
||||
|
||||
virtual int GetMaxTextureStageCount() override;
|
||||
virtual void SetTexture(int index, const Texture &texture) override;
|
||||
virtual void SetTexture(int index, unsigned int textureId) override;
|
||||
virtual void SetTextureEnabled(int index, bool enabled) override;
|
||||
int GetMaxTextureStageCount() override;
|
||||
void SetTexture(int index, const Texture &texture) override;
|
||||
void SetTexture(int index, unsigned int textureId) override;
|
||||
void SetTextureEnabled(int index, bool enabled) override;
|
||||
|
||||
virtual void SetTextureStageParams(int index, const TextureStageParams ¶ms) override;
|
||||
void SetTextureStageParams(int index, const TextureStageParams ¶ms) override;
|
||||
|
||||
virtual void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT) override;
|
||||
virtual void SetTextureCoordGeneration(int index, TextureGenerationParams ¶ms) override;
|
||||
void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT) override;
|
||||
void SetTextureCoordGeneration(int index, TextureGenerationParams ¶ms) override;
|
||||
|
||||
virtual void DrawPrimitive(PrimitiveType type, const Vertex *vertices , int vertexCount,
|
||||
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override;
|
||||
virtual void DrawPrimitive(PrimitiveType type, const VertexTex2 *vertices, int vertexCount,
|
||||
Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override;
|
||||
virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) override;
|
||||
void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) override;
|
||||
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
virtual unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
virtual void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
virtual void DrawStaticBuffer(unsigned int bufferId) override;
|
||||
virtual void DestroyStaticBuffer(unsigned int bufferId) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
unsigned int CreateStaticBuffer(PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const Vertex* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexTex2* vertices, int vertexCount) override;
|
||||
void UpdateStaticBuffer(unsigned int bufferId, PrimitiveType primitiveType, const VertexCol* vertices, int vertexCount) override;
|
||||
void DrawStaticBuffer(unsigned int bufferId) override;
|
||||
void DestroyStaticBuffer(unsigned int bufferId) override;
|
||||
|
||||
virtual int ComputeSphereVisibility(const Math::Vector ¢er, float radius) override;
|
||||
int ComputeSphereVisibility(const Math::Vector ¢er, float radius) override;
|
||||
|
||||
virtual void SetViewport(int x, int y, int width, int height) override;
|
||||
void SetViewport(int x, int y, int width, int height) override;
|
||||
|
||||
virtual void SetRenderState(RenderState state, bool enabled) override;
|
||||
void SetRenderState(RenderState state, bool enabled) override;
|
||||
|
||||
virtual void SetColorMask(bool red, bool green, bool blue, bool alpha) override;
|
||||
void SetColorMask(bool red, bool green, bool blue, bool alpha) override;
|
||||
|
||||
virtual void SetDepthTestFunc(CompFunc func) override;
|
||||
void SetDepthTestFunc(CompFunc func) override;
|
||||
|
||||
virtual void SetDepthBias(float factor, float units) override;
|
||||
void SetDepthBias(float factor, float units) override;
|
||||
|
||||
virtual void SetAlphaTestFunc(CompFunc func, float refValue) override;
|
||||
void SetAlphaTestFunc(CompFunc func, float refValue) override;
|
||||
|
||||
virtual void SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend) override;
|
||||
void SetBlendFunc(BlendFunc srcBlend, BlendFunc dstBlend) override;
|
||||
|
||||
virtual void SetClearColor(const Color &color) override;
|
||||
void SetClearColor(const Color &color) override;
|
||||
|
||||
virtual void SetGlobalAmbient(const Color &color) override;
|
||||
void SetGlobalAmbient(const Color &color) override;
|
||||
|
||||
virtual void SetFogParams(FogMode mode, const Color &color, float start, float end, float density) override;
|
||||
void SetFogParams(FogMode mode, const Color &color, float start, float end, float density) override;
|
||||
|
||||
virtual void SetCullMode(CullMode mode) override;
|
||||
void SetCullMode(CullMode mode) override;
|
||||
|
||||
virtual void SetShadeModel(ShadeModel model) override;
|
||||
void SetShadeModel(ShadeModel model) override;
|
||||
|
||||
virtual void SetShadowColor(float value) override;
|
||||
void SetShadowColor(float value) override;
|
||||
|
||||
virtual void SetFillMode(FillMode mode) override;
|
||||
void SetFillMode(FillMode mode) override;
|
||||
|
||||
virtual void CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height) override;
|
||||
void CopyFramebufferToTexture(Texture& texture, int xOffset, int yOffset, int x, int y, int width, int height) override;
|
||||
|
||||
virtual std::unique_ptr<CFrameBufferPixels> GetFrameBufferPixels() const override;
|
||||
std::unique_ptr<CFrameBufferPixels> GetFrameBufferPixels() const override;
|
||||
|
||||
virtual CFramebuffer* GetFramebuffer(std::string name) override;
|
||||
CFramebuffer* GetFramebuffer(std::string name) override;
|
||||
|
||||
virtual CFramebuffer* CreateFramebuffer(std::string name, const FramebufferParams& params) override;
|
||||
CFramebuffer* CreateFramebuffer(std::string name, const FramebufferParams& params) override;
|
||||
|
||||
virtual void DeleteFramebuffer(std::string name) override;
|
||||
void DeleteFramebuffer(std::string name) override;
|
||||
|
||||
virtual bool IsAnisotropySupported() override;
|
||||
virtual int GetMaxAnisotropyLevel() override;
|
||||
bool IsAnisotropySupported() override;
|
||||
int GetMaxAnisotropyLevel() override;
|
||||
|
||||
virtual int GetMaxSamples() override;
|
||||
int GetMaxSamples() override;
|
||||
|
||||
virtual bool IsShadowMappingSupported() override;
|
||||
bool IsShadowMappingSupported() override;
|
||||
|
||||
virtual int GetMaxTextureSize() override;
|
||||
int GetMaxTextureSize() override;
|
||||
|
||||
virtual bool IsFramebufferSupported() override;
|
||||
bool IsFramebufferSupported() override;
|
||||
|
||||
private:
|
||||
//! Updates internal modelview matrix
|
||||
|
|
|
@ -51,29 +51,29 @@ protected:
|
|||
public:
|
||||
CGLFramebuffer(const FramebufferParams& params);
|
||||
|
||||
virtual void Create() override;
|
||||
void Create() override;
|
||||
|
||||
virtual void Destroy() override;
|
||||
void Destroy() override;
|
||||
|
||||
virtual bool IsDefault() override;
|
||||
bool IsDefault() override;
|
||||
|
||||
virtual int GetWidth() override;
|
||||
int GetWidth() override;
|
||||
|
||||
virtual int GetHeight() override;
|
||||
int GetHeight() override;
|
||||
|
||||
virtual int GetDepth() override;
|
||||
int GetDepth() override;
|
||||
|
||||
virtual int GetSamples() override;
|
||||
int GetSamples() override;
|
||||
|
||||
virtual int GetColorTexture() override;
|
||||
int GetColorTexture() override;
|
||||
|
||||
virtual int GetDepthTexture() override;
|
||||
int GetDepthTexture() override;
|
||||
|
||||
virtual void Bind() override;
|
||||
void Bind() override;
|
||||
|
||||
virtual void Unbind() override;
|
||||
void Unbind() override;
|
||||
|
||||
virtual void CopyToScreen(int fromX, int fromY, int fromWidth, int fromHeight, int toX, int toY, int toWidth, int toHeight) override;
|
||||
void CopyToScreen(int fromX, int fromY, int fromWidth, int fromHeight, int toX, int toY, int toWidth, int toHeight) override;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -101,29 +101,29 @@ protected:
|
|||
public:
|
||||
CGLFramebufferEXT(const FramebufferParams& params);
|
||||
|
||||
virtual void Create() override;
|
||||
void Create() override;
|
||||
|
||||
virtual void Destroy() override;
|
||||
void Destroy() override;
|
||||
|
||||
virtual bool IsDefault() override;
|
||||
bool IsDefault() override;
|
||||
|
||||
virtual int GetWidth() override;
|
||||
int GetWidth() override;
|
||||
|
||||
virtual int GetHeight() override;
|
||||
int GetHeight() override;
|
||||
|
||||
virtual int GetDepth() override;
|
||||
int GetDepth() override;
|
||||
|
||||
virtual int GetSamples() override;
|
||||
int GetSamples() override;
|
||||
|
||||
virtual int GetColorTexture() override;
|
||||
int GetColorTexture() override;
|
||||
|
||||
virtual int GetDepthTexture() override;
|
||||
int GetDepthTexture() override;
|
||||
|
||||
virtual void Bind() override;
|
||||
void Bind() override;
|
||||
|
||||
virtual void Unbind() override;
|
||||
void Unbind() override;
|
||||
|
||||
virtual void CopyToScreen(int fromX, int fromY, int fromWidth, int fromHeight, int toX, int toY, int toWidth, int toHeight) override;
|
||||
void CopyToScreen(int fromX, int fromY, int fromWidth, int fromHeight, int toX, int toY, int toWidth, int toHeight) override;
|
||||
};
|
||||
|
||||
} // end of Gfx
|
||||
|
|
|
@ -80,7 +80,7 @@ public:
|
|||
bool immediat = false;
|
||||
|
||||
//! Read from line in scene file
|
||||
virtual void Read(CLevelParserLine* line);
|
||||
void Read(CLevelParserLine* line) override;
|
||||
|
||||
//! Checks if lost condition is met
|
||||
bool CheckLost();
|
||||
|
@ -102,5 +102,5 @@ public:
|
|||
bool changed = false;
|
||||
|
||||
//! Read from line in scene file
|
||||
virtual void Read(CLevelParserLine* line);
|
||||
void Read(CLevelParserLine* line) override;
|
||||
};
|
||||
|
|
|
@ -72,15 +72,15 @@ public:
|
|||
CAutoBase(COldObject* object);
|
||||
~CAutoBase();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
void Start(int param);
|
||||
bool EventProcess(const Event &event);
|
||||
bool Abort();
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
void Start(int param) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
bool Abort() override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
Error TakeOff(bool printMsg);
|
||||
|
||||
|
|
|
@ -42,17 +42,17 @@ public:
|
|||
CAutoConvert(COldObject* object);
|
||||
~CAutoConvert();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
bool Abort();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
bool Abort() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
CObject* SearchStone(ObjectType type);
|
||||
|
|
|
@ -42,16 +42,16 @@ public:
|
|||
CAutoDerrick(COldObject* object);
|
||||
~CAutoDerrick();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
CObject* SearchCargo();
|
||||
|
|
|
@ -42,18 +42,18 @@ public:
|
|||
CAutoDestroyer(COldObject* object);
|
||||
~CAutoDestroyer();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
Error StartAction(int param);
|
||||
Error StartAction(int param) override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
CObject* SearchPlastic();
|
||||
|
|
|
@ -43,18 +43,18 @@ public:
|
|||
CAutoFactory(COldObject* object);
|
||||
~CAutoFactory();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error StartAction(int param);
|
||||
Error StartAction(int param) override;
|
||||
void SetProgram(const std::string& program);
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
void UpdateInterface();
|
||||
|
|
|
@ -30,12 +30,12 @@ public:
|
|||
CAutoFlag(COldObject* object);
|
||||
~CAutoFlag();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
void Start(int param);
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
void Start(int param) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
protected:
|
||||
float m_strong = 0.0f;
|
||||
|
|
|
@ -46,15 +46,15 @@ public:
|
|||
CAutoHouston(COldObject* object);
|
||||
~CAutoHouston();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
void Start(int param);
|
||||
bool EventProcess(const Event &event);
|
||||
bool Abort();
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
void Start(int param) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
bool Abort() override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
protected:
|
||||
float m_progress = 0.0f;
|
||||
|
|
|
@ -47,17 +47,17 @@ public:
|
|||
CAutoLabo(COldObject* object);
|
||||
~CAutoLabo();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
Error StartAction(int param);
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
Error StartAction(int param) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
void UpdateInterface();
|
||||
|
|
|
@ -41,14 +41,14 @@ public:
|
|||
CAutoMush(COldObject* object);
|
||||
~CAutoMush();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
bool SearchTarget();
|
||||
|
|
|
@ -39,14 +39,14 @@ public:
|
|||
CAutoNest(COldObject* object);
|
||||
~CAutoNest();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
bool SearchFree(Math::Vector pos);
|
||||
|
|
|
@ -42,16 +42,16 @@ public:
|
|||
CAutoNuclearPlant(COldObject* object);
|
||||
~CAutoNuclearPlant();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
CObject* SearchUranium();
|
||||
|
|
|
@ -43,13 +43,13 @@ public:
|
|||
CAutoPortico(COldObject* object);
|
||||
~CAutoPortico();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
void Start(int param);
|
||||
bool EventProcess(const Event &event);
|
||||
bool Abort();
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
void Start(int param) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
bool Abort() override;
|
||||
Error GetError() override;
|
||||
|
||||
protected:
|
||||
void UpdateTrackMapping(float left, float right);
|
||||
|
|
|
@ -39,17 +39,17 @@ public:
|
|||
CAutoPowerCaptor(COldObject* object);
|
||||
~CAutoPowerCaptor();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
void StartLightning();
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
void ChargeObject(float rTime);
|
||||
|
|
|
@ -43,16 +43,16 @@ public:
|
|||
CAutoPowerPlant(COldObject* object);
|
||||
~CAutoPowerPlant();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
void UpdateInterface(float rTime);
|
||||
|
|
|
@ -31,13 +31,13 @@ public:
|
|||
CAutoPowerStation(COldObject* object);
|
||||
~CAutoPowerStation();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
protected:
|
||||
void UpdateInterface(float rTime);
|
||||
|
|
|
@ -40,12 +40,12 @@ public:
|
|||
CAutoRadar(COldObject* object);
|
||||
~CAutoRadar();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
bool CreateInterface(bool bSelect);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
Error GetError() override;
|
||||
|
||||
protected:
|
||||
void UpdateInterface();
|
||||
|
|
|
@ -42,16 +42,16 @@ public:
|
|||
CAutoRepair(COldObject* object);
|
||||
~CAutoRepair();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
CObject* SearchVehicle();
|
||||
|
|
|
@ -39,17 +39,17 @@ public:
|
|||
CAutoResearch(COldObject* object);
|
||||
~CAutoResearch();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
Error StartAction(int result);
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
Error StartAction(int result) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
void UpdateInterface();
|
||||
|
|
|
@ -30,11 +30,11 @@ public:
|
|||
CAutoRoot(COldObject* object);
|
||||
~CAutoRoot();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -42,16 +42,16 @@ public:
|
|||
CAutoTower(COldObject* object);
|
||||
~CAutoTower();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
void UpdateInterface(float rTime);
|
||||
|
|
|
@ -40,16 +40,16 @@ public:
|
|||
CAutoVault(COldObject* object);
|
||||
~CAutoVault();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
|
||||
void Init();
|
||||
bool EventProcess(const Event &event);
|
||||
Error GetError();
|
||||
void Init() override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error GetError() override;
|
||||
|
||||
bool CreateInterface(bool bSelect);
|
||||
bool CreateInterface(bool bSelect) override;
|
||||
|
||||
bool Write(CLevelParserLine* line);
|
||||
bool Read(CLevelParserLine* line);
|
||||
bool Write(CLevelParserLine* line) override;
|
||||
bool Read(CLevelParserLine* line) override;
|
||||
|
||||
protected:
|
||||
int CountKeys();
|
||||
|
|
|
@ -50,9 +50,9 @@ public:
|
|||
CMotionAnt(COldObject* object);
|
||||
~CMotionAnt();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
bool EventProcess(const Event &event);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
protected:
|
||||
void CreatePhysics();
|
||||
|
|
|
@ -44,9 +44,9 @@ public:
|
|||
CMotionBee(COldObject* object);
|
||||
~CMotionBee();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
bool EventProcess(const Event &event);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
protected:
|
||||
void CreatePhysics();
|
||||
|
|
|
@ -62,10 +62,10 @@ public:
|
|||
CMotionHuman(COldObject* object);
|
||||
~CMotionHuman();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
bool EventProcess(const Event &event);
|
||||
Error SetAction(int action, float time=0.2f);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error SetAction(int action, float time=0.2f) override;
|
||||
|
||||
void StartDisplayPerso();
|
||||
void StopDisplayPerso();
|
||||
|
|
|
@ -28,6 +28,6 @@ public:
|
|||
CMotionLevelController(COldObject* object);
|
||||
~CMotionLevelController();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
};
|
||||
|
|
|
@ -30,9 +30,9 @@ public:
|
|||
CMotionQueen(COldObject* object);
|
||||
~CMotionQueen();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
bool EventProcess(const Event &event);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
protected:
|
||||
void CreatePhysics();
|
||||
|
|
|
@ -48,9 +48,9 @@ public:
|
|||
CMotionSpider(COldObject* object);
|
||||
~CMotionSpider();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
bool EventProcess(const Event &event);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
protected:
|
||||
void CreatePhysics();
|
||||
|
|
|
@ -39,10 +39,10 @@ public:
|
|||
CMotionToto(COldObject* object);
|
||||
~CMotionToto();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
bool EventProcess(const Event &event);
|
||||
Error SetAction(int action, float time=0.2f);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
Error SetAction(int action, float time=0.2f) override;
|
||||
void SetLinkType(ObjectType type);
|
||||
|
||||
void StartDisplayInfo();
|
||||
|
|
|
@ -29,9 +29,9 @@ public:
|
|||
CMotionVehicle(COldObject* object);
|
||||
~CMotionVehicle();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
bool EventProcess(const Event &event);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
protected:
|
||||
void CreatePhysics(ObjectType type);
|
||||
|
|
|
@ -30,12 +30,12 @@ public:
|
|||
CMotionWorm(COldObject* object);
|
||||
~CMotionWorm();
|
||||
|
||||
void DeleteObject(bool bAll=false);
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager);
|
||||
bool EventProcess(const Event &event);
|
||||
void DeleteObject(bool bAll=false) override;
|
||||
void Create(Math::Vector pos, float angle, ObjectType type, float power, Gfx::COldModelManager* modelManager) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
bool SetParam(int rank, float value);
|
||||
float GetParam(int rank);
|
||||
bool SetParam(int rank, float value) override;
|
||||
float GetParam(int rank) override;
|
||||
|
||||
protected:
|
||||
void CreatePhysics();
|
||||
|
|
|
@ -99,7 +99,7 @@ public:
|
|||
CForegroundTask(COldObject* object) : CTask(object) {}
|
||||
|
||||
bool IsBackground() final { return false; }
|
||||
virtual bool IsPilot() { return false; }
|
||||
bool IsPilot() override { return false; }
|
||||
};
|
||||
|
||||
class CBackgroundTask : public CTask
|
||||
|
|
|
@ -32,10 +32,10 @@ public:
|
|||
CTaskAdvance(COldObject* object);
|
||||
~CTaskAdvance();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(float length);
|
||||
Error IsEnded();
|
||||
Error IsEnded() override;
|
||||
|
||||
protected:
|
||||
float m_totalLength = 0.0f;
|
||||
|
|
|
@ -53,11 +53,11 @@ public:
|
|||
CTaskBuild(COldObject* object);
|
||||
~CTaskBuild();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(ObjectType type);
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
Error FlatFloor();
|
||||
|
|
|
@ -29,11 +29,11 @@ public:
|
|||
CTaskDeleteMark(COldObject* object);
|
||||
~CTaskDeleteMark();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start();
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
void DeleteMark();
|
||||
|
|
|
@ -30,12 +30,12 @@ public:
|
|||
CTaskFire(COldObject* object);
|
||||
~CTaskFire();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(float delay);
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
bool IsPilot();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
bool IsPilot() override;
|
||||
|
||||
protected:
|
||||
float m_delay = 0.0f;
|
||||
|
|
|
@ -42,11 +42,11 @@ public:
|
|||
CTaskFireAnt(COldObject* object);
|
||||
~CTaskFireAnt();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(Math::Vector impact);
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -42,11 +42,11 @@ public:
|
|||
CTaskFlag(COldObject* object);
|
||||
~CTaskFlag();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(TaskFlagOrder order, int rank);
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
Error CreateFlag(int rank);
|
||||
|
|
|
@ -79,10 +79,10 @@ public:
|
|||
CTaskGoto(COldObject* object);
|
||||
~CTaskGoto();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(Math::Vector goal, float altitude, TaskGotoGoal goalMode, TaskGotoCrash crashMode);
|
||||
Error IsEnded();
|
||||
Error IsEnded() override;
|
||||
|
||||
protected:
|
||||
CObject* WormSearch(Math::Vector &impact);
|
||||
|
|
|
@ -30,11 +30,11 @@ public:
|
|||
CTaskGunGoal(COldObject* object);
|
||||
~CTaskGunGoal();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(float dirV, float dirH);
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
float m_progress = 0.0f;
|
||||
|
|
|
@ -62,11 +62,11 @@ public:
|
|||
CTaskManip(COldObject* object);
|
||||
~CTaskManip();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(TaskManipOrder order, TaskManipArm arm);
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
void InitAngle();
|
||||
|
|
|
@ -42,11 +42,11 @@ public:
|
|||
CTaskPen(COldObject* object);
|
||||
~CTaskPen();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(bool bDown, TraceColor color);
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
void SoundManip(float time, float amplitude, float frequency);
|
||||
|
|
|
@ -43,11 +43,11 @@ public:
|
|||
CTaskRecover(COldObject* object);
|
||||
~CTaskRecover();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start();
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
CObject* SearchRuin();
|
||||
|
|
|
@ -47,11 +47,11 @@ public:
|
|||
CTaskSearch(COldObject* object);
|
||||
~CTaskSearch();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start();
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
void InitAngle();
|
||||
|
|
|
@ -57,12 +57,12 @@ public:
|
|||
CTaskShield(COldObject* object);
|
||||
~CTaskShield();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(TaskShieldMode mode, float delay);
|
||||
Error IsEnded();
|
||||
bool IsBusy();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool IsBusy() override;
|
||||
bool Abort() override;
|
||||
|
||||
float GetActiveRadius();
|
||||
|
||||
|
|
|
@ -30,11 +30,11 @@ public:
|
|||
CTaskSpiderExplo(COldObject* object);
|
||||
~CTaskSpiderExplo();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start();
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
float m_time = 0.0f;
|
||||
|
|
|
@ -48,11 +48,11 @@ public:
|
|||
CTaskTake(COldObject* object);
|
||||
~CTaskTake();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start();
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
CObject* SearchTakeObject(float &angle, float dLimit, float aLimit);
|
||||
|
|
|
@ -41,11 +41,11 @@ public:
|
|||
CTaskTerraform(COldObject* object);
|
||||
~CTaskTerraform();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start();
|
||||
Error IsEnded();
|
||||
bool Abort();
|
||||
Error IsEnded() override;
|
||||
bool Abort() override;
|
||||
|
||||
protected:
|
||||
bool Terraform();
|
||||
|
|
|
@ -30,10 +30,10 @@ public:
|
|||
CTaskTurn(COldObject* object);
|
||||
~CTaskTurn();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(float angle);
|
||||
Error IsEnded();
|
||||
Error IsEnded() override;
|
||||
|
||||
protected:
|
||||
float m_angle = 0.0f;
|
||||
|
|
|
@ -30,10 +30,10 @@ public:
|
|||
CTaskWait(COldObject* object);
|
||||
~CTaskWait();
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
Error Start(float time);
|
||||
Error IsEnded();
|
||||
Error IsEnded() override;
|
||||
|
||||
protected:
|
||||
float m_waitTime = 0.0f;
|
||||
|
|
|
@ -32,11 +32,11 @@ public:
|
|||
CButton();
|
||||
virtual ~CButton();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
|
||||
void SetImmediat(bool bRepeat);
|
||||
bool GetImmediat();
|
||||
|
|
|
@ -36,11 +36,11 @@ public:
|
|||
CCheck();
|
||||
virtual ~CCheck();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -37,11 +37,11 @@ public:
|
|||
CColor();
|
||||
virtual ~CColor();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
|
||||
void SetRepeat(bool bRepeat);
|
||||
bool GetRepeat();
|
||||
|
|
|
@ -116,13 +116,13 @@ public:
|
|||
|
||||
virtual ~CEdit();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
void SetPos(Math::Point pos);
|
||||
void SetDim(Math::Point dim);
|
||||
void SetPos(Math::Point pos) override;
|
||||
void SetDim(Math::Point dim) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
void Draw();
|
||||
bool EventProcess(const Event &event) override;
|
||||
void Draw() override;
|
||||
|
||||
void SetText(const char *text, bool bNew=true);
|
||||
void GetText(char *buffer, int max);
|
||||
|
@ -176,7 +176,7 @@ public:
|
|||
bool HyperTest(EventType event);
|
||||
bool HyperGo(EventType event);
|
||||
|
||||
void SetFontSize(float size);
|
||||
void SetFontSize(float size) override;
|
||||
|
||||
bool ClearFormat();
|
||||
bool SetFormat(int cursor1, int cursor2, int format);
|
||||
|
|
|
@ -51,13 +51,13 @@ public:
|
|||
CEditValue();
|
||||
virtual ~CEditValue();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
void SetPos(Math::Point pos);
|
||||
void SetDim(Math::Point dim);
|
||||
void SetPos(Math::Point pos) override;
|
||||
void SetDim(Math::Point dim) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
void Draw();
|
||||
bool EventProcess(const Event &event) override;
|
||||
void Draw() override;
|
||||
|
||||
void SetType(EditValueType type);
|
||||
EditValueType GetType();
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
unsigned int GetVisibleValueIndex();
|
||||
|
||||
protected:
|
||||
std::string GetLabel();
|
||||
std::string GetLabel() override;
|
||||
|
||||
protected:
|
||||
std::vector<float> m_values;
|
||||
|
|
|
@ -30,11 +30,11 @@ public:
|
|||
CGauge();
|
||||
virtual ~CGauge();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
|
||||
void SetLevel(float level);
|
||||
float GetLevel();
|
||||
|
|
|
@ -36,11 +36,11 @@ public:
|
|||
CGroup();
|
||||
virtual ~CGroup();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -37,11 +37,11 @@ public:
|
|||
CImage ();
|
||||
virtual ~CImage();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
|
||||
void SetFilenameImage(const std::string& name);
|
||||
|
||||
|
|
|
@ -43,12 +43,12 @@ public:
|
|||
virtual ~CKey();
|
||||
|
||||
//! Creates a new key slot button
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override;
|
||||
//! Management of an event
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
//! Draws button
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
|
||||
//! Management of binding
|
||||
//@{
|
||||
|
|
|
@ -34,10 +34,10 @@ public:
|
|||
CLabel();
|
||||
virtual ~CLabel();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg);
|
||||
bool EventProcess(const Event &event);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ protected:
|
|||
|
||||
private:
|
||||
// Overridden to avoid warning about hiding the virtual function
|
||||
virtual bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
protected:
|
||||
std::array<std::unique_ptr<CButton>, LISTMAXDISPLAY> m_buttons;
|
||||
|
|
|
@ -72,9 +72,9 @@ public:
|
|||
CMap();
|
||||
~CMap();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg);
|
||||
bool EventProcess(const Event &event);
|
||||
void Draw();
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override;
|
||||
bool EventProcess(const Event &event) override;
|
||||
void Draw() override;
|
||||
|
||||
void UpdateTerrain();
|
||||
void UpdateTerrain(int bx, int by, int ex, int ey);
|
||||
|
|
|
@ -41,17 +41,17 @@ public:
|
|||
CScroll();
|
||||
~CScroll();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override;
|
||||
|
||||
void SetPos(Math::Point pos);
|
||||
void SetDim(Math::Point dim);
|
||||
void SetPos(Math::Point pos) override;
|
||||
void SetDim(Math::Point dim) override;
|
||||
|
||||
bool SetState(int state, bool bState);
|
||||
bool SetState(int state);
|
||||
bool ClearState(int state);
|
||||
bool SetState(int state, bool bState) override;
|
||||
bool SetState(int state) override;
|
||||
bool ClearState(int state) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
void Draw();
|
||||
bool EventProcess(const Event &event) override;
|
||||
void Draw() override;
|
||||
|
||||
void SetVisibleValue(float value);
|
||||
float GetVisibleValue();
|
||||
|
|
|
@ -32,11 +32,11 @@ public:
|
|||
CShortcut();
|
||||
~CShortcut();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
bool EventProcess(const Event &event) override;
|
||||
|
||||
void Draw();
|
||||
void Draw() override;
|
||||
|
||||
protected:
|
||||
void DrawVertex(int icon, float zoom);
|
||||
|
|
|
@ -34,17 +34,17 @@ public:
|
|||
CSlider();
|
||||
~CSlider();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override;
|
||||
|
||||
void SetPos(Math::Point pos);
|
||||
void SetDim(Math::Point dim);
|
||||
void SetPos(Math::Point pos) override;
|
||||
void SetDim(Math::Point dim) override;
|
||||
|
||||
bool SetState(int state, bool bState);
|
||||
bool SetState(int state);
|
||||
bool ClearState(int state);
|
||||
bool SetState(int state, bool bState) override;
|
||||
bool SetState(int state) override;
|
||||
bool ClearState(int state) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
void Draw();
|
||||
bool EventProcess(const Event &event) override;
|
||||
void Draw() override;
|
||||
|
||||
void SetLimit(float min, float max);
|
||||
|
||||
|
|
|
@ -39,11 +39,11 @@ public:
|
|||
CTarget();
|
||||
~CTarget();
|
||||
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg);
|
||||
bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override;
|
||||
|
||||
bool EventProcess(const Event &event);
|
||||
void Draw();
|
||||
bool GetTooltip(Math::Point pos, std::string &name);
|
||||
bool EventProcess(const Event &event) override;
|
||||
void Draw() override;
|
||||
bool GetTooltip(Math::Point pos, std::string &name) override;
|
||||
|
||||
protected:
|
||||
CObject* DetectFriendObject(Math::Point pos);
|
||||
|
|
|
@ -79,7 +79,7 @@ public:
|
|||
EventType GetEventTypeFull();
|
||||
EventType GetEventTypeClose();
|
||||
|
||||
virtual void SetName(std::string name, bool tooltip = true) override;
|
||||
void SetName(std::string name, bool tooltip = true) override;
|
||||
|
||||
void SetTrashEvent(bool bTrash);
|
||||
bool GetTrashEvent();
|
||||
|
|
Loading…
Reference in New Issue