LambdaHack-0.2.6: A roguelike game engine in early and active development

Safe HaskellNone

Game.LambdaHack.Content.ActorKind

Description

The type of kinds of monsters and heroes.

Synopsis

Documentation

data ActorKind Source

Actor properties that are fixed for a given kind of actors.

Constructors

ActorKind 

Fields

asymbol :: !Char

map symbol

aname :: !String

short description

afreq :: !Freqs

frequency within groups

acolor :: !Color

map color

aspeed :: !Speed

natural speed in m/s

ahp :: !RollDice

encodes initial and maximal hp

asight :: !Bool

can it see?

asmell :: !Bool

can it smell?

aiq :: !Int

intelligence

aregen :: !Int

number of turns to regenerate 1 HP

acanDo :: ![Ability]

the set of supported abilities

Instances

avalidate :: [ActorKind] -> [ActorKind]Source

Filter a list of kinds, passing through only the incorrect ones, if any.

Make sure actor kinds can be told apart on the level map.