public class CycleController extends Object
| Modifier and Type | Field and Description |
|---|---|
private int |
height
The height.
|
private static org.slf4j.Logger |
LOGGER
The Constant slf4jLogger.
|
private Plan |
map
The map.
|
private PlanGenerator |
mg
The mg.
|
private boolean |
newTurn
The newturn.
|
private Npc |
npc
The npc.
|
private Player |
player
The player.
|
(package private) long |
timeStart
The time start.
|
private String |
title
The title.
|
private Turn |
turn
The turn.
|
private int |
width
The width.
|
| Constructor and Description |
|---|
CycleController()
Instantiates a new boot cycle.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
coreGameLoop()
Run.
|
private void |
gameOver()
Game over.
|
boolean |
getNewTurn()
Gets the newturn.
|
private Npc |
getNpc()
Gets the npc.
|
private Player |
getPlayer()
Gets the player.
|
Turn |
getTurn()
Gets the turn.
|
private void |
init()
Inits the.
|
private boolean |
isGameOver()
Checks if is game over.
|
private void |
loop()
Loop.
|
static void |
main(String[] args)
The main method.
|
private void |
neverEnd()
Never end.
|
void |
setNpc(Npc n)
Sets the npc.
|
void |
setPlayer(Player p)
Sets the player.
|
void |
setTurn(Turn t)
Sets the turn.
|
private static void |
write2File(Map<Location,Character> m)
Write 2 file.
|
private static final org.slf4j.Logger LOGGER
private String title
private int width
private int height
private Turn turn
private Player player
private Npc npc
private Plan map
private PlanGenerator mg
private boolean newTurn
final long timeStart
private static void write2File(Map<Location,Character> m)
m - the mappublic static void main(String[] args)
args - the argumentsprivate void init()
private void loop()
private void coreGameLoop()
private boolean isGameOver()
private void gameOver()
private void neverEnd()
public final Turn getTurn()
public final void setTurn(Turn t)
t - the new turnpublic final boolean getNewTurn()
private Player getPlayer()
public final void setPlayer(Player p)
p - the new playerprivate Npc getNpc()
public final void setNpc(Npc n)
n - the new npcCopyright © 2016. All rights reserved.