flimEngine
TankScene Class Reference

#include <TankScene.h>

Inheritance diagram for TankScene:
Inheritance graph
Collaboration diagram for TankScene:
Collaboration graph

Public Member Functions

 TankScene ()=default
 
 TankScene (const TankScene &)=default
 
virtual ~TankScene ()=default
 
const TankSceneoperator= (const TankScene &)=delete
 
errcode Initialize () override
 Initializes this object. More...
 
errcode Terminate () override
 Gets the terminate. More...
 
- Public Member Functions inherited from Scene
 Scene ()
 
 Scene (const Scene &)=default
 
virtual ~Scene ()
 
const Sceneoperator= (const Scene &)=delete
 
CameraManagerGetCamera ()
 Gets the camera. More...
 
errcode SetTerrain (const char *terrainName)
 Sets a terrain. More...
 
FlimTerrainGetTerrain () const
 Gets the terrain. More...
 
template<typename C1 , typename C2 >
errcode SetCollisionPair ()
 Registers collision for two gameobject types with one another. More...
 
template<typename C >
errcode SetCollisionSelf ()
 Registers collision for a gameobject type with itself. More...
 
template<typename C >
errcode SetCollisionTerrain ()
 Sets collision terrain. More...
 

Private Attributes

TankplayerTank
 
EnemyenemyTank1
 
EnemyenemyTank2
 
EnemyenemyTank3
 
Sentrysentry1
 
Sentrysentry2
 
Sentrysentry3
 
Sentrysentry4
 
TankWorldworld
 
HUDhud
 
errcode err
 
flimSoundmusic
 
flimSoundambience
 

Constructor & Destructor Documentation

◆ TankScene() [1/2]

TankScene::TankScene ( )
default

◆ TankScene() [2/2]

TankScene::TankScene ( const TankScene )
default

◆ ~TankScene()

virtual TankScene::~TankScene ( )
virtualdefault

Member Function Documentation

◆ Initialize()

errcode TankScene::Initialize ( )
overridevirtual

Initializes this object.

Author
Jack Campbell
Date
3/12/2017
Virtual method for inherited scenes. Initialize all parts of your scene here.
{
// make a new tank via a factory, set up the HUD, spawn enemies
}
Returns
An errcode.

Implements Scene.

◆ operator=()

const TankScene& TankScene::operator= ( const TankScene )
delete

◆ Terminate()

errcode TankScene::Terminate ( )
overridevirtual

Gets the terminate.

Author
Jack Campbell
Date
3/12/2017
Virtual callback for the ending of a scene. Clean up all the components of your scene.
{
//scene has been ended. Return your tank to its factory, delete the HUD, make sure all enemies have been cleaned
}
Returns
An errcode.

Implements Scene.

Member Data Documentation

◆ ambience

flimSound* TankScene::ambience
private

◆ enemyTank1

Enemy* TankScene::enemyTank1
private

◆ enemyTank2

Enemy* TankScene::enemyTank2
private

◆ enemyTank3

Enemy* TankScene::enemyTank3
private

◆ err

errcode TankScene::err
private

◆ hud

HUD* TankScene::hud
private

◆ music

flimSound* TankScene::music
private

◆ playerTank

Tank* TankScene::playerTank
private

◆ sentry1

Sentry* TankScene::sentry1
private

◆ sentry2

Sentry* TankScene::sentry2
private

◆ sentry3

Sentry* TankScene::sentry3
private

◆ sentry4

Sentry* TankScene::sentry4
private

◆ world

TankWorld* TankScene::world
private

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