YourCityInvadedByAliens
Documentation for code of the game
game_rocket_state.h
Go to the documentation of this file.
1 #pragma once
2 #include <vector>
3 #include "yrect.h"
5 
7  public:
8  GameRocketState(const YPos &p0, MoveObjectDirection direction);
10  const YPos &getPosition();
11  void move();
12  bool hasDestroyed();
13  void destroy();
14  void explode();
15  bool isExploded();
16 
17  private:
22 };
MoveObjectDirection
MoveObjectDirection
Definition: move_object_direction.h:3
GameRocketState
Definition: game_rocket_state.h:6
GameRocketState::destroy
void destroy()
Definition: game_rocket_state.cpp:46
GameRocketState::explode
void explode()
Definition: game_rocket_state.cpp:50
GameRocketState::GameRocketState
GameRocketState(const YPos &p0, MoveObjectDirection direction)
Definition: game_rocket_state.cpp:6
GameRocketState::m_bExploded
bool m_bExploded
Definition: game_rocket_state.h:20
GameRocketState::isExploded
bool isExploded()
Definition: game_rocket_state.cpp:54
move_object_direction.h
GameRocketState::hasDestroyed
bool hasDestroyed()
Definition: game_rocket_state.cpp:42
GameRocketState::getDirection
MoveObjectDirection getDirection()
Definition: game_rocket_state.cpp:13
GameRocketState::m_nDirection
MoveObjectDirection m_nDirection
Definition: game_rocket_state.h:21
GameRocketState::m_p0
YPos m_p0
Definition: game_rocket_state.h:18
YPos
Definition: ypos.h:3
GameRocketState::move
void move()
Definition: game_rocket_state.cpp:21
GameRocketState::m_bDestroyed
bool m_bDestroyed
Definition: game_rocket_state.h:19
GameRocketState::getPosition
const YPos & getPosition()
Definition: game_rocket_state.cpp:17
yrect.h