erland.game.tileadventure
Class MapBlockContainer

java.lang.Object
  extended by erland.game.tileadventure.MapBlockContainer
All Implemented Interfaces:
MapObjectContainerInterface

public class MapBlockContainer
extends Object
implements MapObjectContainerInterface


Constructor Summary
MapBlockContainer(int sizeX, int sizeY, int sizeZ)
           
 
Method Summary
 void addObject(MapObjectInterface object, int x, int y, int z)
           
 MapObjectInterface getBlock(int x, int y, int z)
           
 List getObjects(int x, int y, int z)
           
 int getSizeX()
           
 int getSizeY()
           
 int getSizeZ()
           
 void removeBlock(MapObjectInterface object)
           
 void removeBlock(MapObjectInterface block, int x, int y, int z)
           
 void removeObject(MapObjectInterface object)
           
 void removeObject(MapObjectInterface object, int x, int y, int z)
           
 void setBlock(MapObjectInterface block, int x, int y, int z)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapBlockContainer

public MapBlockContainer(int sizeX,
                         int sizeY,
                         int sizeZ)
Method Detail

getSizeX

public int getSizeX()
Specified by:
getSizeX in interface MapObjectContainerInterface

getSizeY

public int getSizeY()
Specified by:
getSizeY in interface MapObjectContainerInterface

getSizeZ

public int getSizeZ()
Specified by:
getSizeZ in interface MapObjectContainerInterface

getBlock

public MapObjectInterface getBlock(int x,
                                   int y,
                                   int z)
Specified by:
getBlock in interface MapObjectContainerInterface

setBlock

public void setBlock(MapObjectInterface block,
                     int x,
                     int y,
                     int z)
Specified by:
setBlock in interface MapObjectContainerInterface

removeBlock

public void removeBlock(MapObjectInterface block,
                        int x,
                        int y,
                        int z)
Specified by:
removeBlock in interface MapObjectContainerInterface

removeBlock

public void removeBlock(MapObjectInterface object)
Specified by:
removeBlock in interface MapObjectContainerInterface

addObject

public void addObject(MapObjectInterface object,
                      int x,
                      int y,
                      int z)
Specified by:
addObject in interface MapObjectContainerInterface

removeObject

public void removeObject(MapObjectInterface object,
                         int x,
                         int y,
                         int z)
Specified by:
removeObject in interface MapObjectContainerInterface

removeObject

public void removeObject(MapObjectInterface object)
Specified by:
removeObject in interface MapObjectContainerInterface

getObjects

public List getObjects(int x,
                       int y,
                       int z)
Specified by:
getObjects in interface MapObjectContainerInterface


Copyright © 2003-2006 Erland Isaksson. All Rights Reserved.