﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	i_links	o_links
110	Context-Switching	bensch	patrick	"= Context-Switching =

== idea ==
 currently we are using singleton-classes, to render the scene, draw all enemies, collisions and so on.

The idea of context switching is, that by modifying the NullParent to be switchable, we can just enter a MenuScreen, and switching back, after we are finished.

== implementation ==
since this is a State 
  * extend __state.h__ to hold the entire state of the current Level.
  * create a Stack where the current ''state'' can be pushed in, and a new one can be overlaid.
  * Not much must be Stored.
   1. NullParent-reference
   2. Current Camera
   3. Current World
   4. some more minor things

The idea is not, to switch to an entirely new Level, and change back to the first one, but to change to a menuscreen, and back again.

This is just state-preservation."	enhancement	new	critical	Old Orxonox tickets orx-v0	GeneralFramework			context switch			
