Serialized Form

  • Package event

  • Package role

    • Class role.GameController

      class GameController extends JFrame implements Serializable
      serialVersionUID:
      1L
      • Serialized Fields

        • ARRANGE_BY_LAYER
          Comparator<EntityModel> ARRANGE_BY_LAYER
          A comparator for ordering entities by layer. Deeper layers [lower numbers] are drawn first. The layer corresponds to the Z-axis for hidden line removal.
        • background
          Color background
          The color to be used for clearing screen
        • blockedEvents
          ArrayList<BlockedEvent> blockedEvents
          list of all entities involved in collisions with barriers
        • clockInterval
          long clockInterval
          The time delay in milliseconds between frames
        • collidingPairs
          ArrayList<EntityPair> collidingPairs
          List of entity pairs that are currently in collision, for this frame
        • collisionEvents
          ArrayList<CollisionEvent> collisionEvents
          list of all colliding entities during this cycle
        • DEBUG
          boolean DEBUG
          debug state
        • disentangle
          boolean disentangle
          enables separation of entities that are under collision Leave as false
        • entityAddList
          List<EntityModel> entityAddList
          List containing entities to be added to the display after each cycle
        • entityList
          List<EntityModel> entityList
          The following is a list of all entities to be drawn, updated etc
        • entityRemoveList
          List<EntityModel> entityRemoveList
          List containing the entities to be removed from display after each cycle Synchronized because it is concurrently modified by the thread-pool
        • gameClock
          GameClock gameClock
          The heart-beat of the controller. Each tick corresponds to the inverse of the frame rate.
        • ignoreKeyStrokesForFrames
          int ignoreKeyStrokesForFrames
          Defining the ignore count will cause keyboard listener to skip specified number of cycles
        • isDisposed
          boolean isDisposed
          Sets the disposed state of the controller
        • kbdListener
          MultiKeyListener kbdListener
          The keyboard listener - can detect simultaneous multi-keys. Can be programmed to skip poll cycles.
        • messageEvents
          ArrayList<MessageEvent> messageEvents
          list of all messages collected from listed entities during this cycle
        • oobEvents
          ArrayList<OutOfBoundsEvent> oobEvents
          list of all entities stepping out-of-bounds in this cycle
        • screenBoundary
          ScreenBoundary[] screenBoundary
          An array of boundaries defining the edges of the screen
        • strategy
          BufferStrategy strategy
          Uses a double-buffered strategy
          See Also:
        • timeStamp
          long timeStamp
          An instant in time