Пример #1
0
 public void ChangeDwarfAction(DwarfActions action)
 {
     if (dwarfActions != action)
     {
         dwarfActions    = action;
         changeAnimation = true;
     }
 }
Пример #2
0
 public override void ResetPlayer()
 {
     base.ResetPlayer();
     dwarfActions   = DwarfActions.None;
     alcoholOnMouth = false;
     drinking       = false;
     spRegenered    = 0;
     boozes.Clear();
 }
Пример #3
0
 public Dwarf(Animation animation, Animation deadAnimation, Aim aim, Texture2D measureBar,
              string id, int maxHp, int maxSp, float spRegen, float move, float maximumFallingSpeed,
              Vector2 distanceToHand, Side side, Inputs inputs,
              FireSpitting fireSpitting, Texture2D spinningBoozeTexture)
     : base(animation, deadAnimation, aim, measureBar, id, maxHp, maxSp, spRegen, move, maximumFallingSpeed,
            distanceToHand, side, inputs)
 {
     dwarfActions              = DwarfActions.None;
     maxSkillValue             = fireSpitting.maximumAmount;
     alcoholOnMouth            = false;
     drinking                  = false;
     this.fireSpitting         = fireSpitting;
     this.spinningBoozeTexture = spinningBoozeTexture;
     smokingSpRegen            = 25f;
     spRegenered               = 0;
     boozes = new List <Projectile>();
 }