//Constructor
 public UnitView(Model.GameModel m_gameModel, Camera a_camera, SmokeSystem m_smokeSystem, AnimationSystem a_animationSystem, GraphicsDevice a_graphicsDevice)
 {
     this.m_gameModel       = m_gameModel;
     this.m_smokeSystem     = m_smokeSystem;
     this.m_animationSystem = a_animationSystem;
     this.m_camera          = a_camera;
 }
Beispiel #2
0
 //Constructor
 public GameView(Model.GameModel a_gameModel, InputHandler a_inputHandler, SpriteBatch a_spriteBatch, GraphicsDevice a_graphicsDevice)
 {
     this.m_smokeSystem     = new SmokeSystem();
     this.m_animationSystem = new AnimationSystem(a_spriteBatch);
     this.m_gameModel       = a_gameModel;
     this.m_spriteBatch     = a_spriteBatch;
     this.m_graphicsDevice  = a_graphicsDevice;
     this.m_inputHandler    = a_inputHandler;
     this.m_camera          = new Camera(a_graphicsDevice, a_gameModel);
     this.m_graphicView     = new GraphicView(a_graphicsDevice, m_camera);
     this.m_unitView        = new UnitView(m_gameModel, m_camera, m_smokeSystem, m_animationSystem, a_graphicsDevice);
     this.m_uIView          = new UIView(m_gameModel, m_camera, m_animationSystem);
     this.m_itemView        = new ItemView(m_gameModel, m_camera, m_animationSystem);
 }