Exemple #1
0
    public Attack(IA ia) : base(ia)
    {
        aggressivity = (Aggressivity)ia.desires [typeof(Aggressivity)];
        cowardice    = (Cowardice)ia.desires [typeof(Cowardice)];
        art          = ia.player.team.teamSlot.artefact;

        weapon        = ia.GetComponent <StdIAWeapon> ();
        weapon.barrel = ia.barrel;

        timer = 0f;
    }
Exemple #2
0
 public Ghost()
 {
     position     = new Position(13, 14);
     target       = new Position(13, 14);
     aggressivity = Aggressivity.aggresive;
     state        = State.Nothing;
     nextMove     = State.Nothing;
     mode         = Mode.StayIn;
     intersect    = new bool[4];
     turnToGoOut  = 150;
     for (int i = 0; i < 4; i++)
     {
         intersect[i] = true;
     }
 }
Exemple #3
0
 public void setAgresive()
 {
     aggressivity = Aggressivity.aggresive;
 }
Exemple #4
0
 public void setDefensive()
 {
     aggressivity = Aggressivity.defensive;
 }