Serialized Form
-
Package model.logic.host
-
Class model.logic.host.GameManager
class GameManager extends Object implements Serializable-
Serialized Fields
-
calculationServerIp
String calculationServerIp
-
calculationServerPort
int calculationServerPort
-
gameData
GameData gameData
-
host
HostServer host
-
turnManager
TurnManager turnManager
-
-
-
Class model.logic.host.GuestHandler
class GuestHandler extends Object implements Serializable-
Serialized Fields
-
stillPlaying
boolean stillPlaying
-
-
-
Class model.logic.host.MySocket
class MySocket extends Object implements Serializable-
Serialization Methods
-
readObject
The readObject function is used to read the object from a stream.- Parameters:
in- in Read the object from the stream- Throws:
IOExceptionClassNotFoundException
-
writeObject
The writeObject function is used to write the object's state to a stream. This function is called by ObjectOutputStream when an object needs to be written out. The default implementation of this method in ObjectOutputStream calls the writeObjectOverride() method of class ObjectOutputStream, which in turn calls the defaultWriteObject() method of this class.- Parameters:
out- out Write the object to a file- Throws:
IOException
-
-
-
Class model.logic.host.TurnManager
class TurnManager extends Object implements Serializable
-
-
Package model.logic.host.data
-
Class model.logic.host.data.Board
class Board extends Object implements Serializable -
Class model.logic.host.data.GameData
class GameData extends Object implements Serializable -
Class model.logic.host.data.Player
class Player extends Object implements Serializable -
Class model.logic.host.data.Tile
class Tile extends Object implements Serializable-
Serialized Fields
-
letter
char letter
-
score
int score
-
-
-
Class model.logic.host.data.Tile.Bag
class Bag extends Object implements Serializable-
Serialized Fields
-
remainingLetters
int[] remainingLetters
-
tiles
Tile[] tiles
-
-
-
Class model.logic.host.data.Word
class Word extends Object implements Serializable-
Serialized Fields
-
col
int col
-
row
int row
-
tiles
Tile[] tiles
-
vertical
boolean vertical
-
-
-
-
Package model.logic.server
-
Class model.logic.server.HostServer
class HostServer extends MyServer implements Serializable-
Serialized Fields
-
clients
Map<Integer,
MySocket> clients -
clientsModelReceiver
Map<Integer,
MySocket> clientsModelReceiver -
gameIsRunning
boolean gameIsRunning
-
server
MyServerSocket server
-
timerTask
MyTimerTask timerTask
-
turnTimer
MyTimer turnTimer
-
-
-
Class model.logic.server.MyServer
class MyServer extends Object implements Serializable-
Serialized Fields
-
clientHandler
ClientHandler clientHandler
-
port
int port
-
stop
boolean stop
-
-
-
Class model.logic.server.MyServerSocket
class MyServerSocket extends Object implements Serializable-
Serialization Methods
-
readObject
The readObject function is used to read the object from a stream.- Parameters:
in- in Read the object from the stream- Throws:
IOExceptionClassNotFoundException
-
writeObject
The writeObject function is used to write the object's state to a stream. This function is called by ObjectOutputStream when an object needs to be written out. The default implementation of this method in ObjectOutputStream calls the methods of DataOutput, which writes primitive data types and Strings in a machine-independent format.- Parameters:
out- out Write the object to a file- Throws:
IOException
-
-
-
Class model.logic.server.MyTimer
class MyTimer extends Object implements Serializable-
Serialization Methods
-
readObject
The readObject function is used to read the object from a stream.- Parameters:
in- in Read the object from a file- Throws:
IOExceptionClassNotFoundException
-
writeObject
The writeObject function is used to write the object's state to a stream. This function is called by ObjectOutputStream when an object needs to be written out. The default implementation of this method in ObjectOutputStream calls the writeObjectOverride() method of class ObjectOutputStream, which in turn calls the defaultWriteObject() method of this class.- Parameters:
out- out Write the object to a file- Throws:
IOException
-
-
-
Class model.logic.server.MyTimerTask
class MyTimerTask extends Object implements Serializable-
Serialization Methods
-
readObject
The readObject function is used to read the object from a stream. It is called when an object is deserialized. The default implementation of this function in ObjectInputStream does nothing, but it can be overridden by subclasses to customize the behavior of class-specific data written by writeObject and read by multiple calls to readObject.- Parameters:
in- in Read the object from a file- Throws:
IOExceptionClassNotFoundException
-
writeObject
The writeObject function is used to write the object's state to a stream. This function is called by ObjectOutputStream when an object needs to be written out. The default implementation of this method in ObjectOutputStream calls the methods writeObjectOverride and writeFields, which you can override in your class as needed.- Parameters:
out- out Write the object to a file- Throws:
IOException
-
-
-
-
Package view.data
-
Class view.data.GameModelReceiver
class GameModelReceiver extends Observable implements Serializable-
Serialized Fields
-
inFromServer
BufferedInputStream inFromServer
-
server
MySocket server
-
updatedModel
GameManager updatedModel
-
-
-