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

#include <game_alien_ship_state.h>

Collaboration diagram for GameAlienShipState:
Collaboration graph
[legend]

Public Member Functions

 GameAlienShipState (const CoordXY &p0)
 
const CoordXYgetPosition ()
 
void setShooting (bool bShooting)
 
bool isShooting () const
 
void setMoveDirection (MoveObjectDirection direction)
 
void move (long nElapsedTime, const CoordXY &minPointMap, const CoordXY &maxPointMap, int nLeftPad, int nRightPad, int nTopPad, int nBottomPad)
 
void shot ()
 
GameBioplastStatepopRocket ()
 
void rocketAttack (GameRocketState *pRocket)
 
int getHelthPoints ()
 
int getMaxHelthPoints ()
 

Private Attributes

CoordXY m_p0
 
MoveObjectDirection m_moveDirection
 
long m_nMovePrevTime
 
long m_nSpeedMoving
 
bool m_bShooting
 
std::vector< GameBioplastState * > m_vBioplasts
 
int m_nHealthPoints
 
int m_nMaxHealthPoints
 

Constructor & Destructor Documentation

◆ GameAlienShipState()

GameAlienShipState::GameAlienShipState ( const CoordXY p0)

Member Function Documentation

◆ getHelthPoints()

int GameAlienShipState::getHelthPoints ( )

◆ getMaxHelthPoints()

int GameAlienShipState::getMaxHelthPoints ( )

◆ getPosition()

const CoordXY & GameAlienShipState::getPosition ( )

◆ isShooting()

bool GameAlienShipState::isShooting ( ) const

◆ move()

void GameAlienShipState::move ( long  nElapsedTime,
const CoordXY minPointMap,
const CoordXY maxPointMap,
int  nLeftPad,
int  nRightPad,
int  nTopPad,
int  nBottomPad 
)

◆ popRocket()

GameBioplastState * GameAlienShipState::popRocket ( )

◆ rocketAttack()

void GameAlienShipState::rocketAttack ( GameRocketState pRocket)

◆ setMoveDirection()

void GameAlienShipState::setMoveDirection ( MoveObjectDirection  direction)

◆ setShooting()

void GameAlienShipState::setShooting ( bool  bShooting)

◆ shot()

void GameAlienShipState::shot ( )

Member Data Documentation

◆ m_bShooting

bool GameAlienShipState::m_bShooting
private

◆ m_moveDirection

MoveObjectDirection GameAlienShipState::m_moveDirection
private

◆ m_nHealthPoints

int GameAlienShipState::m_nHealthPoints
private

◆ m_nMaxHealthPoints

int GameAlienShipState::m_nMaxHealthPoints
private

◆ m_nMovePrevTime

long GameAlienShipState::m_nMovePrevTime
private

◆ m_nSpeedMoving

long GameAlienShipState::m_nSpeedMoving
private

◆ m_p0

CoordXY GameAlienShipState::m_p0
private

◆ m_vBioplasts

std::vector<GameBioplastState *> GameAlienShipState::m_vBioplasts
private

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