Frame of Reference Game API
1.0.3
|
Displays a map for editing More...
Public Member Functions | |
EditorPresenter (Engine engine, Universe universe, bool lighting) | |
Creates a new editor presenter More... | |
override void | Initialize () |
override void | Hover (Point target) |
override void | AreaSelection (Rectangle area, bool accumulate, bool done) |
override void | Click (MouseEventArgs e, bool accumulate) |
Circle | GetCollisionCircle () |
Calculates a collision Circle from the BoundingSpheres of pickable OmegaEngine.Graphics.Renderables.PositionableRenderables. More... | |
Box | GetCollisionBox () |
Calculates a collision Box from the BoundingBoxs of pickable OmegaEngine.Graphics.Renderables.PositionableRenderables. More... | |
Public Member Functions inherited from FrameOfReference.Presentation.InteractivePresenter | |
override void | Initialize () |
void | SwingCameraTo (CameraState< Vector2 > cameraState=null) |
Switches from the current camera view to a new view using a cinematic effect. More... | |
void | SwingCameraTo (Vector2 target) |
Swings the camera to look at a specifc set of 2D coordinates. More... | |
void | SwingCameraTo (PositionableRenderable target) |
Swings the camera to look at a specifc PositionableRenderable. More... | |
void | TakeOverSelection () |
Turns all currently selected Entitys into player-controlled characters. More... | |
void | PerspectiveChange (Point pan, int rotation, int zoom) |
virtual void | DoubleClick (MouseEventArgs e) |
Public Member Functions inherited from FrameOfReference.Presentation.Presenter | |
override void | Initialize () |
void | RebuildTerrain () |
Rebuilds the terrain from World.Universe.Terrain to reflect any modifications performed. More... | |
override void | DimDown () |
override void | DimUp () |
Public Member Functions inherited from AlphaFramework.Presentation.PresenterBase< Universe, Vector2 > | |
virtual void | HookIn () |
virtual void | HookOut () |
void | Dispose () |
Protected Member Functions | |
override void | RegisterRenderablesSync () |
override void | MovePositionables (IEnumerable< Positionable< Vector2 >> positionables, Vector2 target) |
Informs observers that one or more Positionable<TCoordinates>s are to be moved to a new position. More... | |
Protected Member Functions inherited from FrameOfReference.Presentation.InteractivePresenter | |
InteractivePresenter (Engine engine, Universe universe) | |
Creates a new interactive presenter More... | |
override void | Dispose (bool disposing) |
virtual void | PickPositionables (IEnumerable< Positionable< Vector2 >> positionables, bool accumulate) |
Adds one or more Positionable<TCoordinates>s to SelectedPositionables. More... | |
Protected Member Functions inherited from FrameOfReference.Presentation.Presenter | |
Presenter (Engine engine, Universe universe) | |
Creates a new presenter. More... | |
override void | Dispose (bool disposing) |
To be called by IDisposable.Dispose and the object destructor. More... | |
Camera | CreateCamera (CameraState< Vector2 > state=null) |
Creates a new camera based on a state usually loaded from the Universe. More... | |
virtual double | CameraController (DoubleVector3 coordinates) |
Ensures the camera does not go under or outside the Terrain. More... | |
void | SwitchMusicTheme (string theme, bool immediate=false) |
Switches the theme of the music played More... | |
delegate PositionableRenderable | RenderCompononentToEngine< TComponent > (Entity entity, TComponent component) |
A callback for mapping a Render component to an Engine representation. More... | |
void | RegisterRenderComponent< TComponent > (RenderCompononentToEngine< TComponent > create) |
Registers a callback for converting a Render component to an Engine representation. More... | |
void | UpdateRepresentation (Positionable< Vector2 > element, IPositionable representation) |
Applies the position of a Model element to a View representation. More... | |
void | UpdateRepresentation (Entity element, PositionableRenderable representation) |
Applies the position and rotation of a Model element to a View representation. More... | |
void | UpdateRepresentation (Entity element, PointLight representation) |
Applies the position and rotation of a Model element to a View representation. More... | |
override void | RegisterRenderablesSync () |
void | UpdateLighting () |
Updates _lightSun and _lightMoon based on the light phase in PresenterBase<TUniverse,TCoordinates>.Universe. More... | |
Protected Member Functions inherited from AlphaFramework.Presentation.PresenterBase< Universe, Vector2 > | |
PresenterBase (Engine engine, TUniverse universe) | |
Protected Attributes | |
override double | MaxCameraRadius => 10000 |
Protected Attributes inherited from FrameOfReference.Presentation.Presenter | |
virtual double | MaxCameraRadius => 2250 |
The value for StrategyCamera.MaxRadius. More... | |
bool | Lighting = true |
Use lighting in this presentation? More... | |
Protected Attributes inherited from AlphaFramework.Presentation.PresenterBase< Universe, Vector2 > | |
readonly ModelViewSync< Positionable< TCoordinates >, PositionableRenderable > | RenderablesSync |
readonly ModelViewSync< Positionable< TCoordinates >, LightSource > | LightsSync |
readonly Engine | Engine |
readonly Scene | Scene |
Properties | |
TerrainBrush? | TerrainBrush [get, set] |
Controls the shape and size of the area that is visuallly highlighted for TerrainPainting. More... | |
Properties inherited from FrameOfReference.Presentation.InteractivePresenter | |
MonitoredCollection< Positionable< Vector2 > > | SelectedPositionables = new MonitoredCollection<Positionable<Vector2>>() [get] |
The Positionable<TCoordinates>s the user has selected with the mouse More... | |
Properties inherited from FrameOfReference.Presentation.Presenter | |
bool | WireframeTerrain [get, set] |
Render the OmegaEngine.Graphics.Renderables.Terrain in wireframe-mode More... | |
bool | WireframeEntities [get, set] |
Render all entities in wireframe-mode More... | |
bool | BoundingSphereEntities [get, set] |
Visualize the bounding spheres of all entities More... | |
bool | BoundingBoxEntities [get, set] |
Visualize the bounding boxes of all entities More... | |
Terrain | Terrain [get] |
The OmegaEngine representation of World.Universe.Terrain More... | |
CameraState< Vector2 > | CameraState [get] |
Retreives the current state of the Camera for storage in the Universe. More... | |
Properties inherited from AlphaFramework.Presentation.PresenterBase< Universe, Vector2 > | |
View | View |
TUniverse | Universe |
bool | Initialized |
bool | Disposed |
Events | |
PostionableMoveHandler | PostionableMove |
Occurs when an Positionable<TCoordinates> is to be moved. More... | |
TerrainPaint | TerrainPaint |
Occurs when the user selects an area while TerrainBrush is set to a value other than null . Passes the coordinates in world space. More... | |
Displays a map for editing
|
inline |
Creates a new editor presenter
engine | The engine to use for rendering |
universe | The universe to display |
lighting | Shall lighting be used for rendering? |
|
inline |
Calculates a collision Box from the BoundingBoxs of pickable OmegaEngine.Graphics.Renderables.PositionableRenderables.
|
inline |
Calculates a collision Circle from the BoundingSpheres of pickable OmegaEngine.Graphics.Renderables.PositionableRenderables.
|
inlineprotectedvirtual |
Informs observers that one or more Positionable<TCoordinates>s are to be moved to a new position.
positionables | The Positionable<TCoordinates>s to be moved. |
target | The terrain position to move the positionables to. |
This replaces InteractivePresenters pathfinding based movement with a callback event.
Implements FrameOfReference.Presentation.InteractivePresenter.
|
getset |
Controls the shape and size of the area that is visuallly highlighted for TerrainPainting.
Raise the TerrainPaint event instead of selecting Positionable<TCoordinates>s when set to a value other than null
.
PostionableMoveHandler FrameOfReference.Presentation.EditorPresenter.PostionableMove |
Occurs when an Positionable<TCoordinates> is to be moved.
TerrainPaint FrameOfReference.Presentation.EditorPresenter.TerrainPaint |
Occurs when the user selects an area while TerrainBrush is set to a value other than null
. Passes the coordinates in world space.