ch.sahits.game.graphic.display.model
Class ViewChangeCityPlayerProxy

java.lang.Object
  extended by ch.sahits.game.graphic.display.model.ViewChangeCityPlayerProxy
All Implemented Interfaces:
ICityPlayerProxy

public class ViewChangeCityPlayerProxy
extends Object
implements ICityPlayerProxy

Proxy object for city player for view changes.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Dec 19, 2011

Field Summary
private  ICityPlayerProxy proxy
           
private  EViewChangeEvent viewchange
           
 
Constructor Summary
ViewChangeCityPlayerProxy(ICityPlayerProxy proxy, EViewChangeEvent event)
          Constructor by making a copy of the passed proxy
 
Method Summary
 IShip getActiveShip()
          Retrieve the players active ship
 ICity getCity()
          Retrieve the city reference
 IPlayer getPlayer()
          retrieve the player reference
 List<IShip> getPlayersShips()
          Retrieve the list of all ships of the player currently in the port.
 EViewChangeEvent getViewChangeEvent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewchange

private final EViewChangeEvent viewchange

proxy

private final ICityPlayerProxy proxy
Constructor Detail

ViewChangeCityPlayerProxy

public ViewChangeCityPlayerProxy(ICityPlayerProxy proxy,
                                 EViewChangeEvent event)
Constructor by making a copy of the passed proxy

Parameters:
proxy -
Method Detail

getViewChangeEvent

public EViewChangeEvent getViewChangeEvent()

getActiveShip

public IShip getActiveShip()
Description copied from interface: ICityPlayerProxy
Retrieve the players active ship

Specified by:
getActiveShip in interface ICityPlayerProxy
Returns:

getPlayersShips

public List<IShip> getPlayersShips()
Description copied from interface: ICityPlayerProxy
Retrieve the list of all ships of the player currently in the port. The list is unmodifiable.

Specified by:
getPlayersShips in interface ICityPlayerProxy
Returns:
unmodifiable list of the players ships

getCity

public ICity getCity()
Description copied from interface: ICityPlayerProxy
Retrieve the city reference

Specified by:
getCity in interface ICityPlayerProxy
Returns:

getPlayer

public IPlayer getPlayer()
Description copied from interface: ICityPlayerProxy
retrieve the player reference

Specified by:
getPlayer in interface ICityPlayerProxy
Returns:


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.