![]() |
This class manages all the data objects needed for the first level Sector01 More...
#include <Sector01.h>
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 |
ImageManager * | BackgroundA |
Variables for handling game assets More... | |
ImageManager * | BackgroundB |
ImageManager * | BackgroundC |
ImageManager * | BackgroundD |
ImageManager * | BackgroundE |
ImageManager * | BackgroundF |
ImageManager * | BackgroundG |
ImageManager * | PlanetA |
ImageManager * | PlanetB |
ImageManager * | PlanetC |
ImageManager * | PlanetD |
ImageManager * | PlanetE |
ImageManager * | PlanetF |
ImageManager * | PlanetG |
ImageManager * | PlanetH |
ImageManager * | PlanetI |
ImageManager * | PlanetJ |
ImageManager * | ShipStat |
ImageManager * | NPC |
ImageManager * | NPCB |
ImageManager * | ShipHudA |
ImageManager * | ShipHudB |
ImageManager * | ShipHudC |
ImageManager * | DamageA |
ImageManager * | DamageB |
ImageManager * | DamageC |
ImageManager * | DamageD |
ImageManager * | DamageE |
ImageManager * | DamageF |
ImageManager * | Ship |
ImageManager * | ShipRadar |
ImageManager * | Intro |
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 void | Init (Graphics *graphics) |
This method make it possible to access graphics object More... | |
![]() | |
bool | Loading |
![]() | |
static Graphics * | EngineGFX |
Setting up a graphics object More... | |
This class manages all the data objects needed for the first level Sector01
: Sector01.h Brian Hinds : 07-02-2017 : 1.0.2
void Sector01::Event01 | ( | ) |
Renders event one
This method is the first event condition of the game
<method name="Event01"></method>
None |
void Sector01::GameNPCs | ( | ) |
Renders the NPCs
This method Assign different game NPCs
<method name="GameNPCs"></method>
None |
|
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>
GameManager* Lvl |
Load NPC positions
Load backgrounds
Load backgrounds
GLoad planets
Load ship HUD
Load ship damage stats
Load ship
Load NPCs
Implements GameManager.
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>
None |
|
overridevirtual |
Renders current assets update values
This method renders the updated objects for the level
<method name="Render"></method>
GameManager* EngineGFX |
Render splash screen
Implements GameManager.
void Sector01::SectorBackground | ( | ) |
Determine what background to render
This method Assign different backgrounds
<method name="SectorBackground"></method>
None |
void Sector01::SetShipHuds | ( | ) |
Renders the ship HUD
This method Assign different ship HUD
<method name="SetShipHuds"></method>
None |
|
overridevirtual |
Unload assets when level is complete
<method name="Unload"></method>
None |
Implements GameManager.
|
overridevirtual |
Updates assets based on condition
This method updates the objects for the current level
<method name="Update"></method>
None |
Initial assets positions
Random NPC positions
Ship flight positions
Implements GameManager.
|
private |
Variables for handling game assets
|
private |
Variable for handling NPCs frame rate
|
private |
Variables for handling ship damage
|
private |
Variables for handling planets positions
|
private |
Variable for handling intro screen
|
private |
Variables for handling game assets position
|
private |
Variable for starting the game