file: Entity.aus

class: Entity

[20:7] extends: Animatable

Wraps FXGL's Entity, the core game-object type in the ECS. Each Entity holds a position (Point2D), rotation, scale, opacity, an arbitrary "type" tag (for collision-handler dispatch), an attached PropertyMap of per-entity variables, and a list of Components that supply its behavior. Aussom users construct Entity directly for ad-hoc setup or get them back from GameWorld.spawn / getEntities. Components extend behavior; see fxgl.Component for the wrapper.

Methods