- saveToRcFile(String) - Method in class redHandling.RedFileManager
-
Saves the warrior of the RedFileManager instance into a Resource-File.
- saveToRedFile(String) - Method in class redHandling.RedFileManager
-
Saves the warrior of the RedFileManager instance into a Red-File.
- sendingConfigMassage(int, int, int, int, String) - Method in class tcpService.WarriorServerThread
-
trigger a config message
give it the configuration parameters of the core:
- sendingDataToThisClient(String) - Method in class tcpService.WarriorServerThread
-
This method is for sending a message that is stored in the variable msg
to the specific client
- sendingErrorMassage(String) - Method in class tcpService.WarriorServerThread
-
trigger a Error Massage
- sendingFinishMassage(String) - Method in class tcpService.WarriorServerThread
-
trigger finish message
- sendingStartMassage(ArrayList<Integer>, ArrayList<String>) - Method in class tcpService.WarriorServerThread
-
trigger start package
- sendingUpdateMassage(Integer, Integer) - Method in class tcpService.WarriorServerThread
-
trigger update message
- server - Variable in class tcpService.InfoCheckVisitor
-
- server - Variable in class tcpService.WarriorServerThread
-
- serverControl - package serverControl
-
- ServerController - Class in serverControl
-
This class is for controlling the game and here is the connection between the
huge areas in the program here is managed everything between the
userinterface, the mars computation and the network management
- ServerController() - Constructor for class serverControl.ServerController
-
The Constructor It starts this class in a new thread
- serverController - Variable in class tcpService.NetworkConnectorForServer
-
- setCode(String) - Method in class packages.code.Content
-
- setCode(String) - Method in class serverControl.ConnectedPerson
-
it keeps the code saved for every single person
- setCode(Warrior) - Method in class tcpService.DataManagementController
-
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
- setCode(String) - Method in class tcpService.MassagingManagement
-
handles all stuff if it is a code package
- setCode(String) - Method in class tcpService.WarriorServerThread
-
set up the code
an it validates it for you and saves it if everything is fine
- setCodeForPlayerName(String, String) - Method in class serverControl.ServerController
-
if an client send you code, you can set it up for a specific player
you only should give me the name of the player
- setConfig(String, Integer, Integer, Integer) - Method in class serverControl.ServerController
-
With this method the Core would be configured if the server sends the
config-data
- setConfigStatus(Boolean) - Method in class tcpService.DataManagementController
-
Did he get the Config Package?
- setContent(Content) - Method in class packages.code.Code
-
- setContent(Content) - Method in class packages.config.Config
-
- setContent(Content) - Method in class packages.error.Error
-
- setContent(Content) - Method in class packages.finish.Finish
-
- setContent(Content) - Method in class packages.general.General
-
- setContent(Content) - Method in class packages.login.Login
-
- setContent(Content) - Method in class packages.start.Start
-
- setContent(Content) - Method in class packages.update.Update
-
- setContent(Content) - Method in class packages.validation.Validation
-
- setContent(Content) - Method in class packages.waiting.Wait
-
- setCore(List<Integer>) - Method in class packages.start.Content
-
- setCoreData(ArrayList<Integer>) - Method in class serverControl.DataStorage
-
set up a new calculated start core
- setCoreData(ArrayList<Integer>) - Method in class tcpService.GamingPlattform
-
sets up the first frame if you know the coreData, if not use the
setCoreData() method.
- setCoreData() - Method in class tcpService.GamingPlattform
-
This method updates the core data when you rendered the game already
- setCoreQueue(Queue<CoreChange>) - Method in class tcpService.DataManagementController
-
if you want to setup a hole new set of update frames use this class
- setCoresize(Integer) - Method in class packages.config.Content
-
- setCoreSize(Integer) - Method in class serverControl.DataStorage
-
sets up the size of the core
- setErrorcode(String) - Method in class packages.validation.Content
-
- setErrormessage(String) - Method in class packages.error.Content
-
- setField(int, int) - Method in class redHandling.Instruction
-
Sets FieldValue a or b ([Field.a] = 0, [Field.b] = 1)
- setField(int, AddressingMode, int) - Method in class redHandling.Instruction
-
Sets FieldValue and AddressingMode for a or b ([Field.a] = 0, [Field.b] =
1)
- setFinishStatus(Boolean) - Method in class tcpService.DataManagementController
-
Did the client get the finish package?
- setFirstFrame(ArrayList<Integer>) - Method in class serverControl.ServerController
-
If the first frame of the core has been received the data will be saved
with this method
- setGameCycels(Integer) - Method in class serverControl.DataStorage
-
How long should play the game when no one wins the game.
- setGamecycles(Integer) - Method in class packages.config.Content
-
- setGameLaps(Integer) - Method in class tcpService.GamingPlattform
-
How often do you want to play?
- setGameStandard(String) - Method in class serverControl.DataStorage
-
sets up the standard at witch you want to play on the server e.g.
- setIndex(Integer) - Method in class packages.update.Content
-
- setLinelength(Integer) - Method in class packages.config.Content
-
- setLineLength(Integer) - Method in class serverControl.DataStorage
-
sets up the line break of the core
- setLoginName(String) - Method in class tcpService.DataManagementController
-
set up the LoginName you got from the client
- setLoginName(String) - Method in class tcpService.WarriorServerThread
-
set up the loginName
- setMaxinstructions(Integer) - Method in class packages.config.Content
-
- setMaxInstructions(Integer) - Method in class serverControl.DataStorage
-
How many Code instructions do you want to allow?
- setMetaByTag(String, String) - Method in class redHandling.Warrior
-
The function setMetaByTag() changes the value corresponding the passed
tag.
- setName(String) - Method in class packages.code.Content
-
- setName(String) - Method in class packages.login.Content
-
- setName(String) - Method in class serverControl.ConnectedPerson
-
setup a new LoginName
- setNewConnectedPerson(ConnectedPerson) - Method in class serverControl.DataStorage
-
It saves a client and sets it up as an player or an visitor
- setNewConnectedPerson(String, GameMode) - Method in class serverControl.ServerController
-
It saves a clients' data and looks for the name usage
if the name already exists you can't set up a new player with this method
- setNewCoreChange(CoreChange) - Method in class tcpService.DataManagementController
-
If the game, at witch the client want to get the next update frames they
have to set up with this class
- setNextCoreChange(CoreChange) - Method in class tcpService.GamingPlattform
-
if a new Frame is available set it up whith this method
- setNextInstruction(int) - Method in class mars.CommandPointer
-
setNextInstruction
sets the next process to be called for one player
- setNuberOfPlayersThatPlayAgainst(Integer) - Method in class serverControl.DataStorage
-
How many players should play against?
- setPackagetype(String) - Method in class packages.code.Code
-
- setPackagetype(String) - Method in class packages.config.Config
-
- setPackagetype(String) - Method in class packages.error.Error
-
- setPackagetype(String) - Method in class packages.finish.Finish
-
- setPackagetype(String) - Method in class packages.general.General
-
- setPackagetype(String) - Method in class packages.login.Login
-
- setPackagetype(String) - Method in class packages.start.Start
-
- setPackagetype(String) - Method in class packages.update.Update
-
- setPackagetype(String) - Method in class packages.validation.Validation
-
- setPackagetype(String) - Method in class packages.waiting.Wait
-
- setPlayers(List<String>) - Method in class packages.start.Start
-
- setQueue(Queue<CoreChange>) - Method in class mars.GameHistory
-
setQueue
- setQueue(LinkedList<CoreChange>) - Method in class tcpService.GamingPlattform
-
sets up a new Frame Queue
- setRole(String) - Method in class packages.login.Content
-
- setRole(GameMode) - Method in class serverControl.ConnectedPerson
-
setup The status of the player is it a player or a visitor
- setRole(GameMode) - Method in class tcpService.DataManagementController
-
does he only want to visit the Game?
- setRole(GameMode) - Method in class tcpService.WarriorServerThread
-
set up the role for this game
- setScore(int) - Method in class mars.GameHistory
-
setScore
- setStartStatus(Boolean) - Method in class tcpService.DataManagementController
-
Did the client get the start package?
- setState(String) - Method in class packages.finish.Content
-
- setState(Boolean) - Method in class packages.validation.Content
-
- setStd(String) - Method in class packages.config.Content
-
- setUpBeforeClass() - Static method in class redHandling.RedCodeArrayListTest
-
- setUpBeforeClass() - Static method in class redHandling.WarriorTest
-
Creating all the Test Warriors.
- setUpBeforeClass() - Static method in class tests.CodeTest
-
- setUpBeforeClass() - Static method in class tests.ConfigTest
-
- setUpBeforeClass() - Static method in class tests.ErrorTest
-
- setUpBeforeClass() - Static method in class tests.FinishTest
-
- setUpBeforeClass() - Static method in class tests.LoginTest
-
- setValue(Integer) - Method in class packages.update.Content
-
- setValue(int) - Method in class redHandling.Field
-
Sets or replaces the integer value of the field.
- setVersion(Integer) - Method in class packages.code.Code
-
- setVersion(Integer) - Method in class packages.config.Config
-
- setVersion(Integer) - Method in class packages.error.Error
-
- setVersion(Integer) - Method in class packages.finish.Finish
-
- setVersion(Integer) - Method in class packages.general.General
-
- setVersion(Integer) - Method in class packages.login.Login
-
- setVersion(Integer) - Method in class packages.start.Start
-
- setVersion(Integer) - Method in class packages.update.Update
-
- setVersion(Integer) - Method in class packages.validation.Validation
-
- setVersion(Integer) - Method in class packages.waiting.Wait
-
- setVisitor(WarriorServerThread) - Method in class tcpService.GamingPlattform
-
reference a new visitor
- setWarriorName(String) - Method in class serverControl.ConnectedPerson
-
if you wish, you can also keep the meta warrioname for every player the
warriorname is something like "imp"
- setWinner(Integer) - Method in class serverControl.DataStorage
-
the winner of the game with an index on which position the player
send his code to the engine so set 0 if it is not calculated jet
set 1...n for which player won the game
set -1 for a draw
and -2 if you are calculating at the moment
- setWinner(WarriorServerThread) - Method in class tcpService.GamingPlattform
-
if you want to set up an client that you know as the winner
- setWinner(ArrayList<WarriorServerThread>) - Method in class tcpService.GamingPlattform
-
if you want to set up the winner through the progress with a reference to
a list of players
- setWinner() - Method in class tcpService.GamingPlattform
-
and if you want to update the winner call this function
- slt(int, Instruction, RedCodeArrayList<Instruction>) - Static method in class mars.Command
-
slt
Computes a skip of the next instruction if the content of field A is less than content of field B
- spl(int, Instruction, RedCodeArrayList<Instruction>, Players) - Static method in class mars.Command
-
spl
it adds the address in field A as a new process to an alternating list of processes.
- Start - Class in packages.start
-
It is a pattern for the package "Start"
- Start() - Constructor for class packages.start.Start
-
- startGame() - Method in class mars.Interpreter
-
startGame
Processes the actual game on the playing field (core) in a loop until one player wins or the counter limit is
reached (DRAW).
- startServerConnection(int) - Method in class serverControl.ServerController
-
This method is for binding the Client to the Server
- startServerInThread() - Method in class tcpService.NetworkConnectorForServer
-
let this server run as a separate thread so that rest of the program can
run separate of this tcp connection
- stop() - Method in class tcpService.NetworkConnectorForServer
-
this method is for ending up the hole tcp service and terminating the
thread it is working on
- sub(int, Instruction, RedCodeArrayList<Instruction>) - Static method in class mars.Command
-
sub
subtracts the content addressed in field A from the content addressed in field B.the same instruction ID as
committed for further incrementing