Exemplo 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;
        }
Exemplo n.º 4
0
 public Bonus(Color newColor, BonusKind newKind, Color ballColor, int range)
 {
     color          = newColor;
     bonusKind      = newKind;
     bonusEndTime   = 0.0f;
     this.ballColor = ballColor;
     this.range     = range;
 }
Exemplo n.º 5
0
 public void ServerChangeBonusKind(BonusKind newValue)
 {
     _bonusKind = newValue;
 }
Exemplo n.º 6
0
 private void OnClientBonusKindChanged(BonusKind newValue)
 {
     //todo менять картинку
 }