eric-kansas/Gold-Rush — pull request #51 by gjl6931 (2012-03-24 21:37:11+00:00)
Title: Started working again

Instead of doing things in two separate places (and sometimes doing them in slightly different ways) I'm going to write helper functions that both the GuiHandler (action button) and ClickHandler (double clicking) will call. This will probably help us iron out bugs with stuff.

I started today with moving. Instead of having the code in two separate places, the moveClick function just sees if the card they clicked on was valid and then if they click on the same card it calls movePlayer to actually move the player. Clicking the action button will call movePlayer as well instead of doing it's own thing.

I also added a boolean in GameManager called isOnline that we'll need to manually set true or false. Right now it's false because I'm not running the game off a server. isOnline = false means the game won't try to perform most of the updates it would send to the server after each action.