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

#include <game_tank0_state.h>

Collaboration diagram for GameTank0State:
Collaboration graph
[legend]

Public Member Functions

 GameTank0State (const CoordXY &p0)
 
MoveObjectDirection getDirection ()
 
const CoordXYgetPosition ()
 
void turnLeft ()
 
void turnRight ()
 
void move ()
 
bool hasRocket ()
 
void rechargeRocket ()
 
void shotRocket ()
 
GameRocketStatepopRocket ()
 

Private Attributes

CoordXY m_p0
 
bool m_bHasRocket
 
MoveObjectDirection m_nDirection
 
std::vector< GameRocketState * > m_vRockets
 

Constructor & Destructor Documentation

◆ GameTank0State()

GameTank0State::GameTank0State ( const CoordXY p0)

Member Function Documentation

◆ getDirection()

MoveObjectDirection GameTank0State::getDirection ( )

◆ getPosition()

const CoordXY & GameTank0State::getPosition ( )

◆ hasRocket()

bool GameTank0State::hasRocket ( )

◆ move()

void GameTank0State::move ( )

◆ popRocket()

GameRocketState * GameTank0State::popRocket ( )

◆ rechargeRocket()

void GameTank0State::rechargeRocket ( )

◆ shotRocket()

void GameTank0State::shotRocket ( )

◆ turnLeft()

void GameTank0State::turnLeft ( )

◆ turnRight()

void GameTank0State::turnRight ( )

Member Data Documentation

◆ m_bHasRocket

bool GameTank0State::m_bHasRocket
private

◆ m_nDirection

MoveObjectDirection GameTank0State::m_nDirection
private

◆ m_p0

CoordXY GameTank0State::m_p0
private

◆ m_vRockets

std::vector<GameRocketState *> GameTank0State::m_vRockets
private

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