예제 #1
0
	def __draw_view_area(self, obj):
		color = obj.color
		if obj.mode is 'hunting':
			color = (255, obj.color[1], obj.color[2])



		draw.line(self.window, color, obj.screen_position, obj.view_area[0])
		draw.line(self.window, color, obj.screen_position, obj.view_area[1])
		#draw.circle(self.window, obj.color, obj.screen_position, obj.view_area_radius, 1)

		r = obj.view_area_radius * X_CELL
		a = obj.view_area_angle

		draw.arc(self.window, color, 
				(d((r, r), obj.screen_position), 
							(r * 2, r * 2)),
				TRIGONOMETRY_SUCKS[obj.direction]['rad'] - a, 
							TRIGONOMETRY_SUCKS[obj.direction]['rad'] + a)