Entity

sealed trait Entity

This trait represents an entity of ECS whose state is defined by its components.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def addComponent[C <: Component](component: C)(implicit evidence$1: ComponentTag[C]): Entity
Type Params
C

the type of the Component.

Value Params
component

the Component to add to the Entity.

Returns

itself.

def removeComponent[C <: Component](implicit evidence$2: ComponentTag[C]): Entity
Type Params
C

the type of the Component to be removed.

Value Params
component

the Component to remove from the Entity.

Returns

itself.

def removeComponent[C <: Component](component: C)(implicit evidence$3: ComponentTag[C]): Entity
Type Params
C

the type of the Component to be removed.

Value Params
component

the Component to remove from the Entity.

Returns

itself.