Exemple #1
0
 public MoveOrder(Creature creature)
 {
     this.creature = creature;
     EngManager.StartCoroutine(SetOrderControl(creature.encounter.board, creature.boardTile, creature.MoveSpeedLeft, Color.Aqua, new List <TileOrderCriteria>()
     {
         TileOrderCriteria.WithoutCreature
     }));
 }
Exemple #2
0
 public SpellSingleNormalTargetOrder(Creature creature, Spell spell)
 {
     this.creature = creature;
     this.spell    = spell;
     EngManager.StartCoroutine(SetOrderControl(creature.encounter.board, creature.boardTile, spell.maxRange, Color.MistyRose, new List <TileOrderCriteria>()
     {
         TileOrderCriteria.WithCreature
     }));
 }
Exemple #3
0
 public SingleNormalTargetOrder(Creature creature, Object controlObject, int range, Color?color = null)
 {
     this.creature      = creature;
     this.controlObject = controlObject;
     EngManager.StartCoroutine(SetOrderControl(creature.encounter.board, creature.boardTile, range, color ?? Color.OrangeRed, new List <TileOrderCriteria>()
     {
         TileOrderCriteria.WithCreature
     }));
 }
Exemple #4
0
 public AttackOrder(Creature creature, Weapon weapon, bool standardAttackAction = true, bool bonusAction = false, bool offHand = false)
 {
     this.creature             = creature;
     this.weapon               = weapon;
     this.standardAttackAction = standardAttackAction;
     this.bonusAction          = bonusAction;
     this.offHand              = offHand;
     EngManager.StartCoroutine(SetOrderControl(creature.encounter.board, creature.boardTile, weapon.maxRange, Color.MistyRose, new List <TileOrderCriteria>()
     {
         TileOrderCriteria.WithCreature
     }));
 }
Exemple #5
0
 public override void SelectionMade()
 {
     base.SelectionMade();
     EngManager.StartCoroutine(creature.MoveOrder(orderControl.selection));
 }
Exemple #6
0
 public void SetInitialVariables()
 {
     engManager   = new EngManager(spriteBatch, graphics, new Vector2(800, 600), true);
     editingMode  = false;
     layingGround = false;
 }
 public override void Yes(Button button, Button.ButtonEventArgs e)
 {
     DestroyAndChildren();
     EngManager.StartCoroutine(DoAttack());
 }