//#---------------------------------------------------------- //# * Is Legal Attack Target //#---------------------------------------------------------- public bool IsLegalAttackTarget(Game_Unit target) { if (target == null) return false; if (target.IsDead()) return false; if (target.IsPlayerOwned == _playerSide) return false; return true; }
//#---------------------------------------------------------- //# * Battle Setup //#---------------------------------------------------------- public override void BattleSetup(Game_Field field) { base.BattleSetup(field); ReinforcementPts = 10; _wall = new Game_Unit(Global.Units[10], false); _currentScript = 0; _tick = 0; }
//#---------------------------------------------------------- //# * Is Legal Attack Target //#---------------------------------------------------------- public bool IsLegalAttackTarget(Game_Unit target) { if (target == null) return false; if (IsPlayer == target.IsPlayerOwned) return false; if (target.IsInMotion()) return false; if (target.IsDead()) return false; return true; }
//#---------------------------------------------------------- //# * Battle Setup //#---------------------------------------------------------- public override void BattleSetup(Game_Field field) { base.BattleSetup(field); ReinforcementPts = 10; _wall = new Game_Unit(Global.Units[10], true); }
//#---------------------------------------------------------- //# * Is Legal Attack Target //#---------------------------------------------------------- public bool IsLegalAttackTarget(Game_Unit target) { if (target == null) return false; if (target.IsAlly(this)) return false; if (target.IsInMotion()) return false; if (target.IsDead()) return false; return true; }
//#---------------------------------------------------------- //# * Is Ally //#---------------------------------------------------------- public bool IsAlly(Game_Unit unit) { return (this.IsPlayerOwned == unit.IsPlayerOwned); }
//#---------------------------------------------------------- //# * Is On Opponent's Zone (opponent's side, dependant on unit alliance) //#---------------------------------------------------------- private bool IsOnOpponentZone(Game_Unit unit, Point2DEx pt) { return (unit.IsPlayerOwned ? IsOnEnemyZone(pt) : IsOnPlayerZone(pt)); }