Exemplo n.º 1
0
Arquivo: Battle.cs Projeto: drudo1/mm
 public Battle(CurrentGamePlayer challenger)
 {
     battleDT           = DateTime.Now;
     gamePlayer         = challenger;
     opponents          = new List <Monster>();
     playerOneTimeBonus = 0;
     lastUpdated        = DateTime.Now;
 }
Exemplo n.º 2
0
Arquivo: Battle.cs Projeto: drudo1/mm
 public Battle()
 {
     gamePlayer         = new CurrentGamePlayer();
     opponents          = new List <Monster>();
     offers             = new List <string>();
     playerOneTimeBonus = 0;
     lastUpdated        = DateTime.Now;
 }
Exemplo n.º 3
0
 public void AddAlly(int allyID, int allyTreasures)
 {
     if (currentBattle != null)
     {
         CurrentGamePlayer ally = players.Where(gp => gp.currentPlayer.PlayerID == allyID).FirstOrDefault();
         currentBattle.AddAlly(ally, allyTreasures);
     }
 }
Exemplo n.º 4
0
Arquivo: Battle.cs Projeto: drudo1/mm
 public Battle(CurrentGamePlayer challenger, int monsterLevel, int levelsToWin, int treasures)
 {
     battleDT   = DateTime.Now;
     gamePlayer = challenger;
     opponents  = new List <Monster> {
         new Monster(monsterLevel, levelsToWin, treasures)
     };
     offers             = new List <string>();
     playerOneTimeBonus = 0;
     lastUpdated        = DateTime.Now;
 }
Exemplo n.º 5
0
Arquivo: Battle.cs Projeto: drudo1/mm
 public void AddAlly(CurrentGamePlayer player, int treasures)
 {
     ally          = player;
     allyTreasures = treasures;
     lastUpdated   = DateTime.Now;
 }
Exemplo n.º 6
0
 public BattleResult(CurrentGamePlayer gamePlayer)
 {
     this.gamePlayer = gamePlayer;
 }