| Package | Description |
|---|---|
| mars |
The mars package is used for running a whole game of NetWars.
|
| redHandling |
The redHandling package with its main class RedFileManager was
created to parse and transfer RedCode files or strings into a
data structure for latter computation.
|
| serverControl | |
| tcpService |
| 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 | Field and Description |
|---|---|
(package private) static Warrior[] |
WarriorTest.tester
This array of tester warriors is created to insure individual tests don't
fatally interfere with each other.
|
| Modifier and Type | Method and Description |
|---|---|
Warrior |
RedFileManager.getWarrior()
Gets the Warrior loaded from file or string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RedCodeArrayList.addWarrior(Warrior warrior)
Adds the instruction set of a Warrior to the RedCodeArrayList instance.
|
| 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 |
|---|---|
Warrior |
DataManagementController.getCode() |
| Modifier and Type | Method and Description |
|---|---|
void |
DataManagementController.setCode(Warrior code)
If you get code from the client set it up here It has to be of kind
Warrior, so it has to be verified before
|
| 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
|