Terminus
repairwagon.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "abstractwagon.h"
4 
5 namespace terminus
6 {
7 
11 class RepairWagon : public AbstractWagon
12 {
13 public:
14  RepairWagon(World & world, Train * train);
15  virtual ~RepairWagon();
16 
17  virtual void localUpdate() override;
18 
19  virtual void primaryActionInternal() override;
20  virtual float cooldownTime() const override;
21 
22  virtual WagonType wagonType() const override;
23 };
24 
25 }
virtual ~RepairWagon()
Definition: repairwagon.cpp:36
virtual WagonType wagonType() const override
Definition: repairwagon.cpp:81
The World class represents a running game instance and contains all graphical (3D) elements of the sc...
Definition: world.h:46
virtual void primaryActionInternal() override
The method that every wagon should override in order to define the wagon-specific primary action...
Definition: repairwagon.cpp:41
virtual float cooldownTime() const override
Definition: repairwagon.cpp:63
virtual void localUpdate() override
Updates wagon position and rotation.
Definition: repairwagon.cpp:68
Definition: eventhandler.cpp:18
The RepairWagon class provides a wagon type, which primary action increases the health of all still f...
Definition: repairwagon.h:11
The AbstractWagon class provides a common interface for all wagon types and contains common functiona...
Definition: abstractwagon.h:25
RepairWagon(World &world, Train *train)
Definition: repairwagon.cpp:18
WagonType
Definition: abstractwagon.h:13
The Train class works as a logical container for all wagons one train consists of.
Definition: train.h:25