コード例 #1
0
        public override void Setup()
        {
            aSnowBall         = new CSnowBall[2];
            bSnowBallStopped  = new bool[2];
            nSectionOld       = new int[2];
            nSnowManCurHP     = new int[2];
            tSnowBallWaitTime = new DateTime[2];
            aaCharacterID     = new List <int>[2]
            {
                new List <int>(),
                new List <int>()
            };

            nState     = 0;
            bConcluded = false;
            base.Setup();
        }
コード例 #2
0
        public void Start()
        {
            CloseRegistration();

            nState = 1;

            for (var i = 0; i < 2; i++)
            {
                aSnowBall[i]         = new CSnowBall(aaCharacterID[0].Count + aaCharacterID[1].Count);
                bSnowBallStopped[i]  = false;
                nSectionOld[i]       = 0;
                nSnowManCurHP[i]     = SNOWMAN_BASE_HP;
                tSnowBallWaitTime[i] = DateTime.Now;
            }

            CreateFieldClock(600);             // 10 min

            BroadcastState(true);
        }