示例#1
0
        public void Tick(int ticks, IMessageLog log)
        {
            if (ticks % updateInterval == 0)
            {
                counter++;
                if (counter >= board.Width + board.Height)
                {
                    counter = 0;
                }

                clearingRule.Apply(this, log);
                log.UpdateSweep(this);
            }
        }
示例#2
0
        public void Tick(int ticks, IMessageLog log)
        {
            if (ticks % updateInterval == 0)
            {
                counter++;
                if (counter >= board.Width + board.Height)
                    counter = 0;

                clearingRule.Apply(this, log);
                log.UpdateSweep(this);

            }
        }