public class Turn extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER
The Constant slf4jLogger.
|
private boolean |
startTurn
The start turn.
|
private Type |
type
The type.
|
| Constructor and Description |
|---|
Turn()
Instantiates a new turn.
|
Turn(Type a)
Instantiates a new turn.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
getTYPE()
Gets the type.
|
private void |
npcTurn(Player player,
Npc npc)
Npc turn.
|
private void |
playerTurn(Player player,
Npc npc)
Player turn.
|
void |
setTYPE(Type a)
Sets the type.
|
void |
turnListener(Turn turn,
Player player,
Npc npc)
The turnListener check the actual
TYPE Id and starts
playerTurn() or npcTurn(). |
private static final org.slf4j.Logger LOGGER
private Type type
private boolean startTurn
public Turn()
public Turn(Type a)
a - the typepublic final Type getTYPE()
public final void setTYPE(Type a)
a - the new typepublic final void turnListener(Turn turn, Player player, Npc npc)
TYPE Id and starts
playerTurn() or npcTurn().turn - the actual turn from the BootCycle.player - the playernpc - the npcIllegalStateException - If the actual TYPE is null or unknown.private void playerTurn(Player player, Npc npc)
player - the playernpc - the npcCopyright © 2016. All rights reserved.