Ejemplo n.º 1
0
 public IciclePenguinMoveState(IciclePenguinFSM fsm)
     : base(fsm)
 {
     IPfsm = fsm;
 }
Ejemplo n.º 2
0
    //Initialize the agent
    protected override void initializeAgent()
    {
        base.initializeAgent();

        adjAgents = new AdjacentAgents (this, radius * 11, grid, typeof(HumanAgent));//TODO play around with radius value; smaller than humans

        aStar = new AStar (this);

        drawSource = false;
        drawTarget = false;
        drawPath = false;
        drawNodes = false;

        selectable = true;
        selected = false;

        IPfsm = new IciclePenguinFSM (this);
    }
 public IciclePenguinChillinState(IciclePenguinFSM fsm)
     : base(fsm)
 {
     IPfsm = fsm;
 }
 public IciclePenguinSleepState(IciclePenguinFSM fsm)
     : base(fsm)
 {
     IPfsm = fsm;
 }
 public IciclePenguinAttackState(IciclePenguinFSM fsm)
     : base(fsm)
 {
     IPfsm = fsm;
 }