示例#1
0
 public PickupState(MapUnit unit, int x, int y)
 {
     Unit    = unit;
     TargetX = x;
     TargetY = y;
     Walker  = new UnitStateWalker();
 }
示例#2
0
 public MoveState(MapUnit unit, int x, int y)
 {
     Unit         = unit;
     WalkX        = x;
     WalkY        = y;
     LastBadPath  = 0;
     LastGoodPath = MapLogic.Instance.LevelTime;
     Walker       = new UnitStateWalker();
 }
示例#3
0
 public CastState(MapUnit unit, Spell spell, MapUnit targetUnit)
 {
     Unit       = unit;
     Spell      = spell;
     TargetUnit = targetUnit;
     TargetX    = TargetY = -1;
     Executed   = false;
     IsAttack   = Spell.IsAttackSpell(spell.SpellID);
     Walker     = new UnitStateWalker();
 }
示例#4
0
 public CastState(MapUnit unit, Spell spell, int targetX, int targetY)
 {
     Unit       = unit;
     Spell      = spell;
     TargetUnit = null;
     TargetX    = targetX;
     TargetY    = targetY;
     Executed   = false;
     IsAttack   = global::Spell.IsAttackSpell(spell.SpellID);
     Walker     = new UnitStateWalker();
 }
示例#5
0
 public UseStructureState(MapUnit unit, MapStructure s)
 {
     Unit      = unit;
     Structure = s;
     Walker    = new UnitStateWalker();
 }
示例#6
0
 public AttackState(MapUnit unit, MapUnit targetUnit)
 {
     Unit       = unit;
     TargetUnit = targetUnit;
     Walker     = new UnitStateWalker();
 }