![]() |
Adventure at Umalu
22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
|
Public Member Functions | |
Creature (ColoredChar face) | |
void | setPos (int x, int y) |
boolean | loseHitpoints (int damage) |
boolean | checkHitpoints () |
![]() | |
Actor (ColoredChar face) | |
abstract void | act () |
ColoredChar | face () |
World | world () |
final boolean | bound () |
final boolean | bound (World world) |
void | setPos (int x, int y) |
final void | setPos (Coordinate coord) |
final void | move (int dx, int dy) |
final void | move (Coordinate delta) |
final void | move (Direction dir) |
int | x () |
int | y () |
final Coordinate | pos () |
boolean | expired () |
void | expire () |
void | attach (Actor holder) |
void | detach () |
Actor | holder () |
final boolean | held () |
final boolean | held (Actor holder) |
final Collection< Actor > | holds () |
void | setWorld (World world) |
![]() | |
Messenger () | |
void | appendMessage (String message) |
Iterable< String > | retrieveMessages () |
void | aggregateMessages (Messenger messenger) |
void | filterMessages (Collection< Messenger > filter) |
void | clearMessages () |
Public Attributes | |
int | hitpoints |
int | strength |
Defines an abstract Class for every Being on Map
rogue.creature.Creature.Creature | ( | ColoredChar | face | ) |
Creates a new Creature Object
face | Symbol used ingame to Represent this creature |
boolean rogue.creature.Creature.checkHitpoints | ( | ) |
Checks, if creature is dead (by having <= 0 hitpoints), if so, Creature dies
boolean rogue.creature.Creature.loseHitpoints | ( | int | damage | ) |
Reduces Creatures Hitpoints by damage.
damage | Amount of Hitpoints this creature should loose |
void rogue.creature.Creature.setPos | ( | int | x, |
int | y | ||
) |