#NEWLINE# def __init__( self , world , image ) : #NEWLINE# #INDENT# GameEntity . __init__ ( self , world , 'ant' , image ) #NEWLINE# exploring_state = AntStateExploring ( self ) #NEWLINE# seeking_state = AntStateSeeking ( self ) #NEWLINE# delivering_state = AntStateDelivering ( self ) #NEWLINE# hunting_state = AntStateHunting ( self ) #NEWLINE# self . brain . add_state ( exploring_state ) #NEWLINE# self . brain . add_state ( seeking_state ) #NEWLINE# self . brain . add_state ( delivering_state ) #NEWLINE# self . brain . add_state ( world ) #NEWLINE# self . carry_image = None