I am creating a trading game in Python, and want to know how to implement turns without pausing the gameloop. I know that I will have to change the way movement is implemented, but how would I do that?
Note: code can be reached here (May be old): http://pastebin.com/rZbCXk5i
class Player(object):
VALID_STATES = ['state1', 'state2', 'state3']
# LOTS AND LOTS OF STUFF
def check_state(self, state):
if state in Player.VALID_STATES:
return self.__state == state