Exemplo n.º 1
0
        public void SetCheckPlayLog(int playerID, string action)
        {
            PlayStageState ps = timer.CurrentState as PlayStageState;

            if (ps != null)
            {
                playLogWriter.SetCheckPlayLog(playerID, ps.RemainingTime, action);
            }
        }
Exemplo n.º 2
0
        public void SetMoveLog(int playerID, string kanjiParts, string answerfield, string action)
        {
            PlayStageState ps = timer.CurrentState as PlayStageState;

            if (ps != null)
            {
                playLogWriter.SetMoveLog(playerID, kanjiParts, answerfield, action, ps.RemainingTime);
            }
        }
Exemplo n.º 3
0
        public void SetActiveCheckPanel(bool isActive)
        {
            PlayStageState ps = timer.CurrentState as PlayStageState;

            if (ps != null)
            {
                ps.SetActiveCheckPanel(isActive);
            }
        }
Exemplo n.º 4
0
        public void RpcInterimResult(int collect)
        {
            PlayStageState ps = CurrentState as PlayStageState;

            if (ps != null)
            {
                ps.InterimResult(collect);
            }
        }
Exemplo n.º 5
0
        public void Judge(string action)
        {
            StopPlayersDrag();
            PlayStageState ps = timer.CurrentState as PlayStageState;

            if (ps != null)
            {
                playLogWriter.SetJudgeLog(ps.RemainingTime, null, action);
            }
        }
Exemplo n.º 6
0
        public void RpcStageEnd(int collect)
        {
            PlayStageState ps        = CurrentState as PlayStageState;
            int            highScore = 0;

            if (ps != null)
            {
                highScore = ps.HighScore;
            }

            GoNextState(new StageResult(this, panelManager, collect, highScore));
        }
Exemplo n.º 7
0
        public void Check()
        {
            int            collect = stageManager.ShowCheckDetail();
            PlayStageState ps      = timer.CurrentState as PlayStageState;

            if (ps != null)
            {
                if (collect == stageManager.PerfectScore)
                {
                    ps.Stop(PlayStageState.EndConditionType.check_perfect);
                }
                else if (ps.RemainingCheckNum <= 1)
                {
                    ps.Stop(PlayStageState.EndConditionType.check_over);
                }
                else
                {
                    timer.RpcInterimResult(collect);
                }
            }
        }