Ejemplo n.º 1
0
 // TODO: Not Adjusted for Deathstar (Moving target)
 public MinionMovement(IMinionContainer initialContainer, IMinionContainer targetContainer, Minion owner)
 {
     mOwner = owner;
       mOwner.Position = initialContainer.Position;
       mMovement = new FreeMovement(mOwner);
       Vector2? startPos = mMovement.MoveTo(targetContainer);
       if (startPos != null)
       {
     mOwner.Position = (Vector2)startPos;
       }
 }
Ejemplo n.º 2
0
 protected AttackBehaviour(IAttacker owner)
 {
     mOwner = owner;
       mAttackRange = owner.AttackRange;
       mAttackSpeed = owner.AttackSpeed;
       mTarget = null;
       mIsIMovable = false;
       if (owner is IMovable)
       {
     mMovement = new FreeMovement((IMovable) owner);
     mIsIMovable = true;
       }
       SetLaserType(owner);
 }