Esempio n. 1
0
        /// <summary>
        /// Process the server state
        /// </summary>
        public void Tick(float tick)
        {
            if (ShuttingDown)
            {
                return;
            }
            //BroadcastInstruction(BoggleInstructions.SERVER_CLIENT_MESSAGE, string.Format("Hello world! Tick time: {0}", tick.ToString()));
            DeltaTime = tick;
            IBoggleState state = CurrentState.Handle(this);

            if (state != null)
            {
                CurrentState = state;
                CurrentState.Construct(this);
            }
        }
Esempio n. 2
0
 public void UpdateStateLog(IBoggleState state, EventArgs e)
 {
     labelServerState.Text = string.Format("Server State: {0}", state);
 }
Esempio n. 3
0
 /// <summary>
 /// Start game
 /// </summary>
 public void Start()
 {
     CurrentState = new BoggleWaitReady();
 }