/// <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); } }
public void UpdateStateLog(IBoggleState state, EventArgs e) { labelServerState.Text = string.Format("Server State: {0}", state); }
/// <summary> /// Start game /// </summary> public void Start() { CurrentState = new BoggleWaitReady(); }