Exemplo n.º 1
0
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 protected override void Initialize()
 {
     // TODO: Add your initialization logic here
     player1 = new Player(true);
     player2 = new Player(false);
     this.pool = new Pool(player1,player2);
     this.IsMouseVisible = true;
     this.mouseScrollState = 0;
     this.bot = new CollisionDetectingBot(pool, player2);
     base.Initialize();
 }
Exemplo n.º 2
0
 public PocketAimingBot(Pool pool, Player player)
     : base(pool,player)
 {
 }
 public CollisionDetectingBot(Pool pool, Player player)
     : base(pool, player)
 {
 }
Exemplo n.º 4
0
 public Bot(Pool pool, Player player)
 {
     this.pool = pool;
     this.player = player; // the bot will play as 2nd player
 }