Emergency 20 Dokumentation  4.2.0
BenchmarkGameMode.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
30  class BenchmarkGameMode : public GameMode
31  {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Public methods ]
36  //[-------------------------------------------------------]
37  public:
43 
48  virtual ~BenchmarkGameMode();
49 
50 
51  //[-------------------------------------------------------]
52  //[ Public virtual em5::GameMode methods ]
53  //[-------------------------------------------------------]
54  public:
55  virtual std::string getGameModeAsString() const override;
56  virtual void startup() override;
57  virtual void shutdown() override;
58  virtual void onGameLoaded() override;
59  virtual void updateGameMode(qsf::Time timePassed) override;
60 
61 
62  //[-------------------------------------------------------]
63  //[ CAMP reflection system ]
64  //[-------------------------------------------------------]
65  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
66 
67 
68  };
69 
70 
71 //[-------------------------------------------------------]
72 //[ Namespace ]
73 //[-------------------------------------------------------]
74 } // em5
75 
76 
77 //[-------------------------------------------------------]
78 //[ CAMP reflection system ]
79 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
virtual void onGameLoaded() override
virtual ~BenchmarkGameMode()
Destructor.
virtual std::string getGameModeAsString() const override
Return the game mode type as string (lowercase)
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
BenchmarkGameMode()
Default constructor.
virtual void shutdown() override
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
virtual void startup() override
virtual void updateGameMode(qsf::Time timePassed) override
EMERGENCY 5 benchmark game mode.
Definition: BenchmarkGameMode.h:30
EMERGENCY 5 game mode base class.
Definition: GameMode.h:31
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32