Esempio n. 1
0
 public bonusRegister(BonusKind bKind, int bIndex, BaseCharacter bTarget, int bBonus)
 {
     index  = bIndex;
     kind   = bKind;
     target = bTarget;
     bonus  = bBonus;
 }
 public GameBonus(string id, int x, int y, BonusKind kind)
 {
     this.Id   = id;
     this.X    = x;
     this.Y    = y;
     this.Kind = kind;
 }
        private void DropBonus(int x, int y, BonusKind kind)
        {
            var bonusId = this._objectCounter++;
            var bonus   = new GameBonus(bonusId.ToString(CultureInfo.InvariantCulture), x, y, kind);

            this._bonuses[bonus.Id] = bonus;
        }
 public Bonus(Color newColor, BonusKind newKind, Color ballColor, int range)
 {
     color          = newColor;
     bonusKind      = newKind;
     bonusEndTime   = 0.0f;
     this.ballColor = ballColor;
     this.range     = range;
 }
Esempio n. 5
0
 public void ServerChangeBonusKind(BonusKind newValue)
 {
     _bonusKind = newValue;
 }
Esempio n. 6
0
 private void OnClientBonusKindChanged(BonusKind newValue)
 {
     //todo менять картинку
 }