Skip to content

Commit

Permalink
#26 Den Vector aus GameObjects durch einen Stack aus Maps ersetzt.
Browse files Browse the repository at this point in the history
  • Loading branch information
romman8 committed Mar 13, 2017
1 parent 99a4236 commit caeece0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Koramu/GameState.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <vector>
#include "GameObject.h"
#include "Stack.h"
#include "Map.h"

/* In diesen namespace gehört alles, was mit dem Zustandsautomaten
* des Spiels zu tun hat.
Expand Down Expand Up @@ -29,8 +29,8 @@ namespace FiniteStateMachine
class GameState
{
protected:
GameStateIDs m_stateID; // Um den Zustand identifizieren zu können
std::vector<GameObject*> m_gameObjects; // Array der GameObjects eines Spielzustandes
GameStateIDs m_stateID; // Um den Zustand identifizieren zu können
DataStructure::Stack<Environment::Map> m_maps; // Stapel aus Maps (für weitere Infos: siehe Klassendiagramm)

public:
GameState() {}
Expand All @@ -50,6 +50,6 @@ namespace FiniteStateMachine
virtual void render() = 0; // Alles auf den Bildschirm schmeißen

// getter-Funktionen
GameStateIDs getStateID() { return m_stateID; }
GameStateIDs getStateID() const { return m_stateID; }
};
};

0 comments on commit caeece0

Please sign in to comment.