//bool occupiesSpace=true; public Agent(AGENTTYPE inType, string inName, Location inLocation) { agenttype=inType; agentName=inName; agentLocation=inLocation; inLocation.addOccupant(this); if (!(userinterfaceHolder)) userinterfaceHolder=GameObject.Find("UserInterface"); }
public void MoveTo(Location moveLocation) { agentLocation.removeOccupant(this); agentLocation=moveLocation; moveLocation.addOccupant(this); }