Deep RTS
StateManager.h
Go to the documentation of this file.
1//
2// Created by Per-Arne on 24.02.2017.
3//
4#pragma once
5#include "Spawning.h"
6#include "Walking.h"
7#include "Idle.h"
8#include "Despawned.h"
9#include "Harvesting.h"
10#include "Building.h"
11#include "Combat.h"
12#include "Dead.h"
13
14class Game;
16
17public:
18 explicit StateManager(Game &game);
19 std::shared_ptr<BaseState> walkingState;
20 std::shared_ptr<BaseState> spawnState;
21 std::shared_ptr<BaseState> idleState;
22 std::shared_ptr<BaseState> despawnedState;
23 std::shared_ptr<BaseState> harvestingState;
24 std::shared_ptr<BaseState> buildingState;
25 std::shared_ptr<BaseState> combatState;
26 std::shared_ptr<BaseState> deadState;
27
28 std::shared_ptr<BaseState> getByID(int id) const;
29};
30
Definition: Game.h:23
Definition: StateManager.h:15
std::shared_ptr< BaseState > spawnState
Definition: StateManager.h:20
std::shared_ptr< BaseState > combatState
Definition: StateManager.h:25
std::shared_ptr< BaseState > getByID(int id) const
Definition: StateManager.cpp:23
std::shared_ptr< BaseState > despawnedState
Definition: StateManager.h:22
std::shared_ptr< BaseState > buildingState
Definition: StateManager.h:24
std::shared_ptr< BaseState > deadState
Definition: StateManager.h:26
std::shared_ptr< BaseState > harvestingState
Definition: StateManager.h:23
StateManager(Game &game)
Definition: StateManager.cpp:9
std::shared_ptr< BaseState > idleState
Definition: StateManager.h:21
std::shared_ptr< BaseState > walkingState
Definition: StateManager.h:19