Esempio 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()
        {
            GameServices.AddService <GraphicsDevice>(GraphicsDevice);
            GameServices.AddService <ContentManager>(Content);

            Lua = new Lua();

            TurnManager = new TurnManager(new string[] { "Player", "Computer" });

            Camera    = new Camera(this);
            Interface = new Interface(this);

            Squad  = new List <Soldier>();
            Swarm  = new List <SmallEnemy>();
            Volley = new List <Shot>();

            Spawn = new List <MonsterSpawn>();

            base.Initialize();
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Token" /> class.
 /// Preferably use <see cref="TurnManager.CreateToken" /> instead.
 /// </summary>
 /// <param name="turnManager">The turn manager the token belongs to.</param>
 /// <param name="name">Unique identifying name of the token.</param>
 public Token(TurnManager turnManager, string name)
 {
     this.turnManager = turnManager;
     this.Name        = name;
     turnManager.AddToken(this);
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Token" /> class.
 /// Preferably use <see cref="TurnManager.CreateToken" /> instead.
 /// </summary>
 /// <param name="turnManager">The turn manager the token belongs to.</param>
 /// <param name="name">Unique identifying name of the token.</param>
 public Token(TurnManager turnManager, string name)
 {
     this.turnManager = turnManager;
     this.Name = name;
     turnManager.AddToken(this);
 }
Esempio n. 4
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()
        {
            GameServices.AddService<GraphicsDevice>(GraphicsDevice);
            GameServices.AddService<ContentManager>(Content);

            Lua = new Lua();

            TurnManager = new TurnManager(new string[] { "Player", "Computer" });

            Camera = new Camera(this);
            Interface = new Interface(this);

            Squad = new List<Soldier>();
            Swarm = new List<SmallEnemy>();
            Volley = new List<Shot>();

            Spawn = new List<MonsterSpawn>();

            base.Initialize();
        }