YourCityInvadedByAliens
Documentation for code of the game
|
|
long m_nElapsedTime
Definition: game_state.h:42
int m_nWindowWidth
Definition: game_state.h:49
void togglePlayMusic()
Definition: game_state.cpp:84
void setCoordLeftTop(const CoordXY &)
Definition: game_state.cpp:43
bool isMouseCaptured() const
Definition: game_state.cpp:76
const CoordXY & getCoordLeftTop() const
Definition: game_state.cpp:39
void addBuilding(GameBuilding *)
Definition: game_state.cpp:31
int getWindowHeight() const
Definition: game_state.cpp:55
long getCurrentTimeInMilliseconds()
Definition: game_state.cpp:5
const CoordXY & getMaxPoint()
Definition: game_state.cpp:104
Definition: game_building.h:7
void setMaxPoint(const CoordXY &p)
Definition: game_state.cpp:100
bool m_bMouseCaptured
Definition: game_state.h:40
void setMinPoint(const CoordXY &p)
Definition: game_state.cpp:92
bool isChangedWindowSize() const
Definition: game_state.cpp:47
GameState(int windowWidth, int windowHeight)
Definition: game_state.cpp:13
const YRect & getWindowRect() const
Definition: game_state.cpp:59
std::vector< GameBuilding * > m_vBuildings
Definition: game_state.h:52
void updateWindowSize(int w, int h)
Definition: game_state.cpp:63
int m_nWindowHeight
Definition: game_state.h:50
const CoordXY & getMinPoint()
Definition: game_state.cpp:96
int getWindowWidth() const
Definition: game_state.cpp:51
bool isPlayMusic() const
Definition: game_state.cpp:88
void init()
Definition: game_state.cpp:23
long getElapsedTime() const
Definition: game_state.cpp:35
void setPlayMusic(bool bPlayMusic)
Definition: game_state.cpp:80
Definition: game_state.h:10
CoordXY m_maxPoint
Definition: game_state.h:45
YRect m_windowRect
Definition: game_state.h:51
bool m_bPlayMusic
Definition: game_state.h:41
bool m_bIsChangedWindowSize
Definition: game_state.h:48
long m_nStartTime
Definition: game_state.h:43
void updateElapsedTime()
Definition: game_state.cpp:27
CoordXY m_minPoint
Definition: game_state.h:46
void setMouseCaptured(bool bMouseCaptured)
Definition: game_state.cpp:71
CoordXY m_coordLeftTop
Definition: game_state.h:44