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