YourCityInvadedByAliens
Documentation for code of the game
game_alien_ship_state.h
Go to the documentation of this file.
1 #pragma once
2 #include <vector>
3 #include "coordxy.h"
5 #include "game_bioplast_state.h"
6 #include "game_rocket_state.h"
7 
9  public:
10  GameAlienShipState(const CoordXY &p0);
11  const CoordXY &getPosition();
12  void setShooting(bool bShooting);
13  bool isShooting() const;
14  void setMoveDirection(MoveObjectDirection direction);
15  void move(
16  long nElapsedTime,
17  const CoordXY &minPointMap,
18  const CoordXY &maxPointMap,
19  int nLeftPad,
20  int nRightPad,
21  int nTopPad,
22  int nBottomPad
23  );
24  void shot();
26  void rocketAttack(GameRocketState *pRocket);
27  int getHelthPoints();
28  int getMaxHelthPoints();
29 
30  private:
36  std::vector<GameBioplastState *> m_vBioplasts;
39 };
GameAlienShipState::move
void move(long nElapsedTime, const CoordXY &minPointMap, const CoordXY &maxPointMap, int nLeftPad, int nRightPad, int nTopPad, int nBottomPad)
Definition: game_alien_ship_state.cpp:33
GameAlienShipState::isShooting
bool isShooting() const
Definition: game_alien_ship_state.cpp:25
GameAlienShipState::setShooting
void setShooting(bool bShooting)
Definition: game_alien_ship_state.cpp:21
GameAlienShipState::shot
void shot()
Definition: game_alien_ship_state.cpp:96
game_rocket_state.h
GameAlienShipState::m_nSpeedMoving
long m_nSpeedMoving
Definition: game_alien_ship_state.h:34
MoveObjectDirection
MoveObjectDirection
Definition: move_object_direction.h:3
GameAlienShipState::m_nMaxHealthPoints
int m_nMaxHealthPoints
Definition: game_alien_ship_state.h:38
GameRocketState
Definition: game_rocket_state.h:6
GameAlienShipState::getPosition
const CoordXY & getPosition()
Definition: game_alien_ship_state.cpp:17
GameAlienShipState::GameAlienShipState
GameAlienShipState(const CoordXY &p0)
Definition: game_alien_ship_state.cpp:7
GameAlienShipState::m_p0
CoordXY m_p0
Definition: game_alien_ship_state.h:31
GameAlienShipState::m_vBioplasts
std::vector< GameBioplastState * > m_vBioplasts
Definition: game_alien_ship_state.h:36
GameAlienShipState::rocketAttack
void rocketAttack(GameRocketState *pRocket)
Definition: game_alien_ship_state.cpp:111
GameAlienShipState::getHelthPoints
int getHelthPoints()
Definition: game_alien_ship_state.cpp:151
CoordXY
Definition: coordxy.h:5
GameBioplastState
Definition: game_bioplast_state.h:5
move_object_direction.h
GameAlienShipState::getMaxHelthPoints
int getMaxHelthPoints()
Definition: game_alien_ship_state.cpp:155
GameAlienShipState::setMoveDirection
void setMoveDirection(MoveObjectDirection direction)
Definition: game_alien_ship_state.cpp:29
GameAlienShipState::m_nHealthPoints
int m_nHealthPoints
Definition: game_alien_ship_state.h:37
GameAlienShipState::popRocket
GameBioplastState * popRocket()
Definition: game_alien_ship_state.cpp:102
coordxy.h
GameAlienShipState::m_bShooting
bool m_bShooting
Definition: game_alien_ship_state.h:35
GameAlienShipState::m_moveDirection
MoveObjectDirection m_moveDirection
Definition: game_alien_ship_state.h:32
game_bioplast_state.h
GameAlienShipState::m_nMovePrevTime
long m_nMovePrevTime
Definition: game_alien_ship_state.h:33
GameAlienShipState
Definition: game_alien_ship_state.h:8