AlphaFramework API
1.0.3
|
A common base for game worlds (but not a running game). Equivalent to the content of a map file. More...
Public Member Functions | |
virtual void | Update (double elapsedGameTime) |
Updates the UniverseBase<TCoordinates> and all Positionable<TCoordinates>s in it. | |
abstract void | Save (string path) |
Saves this UniverseBase<TCoordinates> in a compressed XML file (map file). | |
void | Save () |
Overwrites the map file this UniverseBase<TCoordinates> was loaded from with the changed data. | |
Protected Member Functions | |
virtual void | Update (IUpdateable updateable, double elapsedGameTime) |
Updates a single IUpdateable. More... | |
Properties | |
double | GameTime [get, set] |
Total elapsed game time in seconds. More... | |
abstract MonitoredCollection< Positionable< TCoordinates > > | Positionables [get] |
A collection of all Positionable<TCoordinates>s in this UniverseBase<TCoordinates>. More... | |
IPathfinder< TCoordinates > | Pathfinder [get, set] |
The pathfinding engine used to navigate Positionables. More... | |
string | Skybox [get, set] |
The name of the skybox to use for this map; may be null or empty. More... | |
CameraState< TCoordinates > | CurrentCamera [get, set] |
The current position and direction of the camera in the game. More... | |
string | SourceFile [get, set] |
Properties inherited from AlphaFramework.World.IUniverse | |
string | SourceFile [get, set] |
The map file this world was loaded from. More... | |
Events | |
Action | SkyboxChanged |
Occurs when Skybox was changed. More... | |
A common base for game worlds (but not a running game). Equivalent to the content of a map file.
TCoordinates | Data type for storing position coordinates of objects in the game world. |
TCoordinates | : | struct |
|
inlineprotectedvirtual |
Updates a single IUpdateable.
|
getset |
The current position and direction of the camera in the game.
This is updated only when leaving the game, not continuously.
|
getset |
Total elapsed game time in seconds.
|
getset |
The pathfinding engine used to navigate Positionables.
|
get |
A collection of all Positionable<TCoordinates>s in this UniverseBase<TCoordinates>.
|
getset |
The name of the skybox to use for this map; may be null
or empty.
Action AlphaFramework.World.UniverseBase< TCoordinates >.SkyboxChanged |
Occurs when Skybox was changed.