Packages

trait LevelContext extends EventWrapperObservable[MouseEventWrapper] with EntitiesDrawer with GameStateHolder

Trait modelling the context of a level

Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LevelContext
  2. GameStateHolder
  3. EventWrapperObserver
  4. EntitiesDrawer
  5. EventWrapperObservable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def drawEntities(playerEntity: Option[DrawableWrapper], entities: Seq[DrawableWrapper]): Unit

    Called whenever the entities must be drawn

    Called whenever the entities must be drawn

    playerEntity

    the player entity. It may be empty

    entities

    the other entities

    Definition Classes
    EntitiesDrawer
  2. abstract def gameCurrentState: GameStateEventWrapper

    A generic definition of the game state

    A generic definition of the game state

    returns

    a GameStateEventWrapper

    Definition Classes
    GameStateHolder
  3. abstract def getPlayerUUID: String

    The UUID of the current player, used to discriminate between different users

    The UUID of the current player, used to discriminate between different users

    returns

    Some(uuid) if it's defined and the current game mode is not simulation; otherwise None.

    Definition Classes
    LevelContextEntitiesDrawer
  4. abstract val levelContextType: LevelContextType.Value

    The level context type

  5. abstract def notify(event: GameStateEventWrapper): Unit

    Called on a event T type

    Called on a event T type

    event

    the event

    Definition Classes
    EventWrapperObserver
  6. abstract def notifyMouseEvent(event: MouseEventWrapper): Unit

    Called when the LevelContext gets a mouse event from the scene

    Called when the LevelContext gets a mouse event from the scene

    event

    the mouse event

  7. abstract def setListener(levelContextListener: LevelContextListener): Unit

    Setter.

    Setter. Sets the level context listener

    levelContextListener

    the level context listener

  8. abstract def setPlayerUUID(playerUUID: String): Unit

    Sets the current player uuid.

  9. abstract def setupLevel(mapShape: MapShape): Unit

    Called once at the beginning at the level.

    Called once at the beginning at the level. Manages the context setup

    mapShape

    the level shape

  10. abstract def subscribe(eventWrapperObserver: EventWrapperObserver[MouseEventWrapper]): Unit

    This method subscribes a single event observer

    This method subscribes a single event observer

    eventWrapperObserver

    the observer

    Definition Classes
    EventWrapperObservable
  11. abstract def unsubscribe(eventWrapperObserver: EventWrapperObserver[MouseEventWrapper]): Unit

    This method unsubscribes a single event observer

    This method unsubscribes a single event observer

    eventWrapperObserver

    the observer

    Definition Classes
    EventWrapperObservable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from GameStateHolder

Inherited from EntitiesDrawer

Inherited from AnyRef

Inherited from Any

Ungrouped