SAGA2: Use override

Using clang-tidy modernize-use-override
This commit is contained in:
Orgad Shaneh 2021-11-14 09:03:48 +02:00 committed by Filippos Karapetis
parent fc95bf1eca
commit d6a4c4f83a
4 changed files with 19 additions and 19 deletions

View File

@ -107,7 +107,7 @@ public:
void drawClipped(
gPort &port,
const Point16 &offset,
const Rect16 &r);
const Rect16 &r) override;
};
void ModalDialogWindow::positionText(
@ -317,8 +317,8 @@ public:
ModalDialogWindow(r, ident, cmd, windowText, args) {
}
void pointerRelease(gPanelMessage &);
bool keyStroke(gPanelMessage &);
void pointerRelease(gPanelMessage &) override;
bool keyStroke(gPanelMessage &) override;
};
void ModalDisplayWindow::pointerRelease(gPanelMessage &) {

View File

@ -66,7 +66,7 @@ public:
ArmorAttributes attr;
void drawClipped(gPort &,
const Point16 &,
const Rect16 &);
const Rect16 &) override;
void setValue(PlayerActorID pID);
@ -184,8 +184,8 @@ class gEnchantmentDisplay : public gControl {
uint8 iconFlags[iconCount];
void drawClipped(gPort &, const Point16 &, const Rect16 &);
void pointerMove(gPanelMessage &msg);
void drawClipped(gPort &, const Point16 &, const Rect16 &) override;
void pointerMove(gPanelMessage &msg) override;
public:
void setValue(PlayerActorID pID);

View File

@ -1202,14 +1202,14 @@ public:
DestinationPathRequest(Actor *a, int16 howSmart);
// Initialize the static data members for this path request.
void initialize();
void initialize() override;
// Set and evaluate a new center location.
bool setCenter(
const TilePoint &baseTileCoords,
const QueueItem &qi);
const QueueItem &qi) override;
bool validMove(const TilePoint &testPt);
bool validMove(const TilePoint &testPt) override;
// Evaluate the cost of travelling on these stairs
int16 evaluateStairs(
@ -1217,10 +1217,10 @@ public:
Direction moveDir,
Direction stairDir,
int16 baseAltitude,
int16 upperAltitude);
int16 upperAltitude) override;
// Evaluate the cost of the specified move
int16 evaluateMove(const TilePoint &testPt, uint8 testPlatform);
int16 evaluateMove(const TilePoint &testPt, uint8 testPlatform) override;
};
/* ===================================================================== *
@ -1252,16 +1252,16 @@ public:
WanderPathRequest(Actor *a, int16 howSmart);
// Initialize the static data members
void initialize();
void initialize() override;
// Set and evaluate a new center location.
bool setCenter(
const TilePoint &baseTileCoords,
const QueueItem &qi);
const QueueItem &qi) override;
// Determine if point is within the tether region if there is a
// tether
bool validMove(const TilePoint &testPt);
bool validMove(const TilePoint &testPt) override;
// Evaluate the cost of moving on the specified stairs.
int16 evaluateStairs(
@ -1269,11 +1269,11 @@ public:
Direction moveDir,
Direction stairDir,
int16 baseAltitude,
int16 upperAltitude);
int16 upperAltitude) override;
// Evaluate the cost of moving from the current center location
// to the specified location.
int16 evaluateMove(const TilePoint &testPt, uint8 testPlatform);
int16 evaluateMove(const TilePoint &testPt, uint8 testPlatform) override;
};
/* ===================================================================== *

View File

@ -73,11 +73,11 @@ public:
}
private:
void deactivate();
void deactivate() override;
// void pointerMove( gPanelMessage &msg );
bool pointerHit(gPanelMessage &msg);
void pointerRelease(gPanelMessage &msg);
bool pointerHit(gPanelMessage &msg) override;
void pointerRelease(gPanelMessage &msg) override;
};
/* ===================================================================== *