<s> class Ant ( GameEntity ) : <EOL> def __init__ ( self , world , image ) : <EOL> GameEntity . __init__ ( self , world , "<STR_LIT>" , image ) <EOL> exploring_state = AntStateExploring ( self ) <EOL> seeking_state = AntStateSeeking ( self ) <EOL> delivering_state = AntStateDelivering ( self ) <EOL> hunting_state = AntStateHunting ( self ) <EOL> self . brain . add_state ( exploring_state ) <EOL> self . brain . add_state ( seeking_state ) <EOL> self . brain . add_state ( delivering_state ) <EOL> self . brain . add_state ( hunting_state ) <EOL> self . carry_image = None <EOL> def carry ( self , image ) : <EOL> self . carry_image = image <EOL> def drop ( self , surface ) : <EOL> if self . carry_image : <EOL> x , y = self . location <EOL> w , h = self . carry_image . get_size ( ) <EOL> surface . blit ( self . carry_image , ( x - w , y - h / <NUM_LIT:2> ) ) <EOL> self . carry_image = None <EOL> def render ( self , surface ) : <EOL> GameEntity . render ( self , surface ) <EOL> if self . carry_image : <EOL> x , y = self . location <EOL> w , h = self . carry_image . get_size ( ) <EOL> surface . blit ( self . carry_image , ( x - w , y - h / <NUM_LIT:2> ) ) </s>
