Add missing override keywords

dev-time-step
krzys-h 2016-01-23 20:49:01 +01:00
parent 2af89ab378
commit 344cda4ae6
42 changed files with 91 additions and 91 deletions

View File

@ -97,8 +97,8 @@ public:
*/
virtual ~CBotExternalCallDefault();
virtual CBotTypResult Compile(CBotVar* thisVar, CBotVar* args, void* user);
virtual bool Run(CBotVar* thisVar, CBotStack* pStack);
virtual CBotTypResult Compile(CBotVar* thisVar, CBotVar* args, void* user) override;
virtual bool Run(CBotVar* thisVar, CBotStack* pStack) override;
private:
RuntimeFunc m_rExec;

View File

@ -57,8 +57,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotBreak"; }
virtual std::string GetDebugData();
virtual const std::string GetDebugName() override { return "CBotBreak"; }
virtual std::string GetDebugData() override;
private:
//! A label if there is

View File

@ -68,8 +68,8 @@ public:
bool CompCase(CBotStack* &pj, int val) override;
protected:
virtual const std::string GetDebugName() { return "CBotCase"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotCase"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Value to compare.

View File

@ -73,8 +73,8 @@ public:
void RestoreCondState(CBotStack* &pj, bool bMain);
protected:
virtual const std::string GetDebugName() { return "CBotCatch"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotCatch"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Instructions

View File

@ -64,9 +64,9 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotDefArray"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotDefArray"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! The variables to initialize.

View File

@ -58,8 +58,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotDefBoolean"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotDefBoolean"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Variable to initialise.

View File

@ -69,8 +69,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotClassInstr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotClassInstr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:

View File

@ -58,8 +58,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotDefFloat"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotDefFloat"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Variable to initialise.

View File

@ -58,8 +58,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotDefInt"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotDefInt"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! The variable to initialize.

View File

@ -58,8 +58,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotDefString"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotDefString"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Variable to initialise.

View File

@ -56,9 +56,9 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotDo"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotDo"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Instruction

View File

@ -45,7 +45,7 @@ class CBotEmpty : public CBotInstr
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotEmpty"; }
virtual const std::string GetDebugName() override { return "CBotEmpty"; }
};
} // namespace CBot

View File

@ -56,7 +56,7 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotExprLitBool"; }
virtual const std::string GetDebugName() override { return "CBotExprLitBool"; }
};
} // namespace CBot

View File

@ -48,8 +48,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotExprLitNan"; }
virtual std::string GetDebugData() { return "nan"; }
virtual const std::string GetDebugName() override { return "CBotExprLitNan"; }
virtual std::string GetDebugData() override { return "nan"; }
};
} // namespace CBot

View File

@ -48,8 +48,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotExprLitNull"; }
virtual std::string GetDebugData() { return "null"; }
virtual const std::string GetDebugName() override { return "CBotExprLitNull"; }
virtual std::string GetDebugData() override { return "null"; }
};
} // namespace CBot

View File

@ -59,8 +59,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotExprLitNum"; }
virtual std::string GetDebugData();
virtual const std::string GetDebugName() override { return "CBotExprLitNum"; }
virtual std::string GetDebugData() override;
private:
//! The type of number.

View File

@ -56,8 +56,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotExprLitString"; }
virtual std::string GetDebugData();
virtual const std::string GetDebugName() override { return "CBotExprLitString"; }
virtual std::string GetDebugData() override;
};
} // namespace CBot

View File

@ -56,8 +56,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotExprUnaire"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotExprUnaire"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Expression to be evaluated.

View File

@ -89,8 +89,8 @@ public:
void RestoreStateVar(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotExprVar"; }
virtual std::string GetDebugData();
virtual const std::string GetDebugName() override { return "CBotExprVar"; }
virtual std::string GetDebugData() override;
private:
long m_nIdent;

View File

@ -67,8 +67,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotExpression"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotExpression"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Left operand

View File

@ -66,8 +66,8 @@ public:
void RestoreStateVar(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotFieldExpr"; }
virtual std::string GetDebugData();
virtual const std::string GetDebugName() override { return "CBotFieldExpr"; }
virtual std::string GetDebugData() override;
private:
friend class CBotExpression;

View File

@ -56,9 +56,9 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotFor"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotFor"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Initial intruction

View File

@ -243,9 +243,9 @@ public:
CBotGet modestop);
protected:
virtual const std::string GetDebugName() { return "CBotFunction"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotFunction"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
friend class CBotDebug;

View File

@ -57,8 +57,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotIf"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotIf"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Condition

View File

@ -61,8 +61,8 @@ public:
void RestoreStateVar(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotIndexExpr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotIndexExpr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Expression for calculating the index.

View File

@ -58,9 +58,9 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotInstrCall"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotInstrCall"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! The parameters to be evaluated.

View File

@ -68,9 +68,9 @@ public:
void RestoreStateVar(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotInstrMethode"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotInstrMethode"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! The parameters to be evaluated.

View File

@ -87,8 +87,8 @@ public:
void RestoreStateVar(CBotStack* &pile, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotLeftExpr"; }
virtual std::string GetDebugData();
virtual const std::string GetDebugName() override { return "CBotLeftExpr"; }
virtual std::string GetDebugData() override;
private:
long m_nIdent;

View File

@ -51,8 +51,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotLeftExprVar"; }
virtual std::string GetDebugData();
virtual const std::string GetDebugName() override { return "CBotLeftExprVar"; }
virtual std::string GetDebugData() override;
public:
//! Type of variable declared.

View File

@ -58,8 +58,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotListArray"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotListArray"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! An expression for an element others are linked with CBotInstr :: m_next3;

View File

@ -72,8 +72,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotListExpression"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotListExpression"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! The first expression to be evaluated

View File

@ -57,8 +57,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotListInstr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotListInstr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Instructions to do.

View File

@ -51,8 +51,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotLogicExpr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotLogicExpr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Test to evaluate

View File

@ -56,9 +56,9 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotNew"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotNew"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! The parameters to be evaluated

View File

@ -50,8 +50,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotPostIncExpr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotPostIncExpr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
CBotInstr* m_instr;

View File

@ -50,8 +50,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotPreIncExpr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotPreIncExpr"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
CBotInstr* m_instr;

View File

@ -56,8 +56,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotReturn"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotReturn"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Parameter of return

View File

@ -58,8 +58,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotSwitch"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotSwitch"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Value to seek

View File

@ -56,8 +56,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotThrow"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotThrow"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! The value to send.

View File

@ -59,8 +59,8 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotTry"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotTry"; }
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Instructions

View File

@ -82,9 +82,9 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotTwoOpExpr"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotTwoOpExpr"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Left element

View File

@ -65,9 +65,9 @@ public:
void RestoreState(CBotStack* &pj, bool bMain) override;
protected:
virtual const std::string GetDebugName() { return "CBotWhile"; }
virtual std::string GetDebugData();
virtual std::map<std::string, CBotInstr*> GetDebugLinks();
virtual const std::string GetDebugName() override { return "CBotWhile"; }
virtual std::string GetDebugData() override;
virtual std::map<std::string, CBotInstr*> GetDebugLinks() override;
private:
//! Condition