|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jurpe.system.TurnTable
public class TurnTable
This class is a metaphor for a table in which players sit to play.
Constructor Summary | |
---|---|
TurnTable()
Constructor |
Method Summary | |
---|---|
void |
addEffect(EffectType et,
int modifier,
short nT)
Add an effect to current player with a duration of n turns |
void |
addEffect(PC player,
EffectType et,
int modifier,
short nT)
Add an effect to a particular player with a duration of nT turns |
PC |
getCurrentPlayer()
Get current player, based upon current turn. |
int |
getCurrentTurn()
Get current turn. |
int |
getEffect(EffectType et)
Get the modifier for a specified Effect in charge for current player |
PC |
getNextPlayer()
Get next player, based upon current table disposition. |
java.lang.String |
getOrderDescription()
Get MVMT description and order of fight. |
int |
getPlayers()
Get number of players |
void |
nextPlayer()
Advances turn to next player. |
void |
nextTurn(Log log)
Current player plays his turn. |
void |
orderBySpeed()
Order players, confronting their Speed rating. |
void |
removeAllEffects()
Call this method when a combat ends (ie: fightee runs away) |
void |
subscribe(PC player)
Add players (either PC or NPC) to the table. |
void |
unsubscribe(PC player)
Remove player (either PC or NPC) from table |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TurnTable()
Method Detail |
---|
public void subscribe(PC player)
player
- Player to addpublic void unsubscribe(PC player)
player
- Player to removepublic void nextPlayer()
public PC getCurrentPlayer()
public PC getNextPlayer()
public int getCurrentTurn()
public void orderBySpeed()
public java.lang.String getOrderDescription()
public void nextTurn(Log log)
log
- Log to communicate topublic int getEffect(EffectType et)
et
- Effect type to apply
public void addEffect(EffectType et, int modifier, short nT)
et
- EffectType to addmodifier
- Modifier to add to character statsnT
- Number of turns in which effect is in chargepublic void addEffect(PC player, EffectType et, int modifier, short nT)
player
- PC who suffers effectet
- EffectType to addmodifier
- Modifier to add to character statsnT
- Number of turns in which effect is in chargepublic void removeAllEffects()
public int getPlayers()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |