Exemple #1
0
 internal void oneAttack(Pavise pavise)
 {
     paviseToHit = pavise;
     preAttackState = _state;
     _state = STATE_ONEATTACK;
     _stateTimer = _oneAttackTime;
     _meleeDestination = _position;
 }
Exemple #2
0
 private void pavisePlaced()
 {
     hasPavise = false;
     _idle = new Sprite(PikeAndShotGame.CROSSBOWMAN_IDLE, new Rectangle(6, 4, 16, 28), 44, 42);
     if (_side == BattleScreen.SIDE_PLAYER)
     {
         myPavise = new Pavise(new Vector2(this._position.X + 16f + _randDestOffset.X, this._position.Y + 12f + _randDestOffset.Y), this._screen, _side, 24f);
         _screen.addShot(myPavise);
         chargePosition -= new Vector2(8, 0);
         _meleeDestination = myFormation.getCenter() + chargePosition;
     }
     else
         _screen.addShot(new Pavise(new Vector2(this._position.X + 4f + _randDestOffset.X, this._position.Y + 12f + _randDestOffset.Y), this._screen, _side, 24f));
 }