Esempio n. 1
0
 public PlayerAddedToDraft(
     Guid teamId,
     string playerTypeId,
     int playerPositionNumber,
     Guid playerId,
     GoldCoins newTeamChestBalance)
 {
     TeamId = teamId;
     NewTeamChestBalance  = newTeamChestBalance;
     PlayerTypeId         = playerTypeId;
     PlayerPositionNumber = playerPositionNumber;
     PlayerId             = playerId;
 }
Esempio n. 2
0
 public TeamDraftCreated(
     Guid teamId,
     string raceId,
     string teamName,
     string trainerName,
     IEnumerable <AllowedPlayer> allowedPlayers,
     GoldCoins startingMoney)
 {
     TeamId         = teamId;
     RaceId         = raceId;
     TeamName       = teamName;
     TrainerName    = trainerName;
     AllowedPlayers = allowedPlayers;
     StartingMoney  = startingMoney;
 }
Esempio n. 3
0
 public AllowedPlayer(string playerTypeId, int maximumPlayers, GoldCoins cost)
 {
     PlayerTypeId   = playerTypeId;
     MaximumPlayers = maximumPlayers;
     Cost           = cost;
 }
Esempio n. 4
0
        public static InventoryItem CreateInventoryItem(string key, TeamType team, string region, Vector2 location, ContentManager content, GraphicsDevice graphics)
        {
            InventoryItem item          = null;
            int           amountStacked = 1;

            switch (key)
            {
            case ("tribalTokens"):
                item = new TribalTokens(team, region, location, content, graphics);
                break;

            case ("basePlank"):
                item = new BasePlank(team, region, location, content, graphics);
                break;

            case ("shortSword"):
                item = new ShortSword(team, region, location, content, graphics);
                break;

            case ("softWood"):
                item = new SoftWood(team, region, location, content, graphics);
                break;

            case ("islandGrass"):
                item = new IslandGrass(team, region, location, content, graphics);
                break;

            case ("coal"):
                item = new Coal(team, region, location, content, graphics);
                break;

            case ("ironOre"):
                item = new IronOre(team, region, location, content, graphics);
                break;

            case ("baseSword"):
                item = new BaseSword(team, region, location, content, graphics);
                break;

            case ("anvilItem"):
                item = new AnvilItem(team, region, location, content, graphics);
                item.placeableVersion = new CraftingAnvil(team, region, location, content, graphics);
                break;

            case ("baseChestItem"):
                item = new BaseChestItem(team, region, location, content, graphics);
                item.placeableVersion = new BaseChest(team, region, location, content, graphics);
                break;

            case ("nails"):
                item          = new Nails(team, region, location, content, graphics);
                amountStacked = 5;
                break;

            case ("cannonBallItem"):
                item          = new CannonBallItem(team, region, location, content, graphics);
                amountStacked = 3;
                break;

            case ("pistolShotItem"):
                item          = new PistolShotItem(team, region, location, content, graphics);
                amountStacked = 5;
                break;

            case ("ironBar"):
                item = new IronBar(team, region, location, content, graphics);
                break;

            case ("treasureMapItem"):
                item = new TreasureMapItem(null, team, region, location, content, graphics);
                break;

            case ("chiliFish"):
                item = new ChiliFish(team, region, location, content, graphics);
                break;

            case ("chiliPepper"):
                item = new ChiliPepper(team, region, location, content, graphics);
                break;

            case ("cookedFish"):
                item = new CookedFish(team, region, location, content, graphics);
                break;

            case ("cookedMeat"):
                item = new CookedMeat(team, region, location, content, graphics);
                break;

            case ("rawFish"):
                item = new RawFish(team, region, location, content, graphics);
                break;

            case ("rawMeat"):
                item = new RawMeat(team, region, location, content, graphics);
                break;

            case ("spoiledFish"):
                item = new SpoiledFish(team, region, location, content, graphics);
                break;

            case ("spoiledMeat"):
                item = new SpoiledMeat(team, region, location, content, graphics);
                break;

            case ("feather"):
                item = new Feather(team, region, location, content, graphics);
                break;

            case ("scales"):
                item = new Scales(team, region, location, content, graphics);
                break;

            case ("fishOil"):
                item = new FishOil(team, region, location, content, graphics);
                break;

            case ("goldCoins"):
                item = new GoldCoins(team, region, location, content, graphics);
                break;
            }
            item.itemKey       = key;
            item.amountStacked = amountStacked;
            return(item);
        }
Esempio n. 5
0
 public GoldCoins Plus(GoldCoins otherCost)
 {
     return(new GoldCoins(Value + otherCost.Value));
 }
Esempio n. 6
0
 public bool MoreThan(GoldCoins otherValue)
 {
     return(Value > otherValue.Value);
 }
Esempio n. 7
0
 public GoldCoins Minus(GoldCoins otherCost)
 {
     return(new GoldCoins(Value - otherCost.Value));
 }
Esempio n. 8
0
 public PlayerRemoved(Guid teamId, Guid playerId, GoldCoins newTeamChestBalance)
 {
     TeamId              = teamId;
     PlayerId            = playerId;
     NewTeamChestBalance = newTeamChestBalance;
 }