![]() |
Adventure at Umalu
22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
|
Public Member Functions | |
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 () |
Represents anything on a Jade
that can perform an action (or be acted upon). This obviously includes things like the player, NPCs, and monsters. Not as obviously, an
can represent things like items, spells, doors and traps, or even abstract actions like timers and events. An
can be attached to one another in order to create other interesting effects. For example, an enchantment spell might be an effect
attached to an item
. A timer
could be attached to the spell which simple counts an appropriate amount of turns, then expires the spell
.
jade.core.Actor.Actor | ( | ColoredChar | face | ) |
|
pure virtual |
Performs the actions of this
. Normally this would be called by the
in the
method, which allows the
actions to be scheduled properly based on act order and
speed.
Implemented in rogue.creature.Player, rogue.creature.Rat, rogue.creature.Unbeliever, rogue.creature.Zombie, rogue.creature.Dragon, rogue.creature.Frog_poisonous, rogue.creature.Orc, rogue.creature.Shadow, rogue.creature.Slug_fat, jade.gen.map.ItemGenerator, rogue.creature.Troll, rogue.creature.InvisibleZombie, and rogue.creature.Dummy.
void jade.core.Actor.attach | ( | Actor | holder | ) |
Attaches this
to another. Note that the
must not be currently held or bound to a
when calling this method. The position of this
will follow the holder, and the
will be bound to the holder's
. However, the
will not be placed on the
grid and will therefore not be accessible through
or
.
holder | the new holder of the |
final boolean jade.core.Actor.bound | ( | ) |
final boolean jade.core.Actor.bound | ( | World | world | ) |
void jade.core.Actor.detach | ( | ) |
void jade.core.Actor.expire | ( | ) |
boolean jade.core.Actor.expired | ( | ) |
ColoredChar jade.core.Actor.face | ( | ) |
final boolean jade.core.Actor.held | ( | ) |
final boolean jade.core.Actor.held | ( | Actor | holder | ) |
Actor jade.core.Actor.holder | ( | ) |
final Collection<Actor> jade.core.Actor.holds | ( | ) |
final void jade.core.Actor.move | ( | int | dx, |
int | dy | ||
) |
final void jade.core.Actor.move | ( | Coordinate | delta | ) |
final void jade.core.Actor.move | ( | Direction | dir | ) |
final Coordinate jade.core.Actor.pos | ( | ) |
void jade.core.Actor.setPos | ( | int | x, |
int | y | ||
) |
final void jade.core.Actor.setPos | ( | Coordinate | coord | ) |
World jade.core.Actor.world | ( | ) |