gnieh.sohva.sync.entities

EntityManager

class EntityManager extends entities.EntityManager[Identity]

The EntityManager is responsible for creating, storing and deleting the entities and associated components. Entities are stored in a CouchDB database.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EntityManager
  2. EntityManager
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EntityManager(database: Database)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def create(uuid: String, tag: Option[String]): Unit

    Creates an entity into the entity database and returns it

    Creates an entity into the entity database and returns it

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  9. def createSimple(): Entity

    Creates a simple untagged entity into the entity database and returns it

    Creates a simple untagged entity into the entity database and returns it

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  10. def createTagged(tag: String): Entity

    Creates a tagged entity into the entity database and returns it

    Creates a tagged entity into the entity database and returns it

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  11. val database: Database

    Definition Classes
    EntityManagerEntityManager
  12. def deleteEntity(entity: Entity): Boolean

    Deletes an entity and all attched components from the entity database

    Deletes an entity and all attched components from the entity database

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  13. def entities(tag: String): Set[Entity]

    Returns the list of known entities with the given tag

    Returns the list of known entities with the given tag

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  14. def entities: Set[Entity]

    Returns the list of known entities

    Returns the list of known entities

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def getComponent[T](entity: Entity)(implicit arg0: Manifest[T]): Option[T]

    Retrieves the component of the given type attached to the entity if any

    Retrieves the component of the given type attached to the entity if any

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  20. def hasComponent[T](entity: Entity, component: T)(implicit arg0: Manifest[T]): Boolean

    Indicates whether the entity has a component attached to it

    Indicates whether the entity has a component attached to it

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  21. def hasComponentType[T](entity: Entity)(implicit arg0: Manifest[T]): Boolean

    Indicates whether the entity has a component of the given type attached to it

    Indicates whether the entity has a component of the given type attached to it

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def removeComponent[T <: IdRev](entity: Entity, component: T)(implicit arg0: Manifest[T]): Boolean

    Removes the given component from the entity.

    Removes the given component from the entity. If the entity does not exist or has not this component attached, returns false

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  28. def removeComponentType[T](entity: Entity)(implicit arg0: Manifest[T]): Boolean

    Removes the component with the given name from the entity.

    Removes the component with the given name from the entity. If the entity does not exist or has no component with the given name, returns false

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  29. def saveComponent[T <: IdRev](entity: Entity, component: T)(implicit arg0: Manifest[T]): T

    Adds or updates the component to the given entity.

    Adds or updates the component to the given entity. If the entity is unknown, does nothing. Returns the saved component.

    Definition Classes
    EntityManagerEntityManager
    Annotations
    @inline()
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. val wrapped: async.entities.EntityManager

Inherited from AnyRef

Inherited from Any

Ungrouped