ch.sahits.game.openpatrician.model
Class GameMap

java.lang.Object
  extended by ch.sahits.game.openpatrician.model.GameMap
All Implemented Interfaces:
IMap

 class GameMap
extends Object
implements IMap

Implementation of the game map.

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

Field Summary
private  LinkedList<ICity> cities
           
 
Constructor Summary
GameMap(ICity... cities)
          Initialize the map by means of a list of its cities.
 
Method Summary
 List<ICity> getCities()
          Retrieve an unmodifiable list of all the cities in the map
 int getNumberCities()
          Retrieve the number of cities that are on the map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cities

private final LinkedList<ICity> cities
Constructor Detail

GameMap

public GameMap(ICity... cities)
Initialize the map by means of a list of its cities.

Parameters:
cities -
Method Detail

getNumberCities

public int getNumberCities()
Description copied from interface: IMap
Retrieve the number of cities that are on the map.

Specified by:
getNumberCities in interface IMap
Returns:

getCities

public List<ICity> getCities()
Description copied from interface: IMap
Retrieve an unmodifiable list of all the cities in the map

Specified by:
getCities in interface IMap
Returns:


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