YourCityInvadedByAliens
Documentation for code of the game
Public Member Functions | Private Attributes | List of all members
GameRocketState Class Reference

#include <game_rocket_state.h>

Collaboration diagram for GameRocketState:
Collaboration graph
[legend]

Public Member Functions

 GameRocketState (const YPos &p0, MoveObjectDirection direction)
 
MoveObjectDirection getDirection ()
 
const YPosgetPosition ()
 
void move ()
 
bool hasDestroyed ()
 
void destroy ()
 
void explode ()
 
bool isExploded ()
 

Private Attributes

YPos m_p0
 
bool m_bDestroyed
 
bool m_bExploded
 
MoveObjectDirection m_nDirection
 

Constructor & Destructor Documentation

◆ GameRocketState()

GameRocketState::GameRocketState ( const YPos p0,
MoveObjectDirection  direction 
)

Member Function Documentation

◆ destroy()

void GameRocketState::destroy ( )

◆ explode()

void GameRocketState::explode ( )

◆ getDirection()

MoveObjectDirection GameRocketState::getDirection ( )

◆ getPosition()

const YPos & GameRocketState::getPosition ( )

◆ hasDestroyed()

bool GameRocketState::hasDestroyed ( )

◆ isExploded()

bool GameRocketState::isExploded ( )

◆ move()

void GameRocketState::move ( )

Member Data Documentation

◆ m_bDestroyed

bool GameRocketState::m_bDestroyed
private

◆ m_bExploded

bool GameRocketState::m_bExploded
private

◆ m_nDirection

MoveObjectDirection GameRocketState::m_nDirection
private

◆ m_p0

YPos GameRocketState::m_p0
private

The documentation for this class was generated from the following files: