Class: CompositeComponent

CompositeComponent

CompositeComponent is a Component that can be used to group together multiple Components. It should be subclassed to provide easy building blocks for certain combinations of Components.


new CompositeComponent()

Author:
  • derschmale <http://www.derschmale.com>

Extends

Members


acceptVisitor

If provided, this method will be called by the scene partition traverser, allowing collection by the renderer.

Inherited From:

bounds

If a Component has a scene presence, it can have bounds

Inherited From:

enabled

Defines whether or not this component should be enabled.

Inherited From:

onUpdate

If provided, this method will be called every frame, allowing updating the entity.

Inherited From:
Overrides:

Methods


addComponent()

Adds a Component to the composite. Usually called in the constructor of the subclass.


bindListener()

Listens to the entity's messenger for a given message type.

Inherited From:

broadcast()

Broadcasts a message dispatched by the owning Entity's onMessage Signal.

Inherited From:

clone()

Creates a duplicate of this Component.

Inherited From:
Overrides:

hasListeners()

Tests whether the given signal is being listened to.

Inherited From:

invalidateBounds()

Marks the bounds as invalid, causing them to be recalculated when next queried.

Inherited From:

onAdded()

Called when this component is added to an Entity.

Inherited From:
Overrides:

onRemoved()

Called when this component is removed from an Entity.

Inherited From:
Overrides:

removeComponent()

Removes a Component to the composite.


unbindListener()

Listens to the entity's messenger for a given message type.

Inherited From: