コード例 #1
0
        internal bool DoneHitting()
        {
            bool flag;

            if (m_effectResults != null)
            {
                flag = m_effectResults.DoneHitting();
            }
            else if (m_barrierResults != null)
            {
                flag = m_barrierResults.DoneHitting();
            }
            else if (m_powerupResults != null)
            {
                flag = m_powerupResults.DoneHitting();
            }
            else if (m_gameModeResults != null)
            {
                flag = m_gameModeResults.DoneHitting();
            }
            else
            {
                Log.Print(LogType.Error,
                          "ClientMovementResults has neither effect results nor barrier results nor powerup results.  Assuming it's done hitting...");
                flag = true;
            }

            return(flag);
        }
コード例 #2
0
 public bool ReactionHitsDone()
 {
     if (PlayedReaction())
     {
         return(m_effectResults.DoneHitting());
     }
     return(false);
 }