//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; }
//Constructor public ItemView(Model.GameModel a_gameModel, Camera a_camera, AnimationSystem a_animationSystem) { this.m_player = a_gameModel.Player; this.m_level = a_gameModel.TMXLevel; this.m_camera = a_camera; this.m_animationSystem = a_animationSystem; this.m_trampolineWatch = new Stopwatch(); }
//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); }
//Constructor public UIView(Model.GameModel m_gameModel, Camera m_camera, AnimationSystem a_animationSystem) { this.m_gameModel = m_gameModel; this.m_camera = m_camera; this.m_animationSystem = a_animationSystem; }
/// <summary> /// Constructor /// </summary> /// <param name="gameModel">GameModel instance</param> /// <param name="spriteBatch">SpriteBatch instance</param> /// <param name="camera">Camera instance</param> /// <param name="inputHandler">InputHandler instance</param> /// <param name="animationSystem">AnimationSystem instance</param> /// <param name="dialog">Dialog instance</param> public UnitView(Model.GameModel gameModel, SpriteBatch spriteBatch, Camera camera, InputHandler inputHandler, AnimationSystem animationSystem, View.Dialog dialog) { this._player = gameModel.PlayerSystem.Player; this._enemies = gameModel.EnemySystem.Enemies; this._deadEnemies = gameModel.EnemySystem.SpawnList; this._nonPlayerCharacters = gameModel.NpcSystem.NonPlayerCharacters; this._questSystem = gameModel.QuestSystem; this._camera = camera; this._spriteBatch = spriteBatch; this._inputHandler = inputHandler; this._animationSystem = animationSystem; this._conversation = dialog; }
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; }