swarm-0.7.0.0: 2D resource gathering game with programmable robots
Safe HaskellNone
LanguageHaskell2010

Swarm.Game.Popup

Synopsis

Popup types

data Popup Source #

Different types of popups that can be displayed to the player.

Popup state

data PopupState Source #

State to track pending popup queue as well as any popup which is currently being displayed.

initPopupState :: PopupState Source #

Initial, empty popup state.

addPopup :: Popup -> PopupState -> PopupState Source #

Add a popup to the end of the queue.

nextPopup :: MonadState PopupState m => m () Source #

Move the next popup (if any) from the queue to the currently displayed popup.