Ejemplo n.º 1
0
        internal bool UnTarget()
        {
            Model.Player player = m_gameModel.m_playerSystem.m_player;

            return((m_inputHandler.DidLeftClick() && !m_inputHandler.MouseIsOverObject && !m_inputHandler.MouseIsOverInterface) && !m_conversation.DrawDialog ||
                   !player.Target.ThisUnit.Bounds.Intersects(m_camera.GetScreenRectangle));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Checks if the player did un target its target
 /// </summary>
 /// <param name="player">Player object</param>
 /// <returns>True or false</returns>
 internal bool DidUnTarget(Model.Player player)
 {
     return((_inputHandler.DidLeftClick() && !_inputHandler.MouseIsOverObject && !_inputHandler.MouseIsOverInterface) && !_conversation.DrawDialog ||
            !player.Target.ThisUnit.Bounds.Intersects(_camera.GetScreenRectangle));
 }