|
|||||||||
| Home >> All >> org >> metacosm >> framework >> [ server overview ] | PREV NEXT | ||||||||
A
- ACTION_POOL_ACTIONS_IMPL_LIST_FILE - Static variable in class org.metacosm.framework.server.Configuration
- ADMINCON_PINGDELAY - Static variable in class org.metacosm.framework.server.Configuration
- ALREADY_CONNECTED - Static variable in class org.metacosm.framework.server.Configuration
- AdminCommandStreamParser - class org.metacosm.framework.server.AdminCommandStreamParser.
- AdminCommandStreamParser(boolean) - Constructor for class org.metacosm.framework.server.AdminCommandStreamParser
- AdminCommandStreamParser(String, boolean) - Constructor for class org.metacosm.framework.server.AdminCommandStreamParser
- AdminConsoleConnection - class org.metacosm.framework.server.AdminConsoleConnection.
- AdminConsoleConnection provides connection to the game via the admin console protocol.
- AdminConsoleConnection(Socket) - Constructor for class org.metacosm.framework.server.AdminConsoleConnection
- If the connection is established, the game will keep the socket.
- AdminConsoleServer - class org.metacosm.framework.server.AdminConsoleServer.
- Server waiting for admin console protocol connections.
- AdminConsoleServer(int) - Constructor for class org.metacosm.framework.server.AdminConsoleServer
- The AdminConsoleServer listens to a port.
- actionPool - Variable in class org.metacosm.framework.server.Game
- Pool of all actions in the game
- add(Map, Object, Object) - Method in class org.metacosm.framework.server.Game
- Used to add objects in private tables.
- addController(Controller) - Method in class org.metacosm.framework.server.Game
- Adds a controller to the game.
- addEntity(Entity) - Method in class org.metacosm.framework.server.Game
- Adds an Entity.
- addInfluence(Influence) - Method in class org.metacosm.framework.server.Game
- Adds an Influence.
- addInfluence(Entity, Influence) - Method in class org.metacosm.framework.server.Game
- Adds an Influence to an Entity.
- addModifier(String, String, AbsoluteModifier) - Method in class org.metacosm.framework.server.Game
- Adds an AbsoluteModifier to a Property in an Influence.
- addModifier(String, String, RelativeModifier) - Method in class org.metacosm.framework.server.Game
- Adds a RelativeModifier to a Property in an Influence.
- addPasswdEntry(String, String) - Method in class org.metacosm.framework.server.Game
- Adds a login and a password to the passwords file.
- addPlayer(Player) - Method in class org.metacosm.framework.server.Game
- Adds a player to the game.
- addProperty(String, String) - Method in class org.metacosm.framework.server.Game
- Declares a Property in an Influence.
- addProperty(Property) - Method in class org.metacosm.framework.server.Game
- Adds a Property.
- addWorld(World) - Method in class org.metacosm.framework.server.Game
- Adds a world to the game.
- adminMessageReceived(AdminMessage) - Method in class org.metacosm.framework.server.Logger
- adminServer - Variable in class org.metacosm.framework.server.Game
- The console server for Admin console protocol
- authorized(String, String) - Method in class org.metacosm.framework.server.Game
B
- BAD_ANSWER_FROM_TELNET - Static variable in class org.metacosm.framework.server.Configuration
C
- COMMANDS_MANAGER_CONTROLLER_COMMANDS_FILE - Static variable in class org.metacosm.framework.server.Configuration
- COMMANDS_MANAGER_ERROR - Static variable in class org.metacosm.framework.server.Configuration
- COMMANDS_MANAGER_PLAYER_COMMANDS_FILE - Static variable in class org.metacosm.framework.server.Configuration
- COMMAND_BAD_PARAMETER - Static variable in class org.metacosm.framework.server.Configuration
- COMMAND_INAPPLICABLE - Static variable in class org.metacosm.framework.server.Configuration
- COMMAND_NOT_ENOUGH_PARAMETERS - Static variable in class org.metacosm.framework.server.Configuration
- COMMAND_TOO_MANY_PARAMETERS - Static variable in class org.metacosm.framework.server.Configuration
- COMMAND_UNEXPECTED_PARAMETER - Static variable in class org.metacosm.framework.server.Configuration
- COMMAND_UNKNOWN_ERROR - Static variable in class org.metacosm.framework.server.Configuration
- CONFIG_FILE - Static variable in class org.metacosm.framework.server.Configuration
- Contains the name of the configuration file.
- CONNECTION_REJECTED - Static variable in class org.metacosm.framework.server.Configuration
- CORRUPTED_PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
- ClientConnection - class org.metacosm.framework.server.ClientConnection.
- ClientConnection provides connection to the game via the Client UI protocol.
- ClientConnection(Socket) - Constructor for class org.metacosm.framework.server.ClientConnection
- ClientGameServer - class org.metacosm.framework.server.ClientGameServer.
- Server waiting for Client UI protocol connections.
- ClientGameServer(int) - Constructor for class org.metacosm.framework.server.ClientGameServer
- The ClientGameServer listens to a port.
- Configuration - class org.metacosm.framework.server.Configuration.
- Provides all the configuration of the game, by reading the configuration file.
All the public static final String are used to name parameters.
It's also a Singleton OOD pattern. - Configuration() - Constructor for class org.metacosm.framework.server.Configuration
- The constructor is private because of singleton pattern.
Reads the configuration file and exits in case of exception. - Connection - class org.metacosm.framework.server.Connection.
- Mother class of SimpleConnection and ClientConnection
- Connection(Socket) - Constructor for class org.metacosm.framework.server.Connection
- If the connection is established, the game will keep the socket.
- canonical - Variable in class org.metacosm.framework.server.AdminCommandStreamParser
- Canonical output
- characters(char[], int, int) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- Characters
- clientServer - Variable in class org.metacosm.framework.server.Game
- The game server for client UI protocl
- close() - Method in class org.metacosm.framework.server.AdminConsoleConnection
- closePasswdFile(FileInputStream) - Method in class org.metacosm.framework.server.Game
- Closes the passwords file
- closeSocket() - Method in class org.metacosm.framework.server.Player
- Closes the connection of the player, by closing the socket.
- command - Variable in class org.metacosm.framework.server.Player
- If non null, contains the next command of the player.
- configuration - Static variable in class org.metacosm.framework.server.Configuration
- The instance of the class.
- configuration - Static variable in class org.metacosm.framework.server.Game
- The configuration manager
- connect(String, Socket, BufferedReader, PrintStream) - Method in class org.metacosm.framework.server.Game
- Adds to the game the player connected via a socket, with the given login, input and output for the socket.
- connect(String, String, Socket, BufferedReader, PrintStream) - Method in class org.metacosm.framework.server.Game
- Adds to the game the player connected via a socket, with the given login, password, input and output for the socket.
- connectionHandler - Variable in class org.metacosm.framework.server.GameServer
- connections - Variable in class org.metacosm.framework.server.AdminConsoleServer
- controller - Variable in class org.metacosm.framework.server.Player
- Controller of character entity
- controllers - Variable in class org.metacosm.framework.server.Game
- All the controllers
- correctLogin(String) - Method in class org.metacosm.framework.server.Game
- correctPassword(String) - Method in class org.metacosm.framework.server.Game
- createAdminConsoleServer(int) - Static method in class org.metacosm.framework.server.Factory
- createClientGameServer(int) - Static method in class org.metacosm.framework.server.Factory
- createInstance(long) - Static method in class org.metacosm.framework.server.GameClock
- Creates a GameClock.
- createParser() - Static method in class org.metacosm.framework.server.Factory
- createRandomGenerator() - Static method in class org.metacosm.framework.server.Factory
- createSchedule() - Static method in class org.metacosm.framework.server.Factory
- createSimpleGameServer(int) - Static method in class org.metacosm.framework.server.Factory
- createStandardEntities() - Method in class org.metacosm.framework.server.Game
- createWorld(String) - Static method in class org.metacosm.framework.server.Factory
D
- DEFAULT_PARSER_NAME - Static variable in class org.metacosm.framework.server.AdminCommandStreamParser
- Default parser name
- data - Static variable in class org.metacosm.framework.server.Configuration
- Used to contain configuration in memory, and to save and load it.
- disconnect(Player) - Method in class org.metacosm.framework.server.Game
- Disconnects a player from the game.
- disconnectedPlayerControllers - Variable in class org.metacosm.framework.server.Game
- controllers of all disconnected players
- dispatchEvent(String) - Method in class org.metacosm.framework.server.AdminConsoleServer
- doProcessTurn() - Method in class org.metacosm.framework.server.Scheduler
- This method must implement a GameLoop algorithm.
E
- echoOff - Static variable in class org.metacosm.framework.server.SimpleConnection
- echoOn - Static variable in class org.metacosm.framework.server.SimpleConnection
- endElement(String, String, String) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- End element
- entities - Variable in class org.metacosm.framework.server.Game
- All the entities
- error(SAXParseException) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- Error
- execute(ControllerCommand, ArrayList) - Method in class org.metacosm.framework.server.Player
- Executes a given command with its parameters, as a player command.
- execute(PlayerCommand, ArrayList) - Method in class org.metacosm.framework.server.Player
- Executes a given command with its parameters, as a controller command..
F
- FRAMEWORK_BASED_ON - Static variable in class org.metacosm.framework.server.Configuration
- FRAMEWORK_COPYRIGHT - Static variable in class org.metacosm.framework.server.Configuration
- FRAMEWORK_WEBSITE - Static variable in class org.metacosm.framework.server.Configuration
- Factory - class org.metacosm.framework.server.Factory.
- Factory() - Constructor for class org.metacosm.framework.server.Factory
- No public constructor
- falseAddPlayer(Player) - Method in class org.metacosm.framework.server.Game
- Puts a player in a waiting list for add.
- falseDisconnect(Player) - Method in class org.metacosm.framework.server.Game
- Player waiting for disconnect
- falseRemovePlayer(Player) - Method in class org.metacosm.framework.server.Game
- Puts a player in a waiting list for remove.
- fatalError(SAXParseException) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- Fatal error
- findPasswdData(String, BufferedReader) - Method in class org.metacosm.framework.server.Game
- forever - Variable in class org.metacosm.framework.server.AdminConsoleConnection
G
- GAME_ADMIN_PORT - Static variable in class org.metacosm.framework.server.Configuration
- GAME_BAD_PORTS - Static variable in class org.metacosm.framework.server.Configuration
- GAME_CLIENT_PORT - Static variable in class org.metacosm.framework.server.Configuration
- GAME_COPYRIGHT - Static variable in class org.metacosm.framework.server.Configuration
- GAME_LOAD_FAILED - Static variable in class org.metacosm.framework.server.Configuration
- GAME_PREFIX - Static variable in class org.metacosm.framework.server.Configuration
- GAME_SERVER_ERROR - Static variable in class org.metacosm.framework.server.Configuration
- GAME_SERVER_READY - Static variable in class org.metacosm.framework.server.Configuration
- GAME_SERVER_STOPPED - Static variable in class org.metacosm.framework.server.Configuration
- GAME_SIMPLE_PORT - Static variable in class org.metacosm.framework.server.Configuration
- GAME_WEBSITE - Static variable in class org.metacosm.framework.server.Configuration
- Game - class org.metacosm.framework.server.Game.
- In one word, that's the game...
- Game() - Constructor for class org.metacosm.framework.server.Game
- Loads configuration, starts logger, creates a randomizer, a parser, the two gameservers for telnet and client UI protocols and the admin server.
- Game.PasswdData - class org.metacosm.framework.server.Game.PasswdData.
- Stores a passwords file entry (i.e.
- Game.PasswdData(String, String) - Constructor for class org.metacosm.framework.server.Game.PasswdData
- GameClock - class org.metacosm.framework.server.GameClock.
- This class count the number of turns elapsed in a Game.
- GameClock(long) - Constructor for class org.metacosm.framework.server.GameClock
- The constructor for this GameClock.
- GameServer - class org.metacosm.framework.server.GameServer.
- Server waiting for connections
- GameServer(int) - Constructor for class org.metacosm.framework.server.GameServer
- The GameServer is associated with a Game and listens to a port.
- GameServer.ConnectionHandler - class org.metacosm.framework.server.GameServer.ConnectionHandler.
- GameServer.ConnectionHandler() - Constructor for class org.metacosm.framework.server.GameServer.ConnectionHandler
- gameClock - Static variable in class org.metacosm.framework.server.GameClock
- The unique instance of GameClock
- getActionPoolInstance() - Method in class org.metacosm.framework.server.Game
- getAdminConsoleServer() - Method in class org.metacosm.framework.server.Game
- Get reference to the game's AdminServer.
- getCommand() - Method in class org.metacosm.framework.server.Player
- If the next command isn't available, parses input string to find a new one, else return the next command.
When parsing, it filters control characters and avoid spam. - getConnection(Socket) - Method in class org.metacosm.framework.server.AdminConsoleServer
- getConnection(Socket) - Method in class org.metacosm.framework.server.ClientGameServer
- getConnection(Socket) - Method in class org.metacosm.framework.server.GameServer
- getConnection(Socket) - Method in class org.metacosm.framework.server.SimpleGameServer
- getController(Integer) - Method in class org.metacosm.framework.server.Game
- getController() - Method in class org.metacosm.framework.server.Player
- Getter for property controller.
- getControllerIdsIterator() - Method in class org.metacosm.framework.server.Game
- getControllerIterator() - Method in class org.metacosm.framework.server.Game
- getEntity(Integer) - Method in class org.metacosm.framework.server.Game
- getEntityIdsIterator() - Method in class org.metacosm.framework.server.Game
- getInfluence(String) - Method in class org.metacosm.framework.server.Game
- getInfluenceNamesIterator() - Method in class org.metacosm.framework.server.Game
- getInstance() - Static method in class org.metacosm.framework.server.Configuration
- getInstance() - Static method in class org.metacosm.framework.server.Game
- getInstance() - Static method in class org.metacosm.framework.server.GameClock
- Gets the unique instance of GameClock
- getInstance() - Static method in class org.metacosm.framework.server.InstanceSettings
- getInstance() - Static method in class org.metacosm.framework.server.Logger
- getInstancePlayerCharacterSetup() - Method in class org.metacosm.framework.server.InstanceSettings
- getInstanceSettingsInstance() - Method in class org.metacosm.framework.server.Game
- getInteractPoolInstance() - Method in class org.metacosm.framework.server.Game
- getLocationString(SAXParseException) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- getMediaPoolInstance() - Method in class org.metacosm.framework.server.Game
- getName() - Method in class org.metacosm.framework.server.Player
- getPlayer(String) - Method in class org.metacosm.framework.server.Game
- getPlayerNamesIterator() - Method in class org.metacosm.framework.server.Game
- getPlayersIterator() - Method in class org.metacosm.framework.server.Game
- getProperty(String) - Method in class org.metacosm.framework.server.Game
- getPropertyNamesIterator() - Method in class org.metacosm.framework.server.Game
- getPropertyValue(String, int) - Method in class org.metacosm.framework.server.Scheduler
- Get configuration for a property.
- getString(String) - Method in class org.metacosm.framework.server.Configuration
- getTime() - Method in class org.metacosm.framework.server.GameClock
- Gets the current time.
- getTurnCounter() - Method in class org.metacosm.framework.server.Scheduler
- Getter for turnCounter
- getWorld(String) - Method in class org.metacosm.framework.server.Game
- getWorldNamesIterator() - Method in class org.metacosm.framework.server.Game
I
- ID_SERVER_PREFIX - Static variable in class org.metacosm.framework.server.Configuration
- INCORRECT_LOGIN - Static variable in class org.metacosm.framework.server.Configuration
- INCORRECT_PASSWORD - Static variable in class org.metacosm.framework.server.Configuration
- IOE_IN_PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
- InstanceSettings - class org.metacosm.framework.server.InstanceSettings.
- InstanceSettings() - Constructor for class org.metacosm.framework.server.InstanceSettings
- Creates new InstanceSettings.
- ignorableWhitespace(char[], int, int) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- Ignorable whitespace
- influences - Variable in class org.metacosm.framework.server.Game
- All the influences
- init() - Method in class org.metacosm.framework.server.Game
- Initializes static and transient attributes
- input - Variable in class org.metacosm.framework.server.AdminConsoleConnection
- input - Variable in class org.metacosm.framework.server.Player
- Input stream of the socket
- inputLength - Variable in class org.metacosm.framework.server.Player
- Size of the input string
- inputString - Variable in class org.metacosm.framework.server.Player
- String coming from the socket
- instance - Static variable in class org.metacosm.framework.server.Game
- Instance for singleton
- instance - Static variable in class org.metacosm.framework.server.InstanceSettings
- instancePlayerCharacterSetup - Variable in class org.metacosm.framework.server.InstanceSettings
- instanceSettings - Variable in class org.metacosm.framework.server.Game
- Game instance configuration
- intentionalStop - Variable in class org.metacosm.framework.server.GameServer
- interactPool - Variable in class org.metacosm.framework.server.Game
- Recycling facility for interaction data containers
- isAlive - Variable in class org.metacosm.framework.server.Game
- Server state
- isAlive() - Method in class org.metacosm.framework.server.Game
L
- LAST_TRY_PASSWORD - Static variable in class org.metacosm.framework.server.Configuration
- LIMBO_DESCRIPTION - Static variable in class org.metacosm.framework.server.Configuration
- LOGIN - Static variable in class org.metacosm.framework.server.Configuration
- LOG_CONNECTION_EXCEPTION - Static variable in class org.metacosm.framework.server.Configuration
- LOG_CONNECTION_REJECTED - Static variable in class org.metacosm.framework.server.Configuration
- LOG_CRIT - Static variable in class org.metacosm.framework.server.Logger
- Critical level
- LOG_EMERG - Static variable in class org.metacosm.framework.server.Logger
- Emergency level
- LOG_ERR - Static variable in class org.metacosm.framework.server.Logger
- Error level
- LOG_FILE - Static variable in class org.metacosm.framework.server.Configuration
- LOG_INCORRECT_PASSWORD - Static variable in class org.metacosm.framework.server.Configuration
- LOG_INFO - Static variable in class org.metacosm.framework.server.Logger
- Info level
- LOG_NEW_PLAYER_CONNECTED - Static variable in class org.metacosm.framework.server.Configuration
- LOG_NOTICE - Static variable in class org.metacosm.framework.server.Logger
- Notice level
- LOG_PLAYER_ALREADY_CONNECTED - Static variable in class org.metacosm.framework.server.Configuration
- LOG_PLAYER_CONNECTED - Static variable in class org.metacosm.framework.server.Configuration
- LOG_START_ERROR - Static variable in class org.metacosm.framework.server.Configuration
- LOG_START_OK - Static variable in class org.metacosm.framework.server.Configuration
- LOG_WARNING - Static variable in class org.metacosm.framework.server.Logger
- Warning level
- Logger - class org.metacosm.framework.server.Logger.
- Used to save all good and bad things happening.
It's also a Singleton OOD pattern. - Logger() - Constructor for class org.metacosm.framework.server.Logger
- The constructor is private because of singleton pattern.
It sets the path and the stream for the log file, with values from a Configuration object.
Default values are "stderr" and "System.err". - load(InputStream) - Method in class org.metacosm.framework.server.Game
- load(InputStream) - Method in class org.metacosm.framework.server.InstanceSettings
- Loads from the stream.
- load(InputStream) - Method in class org.metacosm.framework.server.Player
- log(int, String) - Method in class org.metacosm.framework.server.Logger
- Send msg to the event system
For now levels are not implemented (need event tree structure) - logFilePath - Static variable in class org.metacosm.framework.server.Logger
- Path for the log file.
- logger - Variable in class org.metacosm.framework.server.Game
- Logs all good and bad things
- logger - Static variable in class org.metacosm.framework.server.Logger
- The instance of the class.
- login - Variable in class org.metacosm.framework.server.Game.PasswdData
M
- MAX_INPUT_STRING - Static variable in class org.metacosm.framework.server.Player
- Max size for an input line
A such limit is to avoid spamming the server. - MAX_RESERVED_EID - Static variable in class org.metacosm.framework.server.Configuration
- MAX_THREAD_DURATION - Static variable in class org.metacosm.framework.server.Scheduler
- MAX_TURN_DURATION - Static variable in class org.metacosm.framework.server.Scheduler
- MCEventReceived(MCEvent) - Method in class org.metacosm.framework.server.Logger
- MIN_THREAD_DURATION - Static variable in class org.metacosm.framework.server.Scheduler
- MIN_TURN_DURATION - Static variable in class org.metacosm.framework.server.Scheduler
- maxThreadDuration - Variable in class org.metacosm.framework.server.Scheduler
- maxThreadDurationProperty - Static variable in class org.metacosm.framework.server.Scheduler
- maxTimeoutEx - Static variable in class org.metacosm.framework.server.AdminConsoleConnection
- maxTurnDuration - Variable in class org.metacosm.framework.server.Scheduler
- maxTurnDurationProperty - Static variable in class org.metacosm.framework.server.Scheduler
- mediaPool - Variable in class org.metacosm.framework.server.Game
- Pool of all defined media in the game
- minThreadDuration - Variable in class org.metacosm.framework.server.Scheduler
- minThreadDurationProperty - Static variable in class org.metacosm.framework.server.Scheduler
- minTurnDuration - Variable in class org.metacosm.framework.server.Scheduler
- minTurnDurationProperty - Static variable in class org.metacosm.framework.server.Scheduler
- monitor - Static variable in class org.metacosm.framework.server.Logger
- Stream for writing logs.
N
- NEW_PASSWORD - Static variable in class org.metacosm.framework.server.Configuration
- NEW_PLAYER - Static variable in class org.metacosm.framework.server.Configuration
- NEW_PLAYER_WELCOME - Static variable in class org.metacosm.framework.server.Configuration
- NO_PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
- name - Variable in class org.metacosm.framework.server.Player
- Name of the player
- nbControllers() - Method in class org.metacosm.framework.server.Game
- nbEntities() - Method in class org.metacosm.framework.server.Game
- nbInfluences() - Method in class org.metacosm.framework.server.Game
- nbPlayers() - Method in class org.metacosm.framework.server.Game
- nbProperties() - Method in class org.metacosm.framework.server.Game
- nbTimeoutEx - Variable in class org.metacosm.framework.server.AdminConsoleConnection
- nbWorlds() - Method in class org.metacosm.framework.server.Game
- newPlayer(String, InputStream, BufferedReader, PrintStream) - Method in class org.metacosm.framework.server.SimpleConnection
- Manages connection for new players.
- nonStop - Variable in class org.metacosm.framework.server.GameServer.ConnectionHandler
- nonStop - Variable in class org.metacosm.framework.server.Schedule
- A variable to allow the thread to end.
O
- oldPlayer(String, InputStream, BufferedReader, PrintStream) - Method in class org.metacosm.framework.server.SimpleConnection
- Manages connection for an old player (i.e.
- openPasswdFile() - Method in class org.metacosm.framework.server.Game
- Opens the passwords file and return a FileInputStream or null.
- org.metacosm.framework.server - package org.metacosm.framework.server
- out - Variable in class org.metacosm.framework.server.AdminCommandStreamParser
- Print writer
- output - Variable in class org.metacosm.framework.server.AdminConsoleConnection
- output - Variable in class org.metacosm.framework.server.Player
- Output stream of the socket
P
- PARSER_BAD_COMMAND_DELIMITER - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_BAD_STRING_AND_COMMAND_DELIMITERS - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_BAD_STRING_DELIMITER - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_COMMANDS_DELIMITER - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_EMPTY_STRING - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_EXPECTED_COMMAND - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_INVALID_PARAMETER - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_STRING_DELIMITER - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_UNEXPECTED_STRING - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_UNFINISHED_STRING - Static variable in class org.metacosm.framework.server.Configuration
- PARSER_UNKNOWN_COMMAND - Static variable in class org.metacosm.framework.server.Configuration
- PASSWD_DELIMITER - Static variable in class org.metacosm.framework.server.Configuration
- PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
- PASSWORD - Static variable in class org.metacosm.framework.server.Configuration
- PLAYER_LINE_TOO_LONG - Static variable in class org.metacosm.framework.server.Configuration
- Player - class org.metacosm.framework.server.Player.
- Defines a player.
- Player(CharacterController, String, Socket, BufferedReader, PrintStream) - Constructor for class org.metacosm.framework.server.Player
- A Player is connected to a game via his/her/its/per name, socket, input and output streams.
- Player(CharacterController, String, String, Socket, BufferedReader, PrintStream) - Constructor for class org.metacosm.framework.server.Player
- A Player is connected to a game via his/her/its/per name, password, socket, input and output streams.
- PlayerCharacterSetup - interface org.metacosm.framework.server.PlayerCharacterSetup.
- parse(InputSource, boolean) - Static method in class org.metacosm.framework.server.AdminCommandStreamParser
- Prints the output from the SAX callbacks.
- parser - Variable in class org.metacosm.framework.server.Game
- Used to parse streams from players
- passwd - Variable in class org.metacosm.framework.server.Game.PasswdData
- passwdFile - Variable in class org.metacosm.framework.server.Game
- Password file
- pause() - Method in class org.metacosm.framework.server.Schedule
- Pauses the loop.
- playerExists(String) - Method in class org.metacosm.framework.server.Game
- playerOnLine(String) - Method in class org.metacosm.framework.server.Game
- players - Variable in class org.metacosm.framework.server.Game
- All the connected players
- pleaseStop() - Method in class org.metacosm.framework.server.AdminConsoleConnection
- pleaseStop() - Method in class org.metacosm.framework.server.AdminConsoleServer
- pleaseStop() - Method in class org.metacosm.framework.server.GameServer.ConnectionHandler
- pleaseStop() - Method in class org.metacosm.framework.server.GameServer
- port - Variable in class org.metacosm.framework.server.GameServer
- The port it's listening on.
- print(String) - Method in class org.metacosm.framework.server.Logger
- Print a message in the log file.
It's designed to be thread-safe.
The log is a date, a separator and the message. - processTurn() - Method in class org.metacosm.framework.server.Schedule
- Runs one turn.
- processTurn() - Method in class org.metacosm.framework.server.Scheduler
- Process a turn of the GameLoop and manage saves of the Game
- processingInstruction(String, String) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- Processing instruction
- properties - Variable in class org.metacosm.framework.server.Game
- All the properties
R
- RANDOM_GENERATOR_PREFIX - Static variable in class org.metacosm.framework.server.Configuration
- REENTER_PASSWORD - Static variable in class org.metacosm.framework.server.Configuration
- random - Variable in class org.metacosm.framework.server.Game
- The randomizer
- readNewPasswd(String, InputStream, BufferedReader, PrintStream) - Method in class org.metacosm.framework.server.SimpleConnection
- Reads a new password (in a non echo local mode)
- readPasswd(InputStream, BufferedReader, PrintStream) - Method in class org.metacosm.framework.server.SimpleConnection
- Reads a password (in a non echo local mode)
- record(String) - Method in class org.metacosm.framework.server.Logger
- Temporary function (1 param)
- remove(Map, Object) - Method in class org.metacosm.framework.server.Game
- Used to remove objects from private tables.
- removeConnection(AdminConsoleConnection) - Method in class org.metacosm.framework.server.AdminConsoleServer
- removeController(Controller) - Method in class org.metacosm.framework.server.Game
- Removes a controller from the game.
- removeInfluence(Entity, Influence) - Method in class org.metacosm.framework.server.Game
- Removes an Influence from an Entity.
- removePlayer(Player) - Method in class org.metacosm.framework.server.Game
- Removes a player from the game.
- removePlayer(String) - Method in class org.metacosm.framework.server.Game
- Removes a player from the game.
- removeWorld(World) - Method in class org.metacosm.framework.server.Game
- Removes a world from the game.
- resume() - Method in class org.metacosm.framework.server.Schedule
- Resumes a pause.
- run() - Method in class org.metacosm.framework.server.AdminConsoleConnection
- Provides the connection dialog for Admin Console protocol.
- run() - Method in class org.metacosm.framework.server.ClientConnection
- run() - Method in class org.metacosm.framework.server.Connection
- Provides the connection dialog.
- run() - Method in class org.metacosm.framework.server.Game
- Prints legal messages, start the two gameservers (telnet and client UI protocols) and parse players commands.
- run() - Method in class org.metacosm.framework.server.GameServer.ConnectionHandler
- run() - Method in class org.metacosm.framework.server.GameServer
- Waits for connections.
- run() - Method in class org.metacosm.framework.server.Schedule
- Implements Runnable.
- run() - Method in class org.metacosm.framework.server.SimpleConnection
- Provides the connection dialog for telnet protocol.
S
- SAVES_DIRECTORY - Static variable in class org.metacosm.framework.server.Configuration
- SAVES_DIRECTORY_IS_NOT_A_DIRECTORY - Static variable in class org.metacosm.framework.server.Configuration
- SAVES_DIRECTORY_IS_NOT_WRITABLE - Static variable in class org.metacosm.framework.server.Configuration
- SAVING_INTERVAL - Static variable in class org.metacosm.framework.server.Scheduler
- The number of turns between each save of the game
- Schedule - class org.metacosm.framework.server.Schedule.
- The scheduler for a Metacosm game.
- Schedule() - Constructor for class org.metacosm.framework.server.Schedule
- This should be the default constructor.
- Schedule(Scheduler) - Constructor for class org.metacosm.framework.server.Schedule
- It is an alternative constructor for this class.
- Scheduler - class org.metacosm.framework.server.Scheduler.
- This class is the GameLoop algorithm (see GameLoop-RFC).
- Scheduler() - Constructor for class org.metacosm.framework.server.Scheduler
- The constructor for this class.
- SimpleConnection - class org.metacosm.framework.server.SimpleConnection.
- SimpleConnection provides connection to the game via the telnet protocol.
- SimpleConnection(Socket) - Constructor for class org.metacosm.framework.server.SimpleConnection
- If the connection is established, the game will keep the socket.
- SimpleGameServer - class org.metacosm.framework.server.SimpleGameServer.
- Server waiting for telnet protocol connections.
- SimpleGameServer(int) - Constructor for class org.metacosm.framework.server.SimpleGameServer
- The SimpleGameServer listens to a port.
- save(OutputStream) - Method in class org.metacosm.framework.server.Game
- save(OutputStream) - Method in class org.metacosm.framework.server.InstanceSettings
- Saves on the stream.
- save(OutputStream) - Method in class org.metacosm.framework.server.Player
- savingInterval - Variable in class org.metacosm.framework.server.Scheduler
- savingIntervalProperty - Static variable in class org.metacosm.framework.server.Scheduler
- schedule - Variable in class org.metacosm.framework.server.Game
- the game schedule.
- scheduler - Variable in class org.metacosm.framework.server.Schedule
- The Scheduler used for the loop.
- send(String) - Method in class org.metacosm.framework.server.Player
- Sends a given string to the player.
- sendAdminMessage(String) - Method in class org.metacosm.framework.server.AdminConsoleConnection
- sendAdminMessage(String) - Method in class org.metacosm.framework.server.AdminConsoleServer
- sendAll(String) - Method in class org.metacosm.framework.server.Game
- Send a message to all connected Players TODO TEMPORARY: public before perception system
- separator - Static variable in class org.metacosm.framework.server.Logger
- String used in logs between a date and a message.
- server - Variable in class org.metacosm.framework.server.GameServer
- setCommand(String) - Method in class org.metacosm.framework.server.Player
- Sets the next command to the given string.
- setController(CharacterController) - Method in class org.metacosm.framework.server.Player
- Setter for property controller.
- setGameInstance(Game) - Method in class org.metacosm.framework.server.Game
- setInstancePlayerCharacterSetup(PlayerCharacterSetup) - Method in class org.metacosm.framework.server.InstanceSettings
- setNameSpaces - Static variable in class org.metacosm.framework.server.AdminCommandStreamParser
- setScheduler(Scheduler) - Method in class org.metacosm.framework.server.Schedule
- Sets a Scheduler.
- setSchemaSupport - Static variable in class org.metacosm.framework.server.AdminCommandStreamParser
- setValidation - Static variable in class org.metacosm.framework.server.AdminCommandStreamParser
- setupPlayer(Player) - Method in interface org.metacosm.framework.server.PlayerCharacterSetup
- simpleServer - Variable in class org.metacosm.framework.server.Game
- The game server for telnet protocol
- socket - Variable in class org.metacosm.framework.server.Connection
- The socket is used to connect the client and the server.
- socket - Variable in class org.metacosm.framework.server.Player
- Socket the player is using
- start() - Method in class org.metacosm.framework.server.Schedule
- Starts the loop.
- startDocument() - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- Start document
- startElement(String, String, String, Attributes) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- Start element
- stop() - Method in class org.metacosm.framework.server.Game
- Stops the server.
- stop() - Method in class org.metacosm.framework.server.Schedule
- Definitely stops the loop.
T
- TELNET_DO - Static variable in class org.metacosm.framework.server.SimpleConnection
- TELNET_DONT - Static variable in class org.metacosm.framework.server.SimpleConnection
- TELNET_IAC - Static variable in class org.metacosm.framework.server.SimpleConnection
- TELNET_TELOPT_ECHO - Static variable in class org.metacosm.framework.server.SimpleConnection
- TELNET_WILL - Static variable in class org.metacosm.framework.server.SimpleConnection
- TELNET_WONT - Static variable in class org.metacosm.framework.server.SimpleConnection
- THANKS_FOR_HAVING_PLAYED - Static variable in class org.metacosm.framework.server.Configuration
- THREAD_DURATION - Static variable in class org.metacosm.framework.server.Scheduler
- TURN_DURATION - Static variable in class org.metacosm.framework.server.Scheduler
- TWO_POINTS - Static variable in class org.metacosm.framework.server.Configuration
- test() - Static method in class org.metacosm.framework.server.AdminCommandStreamParser
- thread - Variable in class org.metacosm.framework.server.Schedule
- The Thread containing the loop.
- threadDuration - Variable in class org.metacosm.framework.server.Scheduler
- threadDurationProperty - Static variable in class org.metacosm.framework.server.Scheduler
- threadSuspended - Variable in class org.metacosm.framework.server.Schedule
- A variable containing the state of the loop.
- tick() - Method in class org.metacosm.framework.server.GameClock
- Updates the clock.
- time - Variable in class org.metacosm.framework.server.GameClock
- The current time
- turnCounter - Static variable in class org.metacosm.framework.server.Scheduler
- Count the number of turns elapsed since the last save
- turnDuration - Variable in class org.metacosm.framework.server.Scheduler
- turnDurationProperty - Static variable in class org.metacosm.framework.server.Scheduler
U
- UNEXPECTED_CHARACTERS_FROM_TELNET - Static variable in class org.metacosm.framework.server.Configuration
- UNREADABLE_PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
- UNWRITABLE_PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
W
- WARNING_NO_PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
- WARNING_UNREADABLE_PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
- WARNING_UNWRITABLE_PASSWD_FILE - Static variable in class org.metacosm.framework.server.Configuration
- WEAK_PASSWORD - Static variable in class org.metacosm.framework.server.Configuration
- WELCOME - Static variable in class org.metacosm.framework.server.Configuration
- waitingPlayersForAdd - Variable in class org.metacosm.framework.server.Game
- Players waiting for add
- waitingPlayersForRemove - Variable in class org.metacosm.framework.server.Game
- Players waiting for remove
- warning(SAXParseException) - Method in class org.metacosm.framework.server.AdminCommandStreamParser
- Warning