Sector01 Class Reference

This class manages all the data objects needed for the first level Sector01 More...

#include <Sector01.h>

Inheritance diagram for Sector01:
GameManager

Public Member Functions

void Load () override
 Load game assets and values More...
 
void UnLoad () override
 Unload assets when level is complete More...
 
void Update () override
 Updates assets based on condition More...
 
void Render () override
 Renders current assets update values More...
 
void Event01 ()
 Renders event one More...
 
void Location ()
 Determine where each planet will spawn More...
 
void SectorBackground ()
 Determine what background to render More...
 
void SetShipHuds ()
 Renders the ship HUD More...
 
void GameNPCs ()
 Renders the NPCs More...
 

Private Attributes

float StarShip_Y_Position
 Variables for handling game assets position More...
 
float StarShip_X_Position
 
float NPC_Y_Position
 
float NPC_X_Position
 
float NPCB_Y_Position
 
float NPCB_X_Position
 
float Sector
 
ImageManagerBackgroundA
 Variables for handling game assets More...
 
ImageManagerBackgroundB
 
ImageManagerBackgroundC
 
ImageManagerBackgroundD
 
ImageManagerBackgroundE
 
ImageManagerBackgroundF
 
ImageManagerBackgroundG
 
ImageManagerPlanetA
 
ImageManagerPlanetB
 
ImageManagerPlanetC
 
ImageManagerPlanetD
 
ImageManagerPlanetE
 
ImageManagerPlanetF
 
ImageManagerPlanetG
 
ImageManagerPlanetH
 
ImageManagerPlanetI
 
ImageManagerPlanetJ
 
ImageManagerShipStat
 
ImageManagerNPC
 
ImageManagerNPCB
 
ImageManagerShipHudA
 
ImageManagerShipHudB
 
ImageManagerShipHudC
 
ImageManagerDamageA
 
ImageManagerDamageB
 
ImageManagerDamageC
 
ImageManagerDamageD
 
ImageManagerDamageE
 
ImageManagerDamageF
 
ImageManagerShip
 
ImageManagerShipRadar
 
ImageManagerIntro
 
float PlanetAPositionX
 Variables for handling planets positions More...
 
float PlanetAPositionY
 
float PlanetBPositionX
 
float PlanetBPositionY
 
float PlanetCPositionX
 
float PlanetCPositionY
 
int PlanetPoints [2][10]
 
int condition
 
int frame
 Variable for handling NPCs frame rate More...
 
float Splash
 Variable for handling intro screen More...
 
int hit
 Variables for handling ship damage More...
 
bool StartGame
 Variable for starting the game More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GameManager
static void Init (Graphics *graphics)
 This method make it possible to access graphics object More...
 
- Public Attributes inherited from GameManager
bool Loading
 
- Static Protected Attributes inherited from GameManager
static GraphicsEngineGFX
 Setting up a graphics object More...
 

Detailed Description

This class manages all the data objects needed for the first level Sector01

: Sector01.h Brian Hinds : 07-02-2017 : 1.0.2

Member Function Documentation

◆ Event01()

void Sector01::Event01 ( )

Renders event one

This method is the first event condition of the game

<method name="Event01"></method>

Parameters
None
Returns
void

◆ GameNPCs()

void Sector01::GameNPCs ( )

Renders the NPCs

This method Assign different game NPCs

<method name="GameNPCs"></method>

Parameters
None
Returns
void

◆ Load()

void Sector01::Load ( )
overridevirtual

Load game assets and values

This method Initialize the variables for current level

: Sector01.cpp Brian Hinds : 07-02-2017 : 1.0.2 <method name="Load"></method>

Parameters
GameManager* Lvl
Returns
void

Load NPC positions

Load backgrounds

Load backgrounds

GLoad planets

Load ship HUD

Load ship damage stats

Load ship

Load NPCs

Implements GameManager.

◆ Location()

void Sector01::Location ( )

Determine where each planet will spawn

This method Assign location to the planets based on the random condition results

<method name="Location"></method>

Parameters
None
Returns
void

◆ Render()

void Sector01::Render ( )
overridevirtual

Renders current assets update values

This method renders the updated objects for the level

<method name="Render"></method>

Parameters
GameManager* EngineGFX
Returns
void

Render splash screen

Implements GameManager.

◆ SectorBackground()

void Sector01::SectorBackground ( )

Determine what background to render

This method Assign different backgrounds

<method name="SectorBackground"></method>

Parameters
None
Returns
void

◆ SetShipHuds()

void Sector01::SetShipHuds ( )

Renders the ship HUD

This method Assign different ship HUD

<method name="SetShipHuds"></method>

Parameters
None
Returns
void

◆ UnLoad()

void Sector01::UnLoad ( )
overridevirtual

Unload assets when level is complete

<method name="Unload"></method>

Parameters
None
Returns
void

Implements GameManager.

◆ Update()

void Sector01::Update ( )
overridevirtual

Updates assets based on condition

This method updates the objects for the current level

<method name="Update"></method>

Parameters
None
Returns
void

Initial assets positions

Random NPC positions

Ship flight positions

Implements GameManager.

Member Data Documentation

◆ BackgroundA

ImageManager* Sector01::BackgroundA
private

Variables for handling game assets

◆ frame

int Sector01::frame
private

Variable for handling NPCs frame rate

◆ hit

int Sector01::hit
private

Variables for handling ship damage

◆ PlanetAPositionX

float Sector01::PlanetAPositionX
private

Variables for handling planets positions

◆ Splash

float Sector01::Splash
private

Variable for handling intro screen

◆ StarShip_Y_Position

float Sector01::StarShip_Y_Position
private

Variables for handling game assets position

◆ StartGame

bool Sector01::StartGame
private

Variable for starting the game


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