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