public WorldInputInterface()
 {
     RobotList = new List<Robot>();
     PhysObjList = new List<PhysObject>();
     FoodList = new List<Food>();
     int x = 0;
     int y = 0;
     ws = new ControllerWorldState(RobotList, PhysObjList, FoodList, y, x);
 }
Beispiel #2
0
 public SpeedSensor(ControllerWorldState worldState)
 {
     this.worldState = worldState;
 }
 public BoundarySensor(ControllerWorldState worldState)
 {
     this.worldState = worldState;
 }
Beispiel #4
0
 //Replace the worldState with the new worldstate passed in from the parameter;
 public void UpdateWorldState(ControllerWorldState ws)
 {
     worldState = ws;
 }
 public ProximitySensor(ControllerWorldState worldState)
 {
     this.worldState = worldState;
 }