Ñò
*·QLc           @   s   d  d d „  ƒ  YZ  d S(   t	   inanimatec           B   sM   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   s*   
    Base class for inanimate objects
    c         C   s   d S(   st   
        Draw the item to the screen. 
        screen_rect is the current viewing window in abs coordinates
        N(    (   t   selft   screent   screen_rect(    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyt   draw   s    c         C   s   t  S(   sb   
        Returns if the inanimate oject is colliding with something(using rect collision)
        (   t   False(   R   t   rect(    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyt   colliderect   s    c         C   s   d S(   sV   
        Called when the knight collides with the inanimate object from above
        N(    (   R   t   knight(    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyt   touched_from_top   s    c         C   s   d S(   sV   
        Called when the knight collides with the inanimate object from below
        N(    (   R   R   (    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyt   touched_from_bottom   s    c         C   s   d S(   sY   
        Called when the knight collides with the inanimate object from the left
        N(    (   R   R   (    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyt   touched_from_left   s    c         C   s   d S(   sZ   
        Called when the knight collides with the inanimate object from the right
        N(    (   R   R   (    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyt   touched_from_right   s    c         C   s   t  S(   sj   
        Returns if the inanimate object is solid(meaning animate objects cannot walk through it)
        (   R   (   R   (    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyt   is_solid$   s    (
   t   __name__t
   __module__t   __doc__R   R   R	   R
   R   R   R   (    (    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyR       s   						N(    (   R    (    (    (    s0   C:\Python26\knight_game\knight_game\inanimate.pyt   <module>   s    