Esempio n. 1
0
        public GameObjectView(Camera camera)
        {
            Camera = camera;

              //  this.spriteBatch = new SpriteBatch(graphicsDevice);

             //   _gameObjectTexture = contentTexture; //content.Load<Texture2D>(contentName);
        }
Esempio n. 2
0
 public TrooperHitView(Camera camera, string damage, Vector2 position, SpriteFont font, GameTime gameTime)
 {
     this._camera = camera;
     this._damage = damage;
     this._position = position;
     this._font = font;
     _timeLived = 0f;
 }
Esempio n. 3
0
 public PauseMenuView(Microsoft.Xna.Framework.Graphics.GraphicsDevice _graphicsDevice, Microsoft.Xna.Framework.Content.ContentManager _content, Model.PauseMenu _pauseMenu, Camera camera)
 {
     // TODO: Complete member initialization
     this._graphicsDevice = _graphicsDevice;
     this._content = _content;
     this._pauseMenu = _pauseMenu;
     this.camera = camera;
 }
Esempio n. 4
0
 public LevelView(GraphicsDevice graphicsDevice, ContentManager content,  LevelManager levelManager, Camera cam)
     : base(cam)
 {
     _levelManager = levelManager;
     _trooperView = new TrooperView(cam);
     _cursorView = new CursorView(cam);
     _mediKitView = new MediKitView(cam);
     _buildingView = new BuildingView(cam);
     _trooperHitViews = new List<TrooperHitView>();
     _ammoView = new AmmoView(cam);
 }
Esempio n. 5
0
        public LevelController(int viewportWidth, int viewportHeight, GraphicsDevice graphicsDevice, ContentManager content)
        {
            this._viewportWidth = viewportWidth;
            this._viewportHeight = viewportHeight;
            this._graphicsDevice = graphicsDevice;
            this._content = content;
            _levelManager = new Model.LevelManager(_numberOfXTiles, _numberOfYTiles);

            _levelCamera = new Camera(_viewportHeight, _viewportWidth, xOffset: 10, yOffset: 10, xTileSize: _xTileSize, yTileSize: _yTileSize, numberOfXTiles: _numberOfXTiles, numberOfYTiles: _numberOfYTiles);

            _levelView = new LevelView(_graphicsDevice, _content, _levelManager, _levelCamera);
            _killedTrooperView = new KilledTrooperView(_levelCamera);
            _trooperInfoController = new InfoController( viewportWidth,  viewportHeight,  graphicsDevice,  content, xOffset: 10 +5 + _xTileSize * _numberOfXTiles, yOffset: 10);
        }
Esempio n. 6
0
 public MediKitView(Camera cam)
     : base(cam)
 {
 }
Esempio n. 7
0
 public TrooperView(Camera cam)
     : base(cam)
 {
     _bulletView = new BulletView(cam);
     _movementView = new MovementView(cam);
 }
Esempio n. 8
0
 public MenuView(GraphicsDevice graphicsDevice, ContentManager content, BaseMenu menu, Camera cam)
     : base(cam)
 {
     _menu = menu;
 }
Esempio n. 9
0
 public AmmoView(Camera cam)
     : base(cam)
 {
 }
Esempio n. 10
0
 public CursorView(Camera cam, Cursor cursor)
     : base(cam)
 {
     Cursor = cursor;
 }
Esempio n. 11
0
 public KilledTrooperView(Camera camera)
     : base(camera)
 {
 }
Esempio n. 12
0
 public ParticleView(SplitterSystem splitterSystem, Camera cam)
     : base(cam)
 {
     _splitterSystem = splitterSystem;
 }
Esempio n. 13
0
 public BulletView(Camera cam)
     : base(cam)
 {
 }
Esempio n. 14
0
 public BuildingView(Camera cam)
     : base(cam)
 {
 }
Esempio n. 15
0
 public MovementView(Camera cam)
     : base(cam)
 {
     //_levelPositions = levelPositions;
 }
Esempio n. 16
0
 public InfoView(Camera camera, Info _trooperInfo)
     : base(camera)
 {
     this._trooperInfo = _trooperInfo;
 }
Esempio n. 17
0
 public HelpView(Camera camera, Help help)
     : base(camera)
 {
     _help = help;
 }