Example #1
0
 public GameView(GraphicsDevice a_graphicsDevice, SpriteBatch a_spriteBatch, Model.GameModel a_gameModel, View.AnimationSystem a_animationSystem, View.InputHandler a_inputHandler, View.SoundHandler a_soundHandler)
 {
     this.m_gameModel       = a_gameModel;
     this.m_camera          = new Camera(a_graphicsDevice, a_gameModel);
     this.m_spriteBatch     = a_spriteBatch;
     this.m_soundHandler    = a_soundHandler;
     this.m_inputHandler    = a_inputHandler;                                                                                        //Hantering av samtliga anv-inputs
     this.m_animationSystem = a_animationSystem;                                                                                     //System för sprite-animationer
     this.m_conversation    = new Conversation(m_spriteBatch, m_gameModel, m_camera, m_inputHandler);                                //Behandlar/ritar dialogtexter
     this.m_UIView          = new UIView(m_spriteBatch, m_camera, m_inputHandler, a_gameModel, m_conversation);                      //Utritning av user-interface
     this.m_unitView        = new UnitView(m_gameModel, m_spriteBatch, m_camera, m_inputHandler, m_animationSystem, m_conversation); //Utritning av samtliga units
 }
Example #2
0
 public UnitView(Model.GameModel a_gameModel, SpriteBatch a_spriteBatch, Camera a_camera, InputHandler a_inputHandler, AnimationSystem a_animationSystem, View.Conversation a_conversation)
 {
     this.m_player          = a_gameModel.m_playerSystem.m_player;
     this.m_enemies         = a_gameModel.m_enemySystem.m_enemies;
     this.m_deadEnemies     = a_gameModel.m_enemySystem.m_spawnList;
     this.m_friends         = a_gameModel.m_friendSystem.m_friends;
     this.m_questSystem     = a_gameModel.m_questSystem;
     this.m_camera          = a_camera;
     this.m_spriteBatch     = a_spriteBatch;
     this.m_inputHandler    = a_inputHandler;
     this.m_animationSystem = a_animationSystem;
     this.m_conversation    = a_conversation;
 }