Ejemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (var game = new PsGame())
     {
         game.Run();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The constructor for tablesprite takes a PsGame, PirateSpades.GameLogic.Game and a rectangle
 /// </summary>
 /// <param name="game">The PsGame currently running</param>
 /// <param name="playingGame">The current game being played</param>
 /// <param name="rect">The rectangle used to specify the size of the texture tablesprite draws</param>
 public TableSprite(PsGame game, Game playingGame, Rectangle rect)
 {
     Contract.Requires(game != null && playingGame != null);
     this.game = game;
     this.playingGame = playingGame;
     this.rect = rect;
     this.SetUp();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// The constructor for JoinGame takes a PsGame
 /// </summary>
 /// <param name="game">The currently running PsGame</param>
 public JoinGame(PsGame game)
 {
     Contract.Requires(game != null);
     servers = new List<ServerSprite>();
     this.game = game;
     this.SetUp();
     content = game.Content;
     scanner = new PirateScanner();
     this.Refresh();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// The constructor for CreateGame takes a PsGame
 /// </summary>
 /// <param name="game">The currently running PsGame</param>
 public CreateGame(PsGame game)
 {
     Contract.Requires(game != null);
     this.game = game;
     this.SetUp();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// The constructor for StartUp takes a PsGame
 /// </summary>
 /// <param name="game">The currently running PsGame</param>
 public StartUp(PsGame game)
 {
     Contract.Requires(game != null);
     this.game = game;
     this.SetUp();
 }