YourCityInvadedByAliens
Documentation for code of the game
src
game
game_tank0_state.h
Go to the documentation of this file.
1
#pragma once
2
#include <vector>
3
#include "
coordxy.h
"
4
#include "
move_object_direction.h
"
5
#include "
game_rocket_state.h
"
6
7
class
GameTank0State
{
8
public
:
9
GameTank0State
(
const
CoordXY
&p0);
10
MoveObjectDirection
getDirection
();
11
const
CoordXY
&
getPosition
();
12
void
turnLeft
();
13
void
turnRight
();
14
void
move
();
15
bool
hasRocket
();
16
void
rechargeRocket
();
17
void
shotRocket
();
18
GameRocketState
*
popRocket
();
19
20
private
:
21
CoordXY
m_p0
;
22
bool
m_bHasRocket
;
23
MoveObjectDirection
m_nDirection
;
24
std::vector<GameRocketState *>
m_vRockets
;
25
};
GameTank0State::GameTank0State
GameTank0State(const CoordXY &p0)
Definition:
game_tank0_state.cpp:6
GameTank0State::rechargeRocket
void rechargeRocket()
Definition:
game_tank0_state.cpp:108
GameTank0State::hasRocket
bool hasRocket()
Definition:
game_tank0_state.cpp:99
game_rocket_state.h
MoveObjectDirection
MoveObjectDirection
Definition:
move_object_direction.h:3
GameTank0State
Definition:
game_tank0_state.h:7
GameRocketState
Definition:
game_rocket_state.h:6
GameTank0State::turnRight
void turnRight()
Definition:
game_tank0_state.cpp:49
GameTank0State::move
void move()
Definition:
game_tank0_state.cpp:78
GameTank0State::getDirection
MoveObjectDirection getDirection()
Definition:
game_tank0_state.cpp:12
CoordXY
Definition:
coordxy.h:5
GameTank0State::m_nDirection
MoveObjectDirection m_nDirection
Definition:
game_tank0_state.h:23
move_object_direction.h
GameTank0State::popRocket
GameRocketState * popRocket()
Definition:
game_tank0_state.cpp:112
GameTank0State::m_vRockets
std::vector< GameRocketState * > m_vRockets
Definition:
game_tank0_state.h:24
GameTank0State::getPosition
const CoordXY & getPosition()
Definition:
game_tank0_state.cpp:16
coordxy.h
GameTank0State::m_bHasRocket
bool m_bHasRocket
Definition:
game_tank0_state.h:22
GameTank0State::m_p0
CoordXY m_p0
Definition:
game_tank0_state.h:21
GameTank0State::turnLeft
void turnLeft()
Definition:
game_tank0_state.cpp:20
GameTank0State::shotRocket
void shotRocket()
Definition:
game_tank0_state.cpp:103
Generated by
1.8.17