AlphaFramework API
1.0.3
|
Uses the Engine to present an IUniverse game world. More...
Public Member Functions | |
virtual void | Initialize () |
Generate Terrain and Renderables from UniverseBase<TCoordinates>.Positionables and keeps everything in sync using events More... | |
virtual void | HookIn () |
Hooks the View into OmegaEngine.Engine.Views More... | |
virtual void | HookOut () |
Hooks the View out of OmegaEngine.Engine.Views More... | |
virtual void | DimDown () |
Dims in the screen down. More... | |
virtual void | DimUp () |
Dims in the screen back up. More... | |
void | Dispose () |
Removes the Universe hooks setup by Initialize and disposes all created Views, Scenes, PositionableRenderables, etc. More... | |
Protected Member Functions | |
PresenterBase (Engine engine, TUniverse universe) | |
Creates a new presenter. More... | |
virtual void | RegisterRenderablesSync () |
Hook to configure RenderablesSync and LightsSync. More... | |
virtual void | Dispose (bool disposing) |
To be called by IDisposable.Dispose and the object destructor. More... | |
Protected Attributes | |
readonly ModelViewSync< Positionable< TCoordinates >, PositionableRenderable > | RenderablesSync |
Maps between UniverseBase<TCoordinates>.Positionables and OmegaEngine.Graphics.Scene.Positionables. More... | |
readonly ModelViewSync< Positionable< TCoordinates >, LightSource > | LightsSync |
Maps between UniverseBase<TCoordinates>.Positionables and OmegaEngine.Graphics.Scene.Lights. More... | |
readonly Engine | Engine |
The Engine reference to use for rendering operations More... | |
readonly Scene | Scene |
The engine scene containing the graphical representations of Positionable<TCoordinates>s More... | |
Properties | |
View | View [get, protected set] |
The engine view used to display the Scene More... | |
TUniverse | Universe [get] |
The game world to present. More... | |
bool | Initialized [get, protected set] |
Was Initialize already called? More... | |
bool | Disposed [get] |
Was this presenter already disposed? More... | |
Uses the Engine to present an IUniverse game world.
TUniverse | The type of IUniverse to present. |
TCoordinates | Data type for storing position coordinates of objects in the game world. |
TUniverse | : | UniverseBase<TCoordinates> | |
TCoordinates | : | struct |
|
inlineprotected |
Creates a new presenter.
engine | The engine to use for rendering. |
universe | The game world to present. |
|
inlinevirtual |
Dims in the screen down.
|
inlinevirtual |
Dims in the screen back up.
|
inline |
Removes the Universe hooks setup by Initialize and disposes all created Views, Scenes, PositionableRenderables, etc.
|
inlineprotectedvirtual |
To be called by IDisposable.Dispose and the object destructor.
disposing | true if called manually and not by the garbage collector. |
|
inlinevirtual |
Hooks the View into OmegaEngine.Engine.Views
Will internally call Initialize first, if you didn't
|
inlinevirtual |
Hooks the View out of OmegaEngine.Engine.Views
|
inlinevirtual |
Generate Terrain and Renderables from UniverseBase<TCoordinates>.Positionables and keeps everything in sync using events
FileNotFoundException | A required Asset file could not be found. |
IOException | There was an error reading an Asset file. |
InvalidDataException | An Asset file contains invalid data. |
Should be called before HookIn is used
|
inlineprotectedvirtual |
Hook to configure RenderablesSync and LightsSync.
|
protected |
The Engine reference to use for rendering operations
|
protected |
Maps between UniverseBase<TCoordinates>.Positionables and OmegaEngine.Graphics.Scene.Lights.
|
protected |
Maps between UniverseBase<TCoordinates>.Positionables and OmegaEngine.Graphics.Scene.Positionables.
|
protected |
The engine scene containing the graphical representations of Positionable<TCoordinates>s
|
get |
Was this presenter already disposed?
|
getprotected set |
Was Initialize already called?
|
get |
The game world to present.
|
getprotected set |
The engine view used to display the Scene