monrovia.server.platform
Class MapArea
java.lang.Object
|
+--monrovia.server.platform.MapArea
- All Implemented Interfaces:
- java.lang.Runnable
- public class MapArea
- extends java.lang.Object
- implements java.lang.Runnable
This class represents a single map area in the game. The contents
include the map and the thread to run this map area.
Constructor Summary |
MapArea(java.lang.String pName,
int pWidth,
int pHeight,
java.util.List pBasicIcons,
GameObjectData pDefaultGround)
Constructor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapArea
public MapArea(java.lang.String pName,
int pWidth,
int pHeight,
java.util.List pBasicIcons,
GameObjectData pDefaultGround)
- Constructor.
getName
public java.lang.String getName()
getSize
public IntPoint getSize()
getWidth
public int getWidth()
getHeight
public int getHeight()
getGround
public Ground getGround(IntPoint pLoc)
setGround
public void setGround(Ground pGround,
IntPoint pLoc)
- Put an ground to the map. Do not call when running.
setAzoic
public void setAzoic(Azoic pAzoic,
IntPoint pLoc)
- Put an azoic to the map. Do not call when running.
addEmbryo
public void addEmbryo(Creature pCreature)
getIcons
public byte[][] getIcons()
getMap
public int[][] getMap()
command
public void command(Command pCommand,
Creature pCreature)
isRunning
public boolean isRunning()
start
public void start()
stop
public void stop()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable