| Package | Description |
|---|---|
| mars |
The mars package is used for running a whole game of NetWars.
|
| serverControl | |
| tcpService |
| Modifier and Type | Method and Description |
|---|---|
java.util.Queue<CoreChange> |
GameHistory.getQueue()
getQueue
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
GameHistory.addCoreChange(CoreChange coreChange)
addCoreChange
adds a core change to the core change queue.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
GameHistory.setQueue(java.util.Queue<CoreChange> queue)
setQueue
|
| Constructor and Description |
|---|
Interpreter(int coreSize,
int maxCycles,
int maxLength,
java.util.ArrayList<Warrior> warriors,
java.lang.String logName,
java.util.Queue<CoreChange> coreChangeQueue)
Interpreter
Initializes a playing field (core) with its predetermined size, checks if all warriors fit in, sets them and
initializes a marker field
|
| Modifier and Type | Method and Description |
|---|---|
void |
ServerController.renderGame(java.util.ArrayList<Warrior> warriors,
java.util.Queue<CoreChange> queue)
if you want to compute a game call this method
only give it a queue and the code of the players
|
| Modifier and Type | Method and Description |
|---|---|
CoreChange |
DataManagementController.getNextCoreChange() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Queue<CoreChange> |
GamingPlattform.getQueue() |
java.util.Queue<CoreChange> |
DataManagementController.getQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
DataManagementController.setNewCoreChange(CoreChange newChange)
If the game, at witch the client want to get the next update frames they
have to set up with this class
|
void |
GamingPlattform.setNextCoreChange(CoreChange change)
if a new Frame is available set it up whith this method
|
| Modifier and Type | Method and Description |
|---|---|
void |
GamingPlattform.renderGame(java.util.ArrayList<Warrior> warriors,
java.util.Queue<CoreChange> queue)
This computes the game whith the code you sent and writes it into the Queue you gives it to
|
void |
DataManagementController.setCoreQueue(java.util.Queue<CoreChange> coreChanges)
if you want to setup a hole new set of update frames use this class
|
void |
GamingPlattform.setQueue(java.util.LinkedList<CoreChange> queue)
sets up a new Frame Queue
|