wyvern.common.net
Interface RemoteStats

All Known Subinterfaces:
RemoteClient

public interface RemoteStats

Interface for updating the Player's stats for the client display.

Version:
1.0, Apr 20, 1998
Author:
Steve Yegge

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

setHP

public void setHP(int hp)
Updates player hit-points display.

Parameters:
hp - hit-points

setSP

public void setSP(int sp)
Updates player spell-points display.

Parameters:
sp - spell-points

setXP

public void setXP(int xp)
Updates player experience-points display.

Parameters:
xp - experience-points

setFood

public void setFood(int food)
Updates player food display.

Parameters:
food - food level

setGold

public void setGold(int gold)
Updates player gold display.

Parameters:
gold - current gold

setLevel

public void setLevel(int level,
                     int xpForLevel)
Updates player level display.

Parameters:
level - player level
xpForLevel - XP required for the next level

setName

public void setName(java.lang.String name)
Updates player name display.

Parameters:
name - player name and (optionally) title

setRange

public void setRange(int tile,
                     java.lang.String name)
Updates player range-weapon display.

Parameters:
tile - the tile number to display for the item
name - the name of the item

setLoad

public void setLoad(int currentLoad,
                    int encumberedLoad,
                    int burdenedLoad,
                    int strainedLoad,
                    int immobilizedLoad,
                    java.lang.String name)
Updates player encumbrance display.

Parameters:
currentLoad - the current amount they're carrying, in grams
encumberedLoad - load in grams to be encumbered
burdenedLoad - load in grams to be burdened
strainedLoad - load in grams to be strained
immobilizedLoad - load in grams to be immobilized
name - the name of the current load level

startPoison

public void startPoison()
Turns the HP indicator green.


stopPoison

public void stopPoison()
Turns the HP indicator red.


updateAll

public 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.

Parameters:
hp - hit points
sp - spell points
level - experience level
xp - experience points

sendSpells

public void sendSpells(java.lang.String spells)
Sends over the spells the player knows.

Parameters:
spells - a string containing the spells the player knows. The spells are of the form "spell_name".