Beispiel #1
0
 //#----------------------------------------------------------
 //# * 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;
 }
Beispiel #2
0
 //#----------------------------------------------------------
 //# * 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;
 }
Beispiel #3
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;
 }
Beispiel #4
0
 //#----------------------------------------------------------
 //# * Battle Setup
 //#----------------------------------------------------------
 public override void BattleSetup(Game_Field field)
 {
     base.BattleSetup(field);
     ReinforcementPts = 10;
     _wall = new Game_Unit(Global.Units[10], true);
 }
Beispiel #5
0
 //#----------------------------------------------------------
 //# * 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;
 }
Beispiel #6
0
 //#----------------------------------------------------------
 //# * Is Ally
 //#----------------------------------------------------------
 public bool IsAlly(Game_Unit unit)
 {
     return (this.IsPlayerOwned == unit.IsPlayerOwned);
 }
Beispiel #7
0
 //#----------------------------------------------------------
 //# * 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));
 }