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; }
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; } }
public void setAgresive() { aggressivity = Aggressivity.aggresive; }
public void setDefensive() { aggressivity = Aggressivity.defensive; }