AlphaFramework API
1.0.3
|
A common base class for Positionable<TCoordinates> whose behaviour and graphical representation is controlled by components. More...
Public Member Functions | |
abstract void | Update (double elapsedTime) |
Updates the position and other attributes of this entity. More... | |
override string | ToString () |
override Positionable< TCoordinates > | Clone () |
Creates a deep copy of this EntityBase<TCoordinates,TTemplate>. More... | |
Public Member Functions inherited from AlphaFramework.World.Positionables.Positionable< TCoordinates > | |
override string | ToString () |
Static Public Member Functions | |
static IDisposable | MaskTemplateData () |
Makes all TemplateData values return null until IDisposable.Dispose is called on the returned object. This is not thread-safe! More... | |
Properties | |
string | TemplateName [get, set] |
The name of the TTemplate . More... | |
TTemplate? | TemplateData [get, set] |
The TTemplate controlling the behavior and look for this EntityBase<TCoordinates,TTemplate>. More... | |
StoredPath< TCoordinates > | CurrentPath [get, set] |
The path this entity is currently walking along. More... | |
Properties inherited from AlphaFramework.World.Positionables.Positionable< TCoordinates > | |
string | Name [get, set] |
Used for identification in scripts, debugging, etc. More... | |
TCoordinates | Position [get, set] |
The Positionable<TCoordinates>'s position. More... | |
Properties inherited from AlphaFramework.World.Positionables.ITemplated | |
string | TemplateName [get, set] |
The name of the template. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from AlphaFramework.World.Positionables.Positionable< TCoordinates > | |
virtual void | OnChanged () |
To be called when a property relevant for rendering has changed. More... | |
void | OnChangedRebuild () |
To be called when a property has changed that requires visual representations to rebuilt from scratch (usually a template). More... | |
Events inherited from AlphaFramework.World.Positionables.Positionable< TCoordinates > | |
Action< Positionable< TCoordinates > > | Changed |
Occurs when a property relevant for rendering has changed. More... | |
Action< Positionable< TCoordinates > > | ChangedRebuild |
Occurs when a property has changed that requires visual representations to rebuilt from scratch (usually a template). More... | |
A common base class for Positionable<TCoordinates> whose behaviour and graphical representation is controlled by components.
TCoordinates | Data type for storing position coordinates of objects in the game world. |
TTemplate | The specific type of EntityTemplateBase<TSelf> to use as a component container. |
TCoordinates | : | struct | |
TTemplate | : | EntityTemplateBase<TTemplate> |
|
inlinevirtual |
Creates a deep copy of this EntityBase<TCoordinates,TTemplate>.
Reimplemented from AlphaFramework.World.Positionables.Positionable< TCoordinates >.
|
inlinestatic |
Makes all TemplateData values return null
until IDisposable.Dispose is called on the returned object. This is not thread-safe!
|
pure virtual |
Updates the position and other attributes of this entity.
elapsedTime | How much game time in seconds has elapsed since this method was last called. |
Implements AlphaFramework.World.Positionables.IUpdateable.
|
getset |
The path this entity is currently walking along.
|
getset |
The TTemplate controlling the behavior and look for this EntityBase<TCoordinates,TTemplate>.
This is always a clone of the original TTemplate . This is serialized/stored in savegames but not in map files!
|
getset |
The name of the TTemplate .
Setting this will overwrite TemplateData with a new clone of the appropriate TTemplate . This is serialized/stored in map files. It is also serialized/stored in savegames, but the value is ignored there (due to the attribute order)!