class Component
package zero.flixel.ec
extended by CallbackAfterTimer, CircleConstraint, KillAfterAnimation, LookAtMouse, LookAtTarget, PlatformerAnimator, PlatformerJumper, PlatformerWalker, TopDownWalker, AreaOverride, FollowTarget, FollowTilemap, ForwardFocus, PlatformSnap, WindowConstraint
A Component class to be added to an Entity.
Constructor
new (name:String, ?tags:Array<String>)
Creates a new Component with given name
* @param name a name for this component
Variables
Methods
has_tag (tag:String):Bool
Returns whether or not this component is tagged with given tag
Parameters:
tag |
---|
Returns:
Bool return tags.indexOf(tag) >= 0