diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2022-08-19 16:55:29 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2022-08-19 17:34:55 +0200 |
commit | 109b602701578b9f2b29282f84bf2757544f8d32 (patch) | |
tree | a2fd70556c86385a75bfb7651e865beb0a05fd37 /src/game-server/being.h | |
parent | 6c6090991e17276de09f5f82d2fc8a6c1adf5bf4 (diff) | |
download | manaserv-109b602701578b9f2b29282f84bf2757544f8d32.tar.gz manaserv-109b602701578b9f2b29282f84bf2757544f8d32.tar.bz2 manaserv-109b602701578b9f2b29282f84bf2757544f8d32.tar.xz manaserv-109b602701578b9f2b29282f84bf2757544f8d32.zip |
Apply C++11 fixits
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
Diffstat (limited to 'src/game-server/being.h')
-rw-r--r-- | src/game-server/being.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game-server/being.h b/src/game-server/being.h index a29ae747..eb03c134 100644 --- a/src/game-server/being.h +++ b/src/game-server/being.h @@ -38,7 +38,7 @@ class BeingComponent; class MapComposite; class StatusEffect; -typedef std::map<AttributeInfo *, Attribute> AttributeMap; +using AttributeMap = std::map<AttributeInfo *, Attribute>; struct Status { @@ -46,12 +46,12 @@ struct Status unsigned time; // Number of ticks }; -typedef std::map< int, Status > StatusEffects; +using StatusEffects = std::map<int, Status>; /** * Type definition for a list of hits */ -typedef std::vector<unsigned> Hits; +using Hits = std::vector<unsigned int>; /** * Generic being (living actor). Keeps direction, destination and a few other @@ -70,7 +70,7 @@ class BeingComponent : public Component /** * Update being state. */ - virtual void update(Entity &entity); + void update(Entity &entity) override; /** Restores all hit points of the being */ void heal(Entity &entity); |