flimEngine
Scenes

Individual scene stuff. More...

Collaboration diagram for Scenes:

Modules

 Camera
 Individual scene stuff.
 

Functions

virtual errcode Scene::Initialize ()=0
 Initializes this object. More...
 
virtual errcode Scene::Terminate ()=0
 Gets the terminate. More...
 
errcode Scene::SetTerrain (const char *terrainName)
 Sets a terrain. More...
 
FlimTerrainScene::GetTerrain () const
 Gets the terrain. More...
 
template<typename C1 , typename C2 >
errcode Scene::SetCollisionPair ()
 Registers collision for two gameobject types with one another. More...
 
template<typename C >
errcode Scene::SetCollisionSelf ()
 Registers collision for a gameobject type with itself. More...
 
template<typename C >
errcode Scene::SetCollisionTerrain ()
 Sets collision terrain. More...
 

Detailed Description

Individual scene stuff.

Function Documentation

◆ GetTerrain()

FlimTerrain * Scene::GetTerrain ( ) const
inline

Gets the terrain.

Author
Jack Campbell
Date
6/1/2017
Returns
Null if it fails, else the terrain.

◆ Initialize()

errcode Scene::Initialize ( )
privatepure virtual

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.

Implemented in Level2, Level3, TankScene, OcclusionScene, IntroScene, SceneDemo, SceneNull, and SceneTest.

◆ SetCollisionPair()

template<typename C1 , typename C2 >
errcode Scene::SetCollisionPair ( )
inline

Registers collision for two gameobject types with one another.

Author
Jack Campbell
Date
3/5/2017
Template Parameters
C1First gameobject type
C2Second gameobject type
Returns
An errcode.

◆ SetCollisionSelf()

template<typename C >
errcode Scene::SetCollisionSelf ( )
inline

Registers collision for a gameobject type with itself.

Author
Jack Campbell
Date
3/5/2017
Template Parameters
CGameobject type
Returns
An errcode.

◆ SetCollisionTerrain()

template<typename C >
errcode Scene::SetCollisionTerrain ( )
inline

Sets collision terrain.

Author
Jack Campbell
Date
6/1/2017
Template Parameters
CType of the c.
Returns
An errcode.

◆ SetTerrain()

errcode Scene::SetTerrain ( const char *  terrainName)

Sets a terrain.

Author
Jack Campbell
Date
6/1/2017
Parameters
terrainNameName of the terrain.
Returns
An errcode.

◆ Terminate()

errcode Scene::Terminate ( )
privatepure virtual

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.

Implemented in Level2, Level3, TankScene, OcclusionScene, IntroScene, SceneDemo, SceneNull, and SceneTest.