Example #1
0
 public Answer(Question question, Game game, string value)
     : this()
 {
     this.Question = question;
     this.Game = game;
     this.Value = value;
 }
 public static string TranslateCheckpoint(Game.Checkpoint checkpoint)
 {
     string translation = string.Empty;
     switch (checkpoint)
     {
         case Game.Checkpoint.CharacterCreation:
             translation = "Criação de Personagens";
             break;
         case Game.Checkpoint.ThemeSelection:
             translation = "Escolha do Tema";
             break;
         case Game.Checkpoint.Planning:
             translation = "Planeamento";
             break;
         case Game.Checkpoint.City:
             translation = "Cidade";
             break;
         case Game.Checkpoint.Review:
             translation = "Revisão";
             break;
         case Game.Checkpoint.Party:
             translation = "Festa";
             break;
         default:
             translation = "Sem Informação";
             break;
     }
     return translation;
 }
Example #3
0
 public Action(int id, string description, Game game, Player player, DateTime time)
     : this(id, description, game, player)
 {
     this.Time = time;
 }
Example #4
0
 public Action(int id, string description, Game game, Player player)
     : this(description, game, player)
 {
     this.Id = id;
 }
Example #5
0
 public Action(string description, Game game, Player player)
     : this(description, game)
 {
     this.Player = player;
 }
Example #6
0
 public Action(string description, Game game)
     : this()
 {
     this.Description = description;
     this.Game = game;
 }
Example #7
0
        public void Initialize()
        {
            this.Guests.Clear();

            GameManager gameManager = GameManager.Instance;

            if (gameManager.UseDatabase)
            {
                Game game = gameManager.Entity.GamesTable.Get("DefaultGame");
                if (game == null)
                {
                    game = new Game("DefaultGame");
                    game.CreateGuests();
                    game.LoadLikes();
                    gameManager.Entity.GamesTable.Add(game);
                }

                this.Budget = game.Budget;
                this.Time = game.Time;
                this.TimeConsumption = game.TimeConsumption;

                CreateGuests(game.Guests);
                LoadLikes(game.Guests);
            }
            else
            {
                CreateGuests();
                LoadLikes();
            }
        }
Example #8
0
 public Answer(int id, Question question, Game game, Player player, string value)
     : this(question, game, player, value)
 {
     this.Id = id;
 }
Example #9
0
 public Answer(Question question, Game game, Player player, string value)
     : this(question, game, value)
 {
     this.Player = player;
 }