|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for updating the Player's stats for the client display.
Method Summary | |
void |
sendSpells(java.lang.String spells)
Sends over the spells the player knows. |
void |
setFood(int food)
Updates player food display. |
void |
setGold(int gold)
Updates player gold display. |
void |
setHP(int hp)
Updates player hit-points display. |
void |
setLevel(int level,
int xpForLevel)
Updates player level display. |
void |
setLoad(int currentLoad,
int encumberedLoad,
int burdenedLoad,
int strainedLoad,
int immobilizedLoad,
java.lang.String name)
Updates player encumbrance display. |
void |
setName(java.lang.String name)
Updates player name display. |
void |
setRange(int tile,
java.lang.String name)
Updates player range-weapon display. |
void |
setSP(int sp)
Updates player spell-points display. |
void |
setXP(int xp)
Updates player experience-points display. |
void |
startPoison()
Turns the HP indicator green. |
void |
stopPoison()
Turns the HP indicator red. |
void |
updateAll(int hp,
int max_hp,
int sp,
int max_sp,
int level,
int xp,
int xpForLevel,
int food,
int max_food)
Updates hp, sp, xp, level, etc. |
Method Detail |
public void setHP(int hp)
hp
- hit-pointspublic void setSP(int sp)
sp
- spell-pointspublic void setXP(int xp)
xp
- experience-pointspublic void setFood(int food)
food
- food levelpublic void setGold(int gold)
gold
- current goldpublic void setLevel(int level, int xpForLevel)
level
- player levelxpForLevel
- XP required for the next levelpublic void setName(java.lang.String name)
name
- player name and (optionally) titlepublic void setRange(int tile, java.lang.String name)
tile
- the tile number to display for the itemname
- the name of the itempublic void setLoad(int currentLoad, int encumberedLoad, int burdenedLoad, int strainedLoad, int immobilizedLoad, java.lang.String name)
currentLoad
- the current amount they're carrying, in gramsencumberedLoad
- load in grams to be encumberedburdenedLoad
- load in grams to be burdenedstrainedLoad
- load in grams to be strainedimmobilizedLoad
- load in grams to be immobilizedname
- the name of the current load levelpublic void startPoison()
public void stopPoison()
public void updateAll(int hp, int max_hp, int sp, int max_sp, int level, int xp, int xpForLevel, int food, int max_food)
hp
- hit pointssp
- spell pointslevel
- experience levelxp
- experience pointspublic void sendSpells(java.lang.String spells)
spells
- a string containing the spells the player
knows. The spells are of the form "spell_name".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |