comparison gamelib/state.py @ 266:80cb577e38f2

Non-interactive things no longer highlight the cursor.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 27 Aug 2010 20:08:18 +0200
parents 3cedc4f95925
children 8e27efd331aa
comparison
equal deleted inserted replaced
265:88a77875878e 266:80cb577e38f2
321 321
322 Item may be an item in the list of items or None for the hand. 322 Item may be an item in the list of items or None for the hand.
323 """ 323 """
324 if self._current_thing is not None: 324 if self._current_thing is not None:
325 if self._current_thing.contains(pos): 325 if self._current_thing.contains(pos):
326 screen.cursor_highlight(True) 326 screen.cursor_highlight(self._current_thing.is_interactive())
327 return 327 return
328 else: 328 else:
329 self._current_thing.leave() 329 self._current_thing.leave()
330 self._current_thing = None 330 self._current_thing = None
331 self._current_description = None 331 self._current_description = None
406 406
407 def get_description(self): 407 def get_description(self):
408 return None 408 return None
409 409
410 def is_interactive(self): 410 def is_interactive(self):
411 return self.current_interact is not None 411 return True
412 412
413 def enter(self, item): 413 def enter(self, item):
414 """Called when the cursor enters the Thing.""" 414 """Called when the cursor enters the Thing."""
415 pass 415 pass
416 416