Table of Contents

Class CoordinateUniverse<TCoordinates>

Namespace
AlphaFramework.World
Assembly
AlphaFramework.World.dll

A common base for game worlds with objects in a coordinate system.

public abstract class CoordinateUniverse<TCoordinates> : UniverseBase, IUniverse where TCoordinates : struct

Type Parameters

TCoordinates

Data type for storing position coordinates of objects in the game world.

Inheritance
CoordinateUniverse<TCoordinates>
Implements
Derived
Inherited Members
Extension Methods

Properties

Pathfinder

The pathfinding engine used to navigate Positionables.

[Browsable(false)]
public IPathfinder<TCoordinates>? Pathfinder { get; set; }

Property Value

IPathfinder<TCoordinates>

Positionables

[Browsable(false)]
public abstract MonitoredCollection<Positionable<TCoordinates>> Positionables { get; }

Property Value

MonitoredCollection<Positionable<TCoordinates>>

Methods

Update(IUpdateable, double)

Updates a single IUpdateable.

protected virtual void Update(IUpdateable updateable, double elapsedGameTime)

Parameters

updateable IUpdateable
elapsedGameTime double

Update(double)

Updates the universe.

public override void Update(double elapsedGameTime)

Parameters

elapsedGameTime double

How much game time in seconds has elapsed since this method was last called.