Class ConcreteModel

java.lang.Object
  extended by ConcreteModel
All Implemented Interfaces:
Model

public class ConcreteModel
extends Object
implements Model


Field Summary
(package private)  Location playerLocation
           
(package private)  AbstractWorld world
           
 
Constructor Summary
ConcreteModel()
           
 
Method Summary
 Location getLocationByName(String name)
           
 Location getPlayerLocation()
           
 int getTime()
           
 AbstractWorld getWorld()
           
 void receiveMessage(Option option)
           
 void setPlayerLocation(Location loc)
           
 void setPlayerLocationByName(String name)
           
 void setTime(int newTime)
           
 void setWorld(AbstractWorld w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

playerLocation

Location playerLocation

world

AbstractWorld world
Constructor Detail

ConcreteModel

ConcreteModel()
Method Detail

getLocationByName

public Location getLocationByName(String name)
Specified by:
getLocationByName in interface Model

getPlayerLocation

public Location getPlayerLocation()
Specified by:
getPlayerLocation in interface Model

getTime

public int getTime()
Specified by:
getTime in interface Model

getWorld

public AbstractWorld getWorld()
Specified by:
getWorld in interface Model

receiveMessage

public void receiveMessage(Option option)
Specified by:
receiveMessage in interface Model

setPlayerLocation

public void setPlayerLocation(Location loc)
Specified by:
setPlayerLocation in interface Model

setPlayerLocationByName

public void setPlayerLocationByName(String name)
Specified by:
setPlayerLocationByName in interface Model

setTime

public void setTime(int newTime)
Specified by:
setTime in interface Model

setWorld

public void setWorld(AbstractWorld w)
Specified by:
setWorld in interface Model