Enum Class GameController.EventDispatchMode

java.lang.Object
java.lang.Enum<GameController.EventDispatchMode>
polimi.ingsw.am21.codex.controller.GameController.EventDispatchMode
All Implemented Interfaces:
Serializable, Comparable<GameController.EventDispatchMode>, Constable
Enclosing class:
GameController

public static enum GameController.EventDispatchMode extends Enum<GameController.EventDispatchMode>
Used to describe how the events should be dispatched under different circumstances. For each mode we provide a description of the logic structured this way: EVENT_NAME context of the client that caused the event: - listeners that will receive the event
  • Enum Constant Details

    • TOP_DOWN

      public static final GameController.EventDispatchMode TOP_DOWN
      menu:
      - menu listeners
      lobby:
      - lobby listeners
      game:
      - game listeners
      - lobby listeners
    • BOTTOM_UP

      public static final GameController.EventDispatchMode BOTTOM_UP
      menu:
      - menu listeners
      lobby:
      - lobby listeners
      - game listeners
      game:
      - game listeners
    • TOP_DOWN_FULL

      public static final GameController.EventDispatchMode TOP_DOWN_FULL
      menu:
      - menu listeners
      lobby:
      - lobby listeners
      - menu listeners
      game:
      - game listeners
      - lobby listeners
      - menu listeners
    • BOTTOM_UP_FULL

      public static final GameController.EventDispatchMode BOTTOM_UP_FULL
      menu:
      - menu listeners
      - lobby listeners
      - game listeners
      lobby:
      - lobby listeners
      - game listeners
      game:
      - game listeners
    • BOTH_WAYS

      public static final GameController.EventDispatchMode BOTH_WAYS
      menu:
      - menu listeners
      lobby:
      - lobby listeners
      - game listeners
      game:
      - game listeners
      - lobby listeners
    • BOTH_WAYS_FULL

      public static final GameController.EventDispatchMode BOTH_WAYS_FULL
      menu:
      - menu listeners
      - game listeners
      - lobby listeners
      lobby:
      - lobby listeners
      - game listeners
      - menu listeners
      game:
      - game listeners
      - lobby listeners
      - menu listeners
    • SAME_CONTEXT

      public static final GameController.EventDispatchMode SAME_CONTEXT
      menu:
      - menu listeners
      lobby:
      - lobby listeners
      game:
      - game listeners
  • Method Details