antisplice-0.7.0.0: An engine for text-based dungeons.

Safe HaskellNone

Game.Antisplice.Prototypes

Description

Provides prototypes for common entities (rooms, objects, mobs).

Synopsis

Documentation

ctorRoom :: Monad m => String -> String -> RoomT m ()Source

Construct a simple room from a title and a description.

ctorSign :: (MonadAtoms m, MonadVocab m, MonadError SplErr m) => String -> [String] -> ObjectT m ()Source

Construct a sign from a text and some attributes.

ctorMob :: MonadVocab m => String -> [String] -> String -> [String] -> ObjectT m ()Source

Construct a mob from a title, some names, a description and some attributes.

ctorRoute :: (Monad m, Functor m) => [NodeId] -> Integer -> ObjectT m ()Source

Construct a mob route from some room IDs and a time delay in milliseconds.

ctorRoomNesting :: MonadVocab m => String -> String -> [String] -> [String] -> NodeId -> ObjectT m ()Source

Construct a room nesting object from a title, a description, some names, some attributes and the target room ID.

ctorAcq :: MonadVocab m => String -> String -> [String] -> [String] -> ObjectT m ()Source

Construct an acquirable object from a title, a description, some names and some attributes.