| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.TUI.Model.Event
Description
Sum types representing the Swarm events abstracted away from keybindings.
Synopsis
- data SwarmEvent
- data MainEvent
- = QuitEvent
- | ViewHelpEvent
- | ViewRobotsEvent
- | ViewRecipesEvent
- | ViewCommandsEvent
- | ViewMessagesEvent
- | ViewStructuresEvent
- | ViewGoalEvent
- | HideRobotsEvent
- | ShowCESKDebugEvent
- | PauseEvent
- | RunSingleTickEvent
- | IncreaseTpsEvent
- | DecreaseTpsEvent
- | FocusWorldEvent
- | FocusRobotEvent
- | FocusREPLEvent
- | FocusInfoEvent
- | ToggleCreativeModeEvent
- | ToggleWorldEditorEvent
- | ToggleREPLVisibilityEvent
- data REPLEvent
- data WorldEvent
- = ViewBaseEvent
- | ShowFpsEvent
- | MoveViewEvent AbsoluteDir
- data RobotEvent
- swarmEvents :: KeyEvents SwarmEvent
- defaultSwarmBindings :: [(SwarmEvent, [Binding])]
Documentation
data SwarmEvent Source #
Constructors
| Main MainEvent | |
| REPL REPLEvent | |
| World WorldEvent | |
| Robot RobotEvent |
Instances
| Show SwarmEvent Source # | |
Defined in Swarm.TUI.Model.Event Methods showsPrec :: Int -> SwarmEvent -> ShowS # show :: SwarmEvent -> String # showList :: [SwarmEvent] -> ShowS # | |
| Eq SwarmEvent Source # | |
Defined in Swarm.TUI.Model.Event | |
| Ord SwarmEvent Source # | |
Defined in Swarm.TUI.Model.Event Methods compare :: SwarmEvent -> SwarmEvent -> Ordering # (<) :: SwarmEvent -> SwarmEvent -> Bool # (<=) :: SwarmEvent -> SwarmEvent -> Bool # (>) :: SwarmEvent -> SwarmEvent -> Bool # (>=) :: SwarmEvent -> SwarmEvent -> Bool # max :: SwarmEvent -> SwarmEvent -> SwarmEvent # min :: SwarmEvent -> SwarmEvent -> SwarmEvent # | |
Main abstract keybinding events while running the game itself.
See 'Swarm.TUI.Controller.MainEventHandler.'.
Constructors
Instances
| Bounded MainEvent Source # | |
| Enum MainEvent Source # | |
Defined in Swarm.TUI.Model.Event Methods succ :: MainEvent -> MainEvent # pred :: MainEvent -> MainEvent # fromEnum :: MainEvent -> Int # enumFrom :: MainEvent -> [MainEvent] # enumFromThen :: MainEvent -> MainEvent -> [MainEvent] # enumFromTo :: MainEvent -> MainEvent -> [MainEvent] # enumFromThenTo :: MainEvent -> MainEvent -> MainEvent -> [MainEvent] # | |
| Show MainEvent Source # | |
| Eq MainEvent Source # | |
| Ord MainEvent Source # | |
REPL abstract keybinding events.
See REPLEventHandler.
Instances
| Bounded REPLEvent Source # | |
| Enum REPLEvent Source # | |
Defined in Swarm.TUI.Model.Event Methods succ :: REPLEvent -> REPLEvent # pred :: REPLEvent -> REPLEvent # fromEnum :: REPLEvent -> Int # enumFrom :: REPLEvent -> [REPLEvent] # enumFromThen :: REPLEvent -> REPLEvent -> [REPLEvent] # enumFromTo :: REPLEvent -> REPLEvent -> [REPLEvent] # enumFromThenTo :: REPLEvent -> REPLEvent -> REPLEvent -> [REPLEvent] # | |
| Show REPLEvent Source # | |
| Eq REPLEvent Source # | |
| Ord REPLEvent Source # | |
data WorldEvent Source #
Constructors
| ViewBaseEvent | |
| ShowFpsEvent | |
| MoveViewEvent AbsoluteDir |
Instances
data RobotEvent Source #
Constructors
| MakeEntityEvent | |
| ShowZeroInventoryEntitiesEvent | |
| CycleInventorySortEvent | |
| SwitchInventorySortDirection | |
| SearchInventoryEvent |
Instances
defaultSwarmBindings :: [(SwarmEvent, [Binding])] Source #