GetCurrentRandom() 공개 메소드

public GetCurrentRandom ( ) : int
리턴 int
예제 #1
0
        private bool Action_Random_Compare(ActionInfo info, PlayerObject play)
        {
            String[] option = info.param.Split(' ');
            int nValue  = Convert.ToInt32(option[1]);
            int nRandom = play.GetCurrentRandom();
            switch (option[0])
            {
                case ">":
                    {
                        return nValue > nRandom;

                    }
                case "=":
                    {
                        return nValue == nRandom;
                    }
                case "<":
                    {
                        return nValue < nRandom;
                    }
                case ">=":
                    {
                        return nValue >= nRandom;
                    }
                case "<=":
                    {
                        return nValue <= nRandom;
                    }
            }
            return false;
        }