Exemplo n.º 1
0
 private void CheckColourMatch(BasicPlatform platform)
 {
     if ((platform.GetColour()) != currentColour.ToString())
     {
         Death();
     }
 }
Exemplo n.º 2
0
        private IslandTile CreateIslandTile(string tileName, PlayerColour startingTileForPlayer, bool helicopterSite, TreasureStatue TreasureStatue, bool HasStatue)
        {
            var islandTile = new IslandTile();

            islandTile.Id   = Guid.NewGuid();
            islandTile.Name = tileName;
            islandTile.StartingTileForPlayer = startingTileForPlayer.ToString();
            islandTile.SubmergedState        = TileState.Normal.ToString();
            islandTile.HelicopterSite        = helicopterSite;
            islandTile.PlayersOnTile         = new List <Player>();
            islandTile.CanHaveStatue         = TreasureStatue.ToString();
            islandTile.HasStatue             = HasStatue;
            return(islandTile);
        }