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; }
public void ServerChangeBonusKind(BonusKind newValue) { _bonusKind = newValue; }
private void OnClientBonusKindChanged(BonusKind newValue) { //todo менять картинку }