net.sf.tankbattles.configuration
Class BattleField

java.lang.Object
  extended by net.sf.tankbattles.configuration.BattleField

public class BattleField
extends java.lang.Object

The place where the battle happens. Battlefields are created from image heightmaps. Different BattleFields topography is created by setting a different heightmap.

Author:
erickpassos

Constructor Summary
BattleField()
          Default constructor just initializes an empty collection for the obstacles.
 
Method Summary
 java.awt.Image getHeightmapImage()
           
 java.util.Collection<Obstacle> getObstacles()
           
 void setHeightmapImage(java.awt.Image heightmapImage)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BattleField

public BattleField()
Default constructor just initializes an empty collection for the obstacles.

Method Detail

getHeightmapImage

public java.awt.Image getHeightmapImage()

setHeightmapImage

public void setHeightmapImage(java.awt.Image heightmapImage)

getObstacles

public java.util.Collection<Obstacle> getObstacles()