org.deken.game.map
Class TileSection

java.lang.Object
  extended by org.deken.game.map.Section
      extended by org.deken.game.map.TileSection

public class TileSection
extends Section

Title: Tile2DSection

Description: TODO

Copyright: Copyright (c) Jan 21, 2012

Version:
1.0
Author:
Gary Deken

Field Summary
 
Fields inherited from class org.deken.game.map.Section
mapSize
 
Constructor Summary
TileSection(int width, int height)
           
TileSection(MapSize mapSize)
           
 
Method Summary
 Decor addTile(Decor decor, GameLocation gameLocation)
          Adds the Decor (tile) at the specified location, or does not set the tile if the specified location is outside the map.
 SectionElement getNextTile()
           
 boolean hasNextTile()
           
 void reset()
           
 
Methods inherited from class org.deken.game.map.Section
getMapSize, getName, setMapSize, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TileSection

public TileSection(int width,
                   int height)

TileSection

public TileSection(MapSize mapSize)
Method Detail

addTile

public Decor addTile(Decor decor,
                     GameLocation gameLocation)
Adds the Decor (tile) at the specified location, or does not set the tile if the specified location is outside the map.

Specified by:
addTile in class Section
Parameters:
decor - Decor
gameLocation - GameLocation
Returns:
Decor Returns the copied Decor

getNextTile

public SectionElement getNextTile()
Specified by:
getNextTile in class Section

hasNextTile

public boolean hasNextTile()
Specified by:
hasNextTile in class Section

reset

public void reset()
Specified by:
reset in class Section