org.deken.game.map
Class Section

java.lang.Object
  extended by org.deken.game.map.Section
Direct Known Subclasses:
TileSection

public abstract class Section
extends java.lang.Object

Title: Section

Description: TODO

Copyright: Copyright (c) Jan 21, 2012

Version:
1.0
Author:
Gary Deken

Field Summary
protected  MapSize mapSize
           
 
Constructor Summary
Section()
           
 
Method Summary
abstract  Decor addTile(Decor decor, GameLocation gameLocation)
          Add a Tile to the specified location.
 MapSize getMapSize()
           
 java.lang.String getName()
           
abstract  SectionElement getNextTile()
           
abstract  boolean hasNextTile()
           
abstract  void reset()
           
 void setMapSize(MapSize mapSize)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapSize

protected MapSize mapSize
Constructor Detail

Section

public Section()
Method Detail

addTile

public abstract Decor addTile(Decor decor,
                              GameLocation gameLocation)
Add a Tile to the specified location. This method should be synchronized.

Parameters:
decor - Decor
gameLocation - GameLocation
Returns:
Decor Returns the copied Decor

hasNextTile

public abstract boolean hasNextTile()

getNextTile

public abstract SectionElement getNextTile()

getMapSize

public MapSize getMapSize()
Returns:
MapSize

getName

public java.lang.String getName()
Returns:
String

reset

public abstract void reset()

setMapSize

public void setMapSize(MapSize mapSize)
Parameters:
mapSize - MapSize

setName

public void setName(java.lang.String name)
Parameters:
name - String