ch.sahits.game
Class Client

java.lang.Object
  extended by ch.sahits.game.Client
All Implemented Interfaces:
ch.sahits.game.openpatrician.client.IClient

public class Client
extends Object
implements ch.sahits.game.openpatrician.client.IClient

Client representation of the game

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Sep 18, 2011

Field Summary
private  List<ch.sahits.game.openpatrician.model.IPlayer> competitor
           
private  ch.sahits.game.openpatrician.model.IGame game
           
private  ch.sahits.game.openpatrician.model.IPlayer player
           
 
Constructor Summary
Client(ch.sahits.game.openpatrician.model.IPlayer player)
           
 
Method Summary
 void addCompetitor(ch.sahits.game.openpatrician.model.IPlayer player)
           
 ch.sahits.game.openpatrician.model.IGame getGame()
           
 ch.sahits.game.openpatrician.model.IMap getGameMap()
           
 ch.sahits.game.openpatrician.model.IPlayer getPlayer()
           
 void initGame(ch.sahits.game.openpatrician.model.IGame game)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

player

private final ch.sahits.game.openpatrician.model.IPlayer player

game

private ch.sahits.game.openpatrician.model.IGame game

competitor

private List<ch.sahits.game.openpatrician.model.IPlayer> competitor
Constructor Detail

Client

public Client(ch.sahits.game.openpatrician.model.IPlayer player)
Method Detail

getPlayer

public ch.sahits.game.openpatrician.model.IPlayer getPlayer()
Specified by:
getPlayer in interface ch.sahits.game.openpatrician.client.IClient

getGameMap

public ch.sahits.game.openpatrician.model.IMap getGameMap()
Specified by:
getGameMap in interface ch.sahits.game.openpatrician.client.IClient

initGame

public void initGame(ch.sahits.game.openpatrician.model.IGame game)
Specified by:
initGame in interface ch.sahits.game.openpatrician.client.IClient

addCompetitor

public void addCompetitor(ch.sahits.game.openpatrician.model.IPlayer player)
Specified by:
addCompetitor in interface ch.sahits.game.openpatrician.client.IClient

getGame

public ch.sahits.game.openpatrician.model.IGame getGame()
Specified by:
getGame in interface ch.sahits.game.openpatrician.client.IClient


Copyright © 2011 Sahits GmbH. All Rights Reserved.