Exemple #1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            units             = new List <Unit>();
            store.removeUnits = new List <byte>();
            store.kilingUnits = new List <byte>();
            graphics.PreferredBackBufferWidth  = 1280;
            graphics.PreferredBackBufferHeight = 680;
            store.swordHitSnds   = new SoundEffect[6];
            store.songs          = new Song[3];
            store.arrowShootSnds = new SoundEffect[4];
            store.arrowHitSnds   = new SoundEffect[5];
            store.borders        = new List <Rectangle>();
            IsMouseVisible       = true;
            unitFactory          = new UnitFactory();
            store.objects        = new ArrayList();
            arrows           = new List <Arrow>();
            store.pauseCheck = true;

            context = new WindowStateContext(this);
        }
Exemple #2
0
 public WindowState(WindowStateContext _context)
 {
     context = _context;
 }
Exemple #3
0
 public NormalWindowState(WindowStateContext _context) : base(_context)
 {
 }