Adventure at Umalu  22nd March, 2013
Rogue-like Dungeon Crawler, written in Java
 All Classes Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
rogue.creature.Player Class Reference
Inheritance diagram for rogue.creature.Player:
rogue.creature.Creature jade.ui.Camera jade.core.Actor jade.core.Messenger

Public Member Functions

 Player (Terminal term)
 
void setName (String name)
 
String getName ()
 
Inventory getInventory ()
 
void act ()
 
void confirmQuit ()
 
Collection< CoordinategetViewField ()
 
void regainHitpoint ()
 
void regainChurchHitpoint ()
 
int getHitpoints ()
 
int getMaxHitpoints ()
 
void showInventoryScreen ()
 
void updateHP (int newBonusHP)
 
void updateHP ()
 
void updateStrength (int newBonusStrength)
 
void updateStrength ()
 
- Public Member Functions inherited from rogue.creature.Creature
 Creature (ColoredChar face)
 
void setPos (int x, int y)
 
boolean loseHitpoints (int damage)
 
boolean checkHitpoints ()
 
- Public Member Functions inherited from jade.core.Actor
 Actor (ColoredChar face)
 
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< Actorholds ()
 
void setWorld (World world)
 
- Public Member Functions inherited from jade.core.Messenger
 Messenger ()
 
void appendMessage (String message)
 
Iterable< String > retrieveMessages ()
 
void aggregateMessages (Messenger messenger)
 
void filterMessages (Collection< Messenger > filter)
 
void clearMessages ()
 
- Public Member Functions inherited from jade.ui.Camera
int x ()
 
int y ()
 
World world ()
 

Public Attributes

Boolean worldchangedown = false
 
Boolean worldchangeup = false
 
- Public Attributes inherited from rogue.creature.Creature
int hitpoints
 
int strength
 

Detailed Description

Represents Player

Constructor & Destructor Documentation

rogue.creature.Player.Player ( Terminal  term)

Creates a new Player Object

Parameters
termCurrently used Terminalobject

Member Function Documentation

void rogue.creature.Player.act ( )
virtual

Ask Player to do some action (passing him the baton). Reads input and moves Character accordingly.

Implements jade.core.Actor.

String rogue.creature.Player.getName ( )

Returns Charactername.

Returns
Name of Character
Collection<Coordinate> rogue.creature.Player.getViewField ( )

Get what is visible

Returns
A collection of visible Items

Implements jade.ui.Camera.

void rogue.creature.Player.regainHitpoint ( )

Player regains 1 Hitpoint. Method should be used every x rounds in rogue

void rogue.creature.Player.setName ( String  name)

Sets Charactername. Should be only called on character Creation.

Parameters
nameNew Name of Character
void rogue.creature.Player.showInventoryScreen ( )

Creates and prints an Inventory Screen


The documentation for this class was generated from the following file: