Exemplo n.º 1
0
        public InfoController(int viewportWidth, int viewportHeight, GraphicsDevice graphicsDevice, ContentManager content, int xOffset, int yOffset)
        {
            _viewportWidth = viewportWidth;
            _viewportHeight = viewportHeight;
            _graphicsDevice = graphicsDevice;
            _content = content;

            _trooperInfo = new Model.Info(new Vector2(0,1));

            _trooperInfoView = new View.InfoView(new Camera(viewportWidth, viewportHeight, xOffset,yOffset, 180, 30, 1, 20 ), _trooperInfo);
        }
Exemplo n.º 2
0
 public InfoView(Camera camera, Info _trooperInfo)
     : base(camera)
 {
     this._trooperInfo = _trooperInfo;
 }