Ejemplo n.º 1
0
    //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");
    }
Ejemplo n.º 2
0
 public void MoveTo(Location moveLocation)
 {
     agentLocation.removeOccupant(this);
         agentLocation=moveLocation;
         moveLocation.addOccupant(this);
 }