Group 7

Group Name: JORBA

Interface Document

 

GameServer

 

Methods (behavior)

-         JoinGame() (return player ID, reference to a Game Object)

 

Attributes

-         Collection of game objects

-         Number of players

-         Player ID Counter

 

Exception

-         Too many games

-         Server unavailable

-         Too many clients

-         COMM failure

 

 

Game

 

Methods (behavior)

-         IsGameStarted()

-         ExitGame() (return player ID if success, -1 if fail)

-         Update(command) (client will send the command to the server, server will response with game state)

 

Attributes

-         Whether or not the game is started

-         Number of players in the game

-         Game ID

-         Reference to the parent GameServer object

-         Time

-         Round number

 

Exception

-         Game does not exist

-         Invalid player ID

-         Invalid Command

-         Database unavailable

-         COMM failure