示例#1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="spriteBatch">SpriteBatch instance</param>
 /// <param name="gameModel">Game model instance</param>
 /// <param name="camera">Camera instance</param>
 /// <param name="inputHandler">InputHandler instance</param>
 public Dialog(SpriteBatch spriteBatch, Model.GameModel gameModel, Camera camera, View.InputHandler inputHandler)
 {
     this._spriteBatch  = spriteBatch;
     this._dialogueList = new List <Dialogue>();
     this._questSystem  = gameModel.QuestSystem;
     this._camera       = camera;
     this._inputHandler = inputHandler;
 }
示例#2
0
 public Conversation(SpriteBatch a_spriteBatch, Model.GameModel a_gameModel, Camera a_camera, View.InputHandler a_inputHandler)
 {
     this.m_spriteBatch  = a_spriteBatch;
     this.m_dialogueList = new List <Dialogue>();
     this.m_questSystem  = a_gameModel.m_questSystem;
     this.m_camera       = a_camera;
     this.m_inputHandler = a_inputHandler;
 }
示例#3
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="spriteBatch">SpriteBatch instance</param>
        /// <param name="activeSpells">List of activ spells</param>
        /// <param name="player">Player object</param>
        /// <param name="questSystem">QuestSystem instance</param>
        /// <param name="camera">Camera instance</param>
        public ActionBar(SpriteBatch spriteBatch, List <Model.Spell> activeSpells, Model.Player player, Model.QuestSystem questSystem, Camera camera)
        {
            this._spriteBatch = spriteBatch;
            this._camera      = camera;
            this._player      = player;
            this._questSystem = questSystem;

            this._barPosition  = new Vector2[7];
            this._activeSpells = activeSpells;
        }
示例#4
0
 /// <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;
 }
示例#5
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;
 }
        public UIView(SpriteBatch a_spriteBatch, Camera a_camera, InputHandler a_inputHandler, Model.GameModel a_gameModel, Conversation a_conversation)
        {
            this.m_spriteBatch  = a_spriteBatch;
            this.m_keyPositions = new Vector2[7];
            this.m_camera       = a_camera;

            this.m_inputHandler = a_inputHandler;
            this.m_activeSpells = a_gameModel.m_playerSystem.m_spellSystem.ActiveSpells;
            this.m_player       = a_gameModel.m_playerSystem.m_player;
            this.m_questSystem  = a_gameModel.m_questSystem;
            this.m_worldItems   = a_gameModel.m_itemSystem.m_items;
            this.m_currentMap   = a_gameModel.m_level.CurrentMap();

            this.m_rightClickWatch = new Stopwatch();
            this.m_conversation    = a_conversation;
        }
示例#7
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="spriteBatch">Instance of SpriteBatch</param>
        /// <param name="camera">Instance of Camera</param>
        /// <param name="inputHandler">Instance of InputHandler</param>
        /// <param name="gameModel">Instance of GameModel</param>
        /// <param name="dialog">Instance of Dialog</param>
        public UIView(SpriteBatch spriteBatch, Camera camera, InputHandler inputHandler, Model.GameModel gameModel, Dialog dialog)
        {
            this._spriteBatch     = spriteBatch;
            this._player          = gameModel.PlayerSystem.Player;
            this._worldItems      = gameModel.ItemSystem._items;
            this._currentMap      = gameModel.Level.CurrentMap();
            this._activeSpells    = gameModel.PlayerSystem.SpellSystem.ActiveSpells;
            this._rightClickWatch = new Stopwatch();

            this._dialog       = dialog;
            this._camera       = camera;
            this._inputHandler = inputHandler;
            this._questSystem  = gameModel.QuestSystem;

            this._common    = new UI.Common(_spriteBatch);
            this._avatar    = new UI.Avatar(_spriteBatch, _player);
            this._worldMap  = new UI.WorldMap(_spriteBatch, _player, _inputHandler, _camera);
            this._actionBar = new UI.ActionBar(_spriteBatch, _activeSpells, _player, _questSystem, _camera);
        }