³ò
æ„æNc           @   s9   d  Z  d d k l Z d e f d „  ƒ  YZ e ƒ  Z d S(   sj   
$Rev: 594 $
$LastChangedBy: satoon101 $
$LastChangedDate: 2011-12-12 23:49:03 -0500 (Mon, 12 Dec 2011) $
iÿÿÿÿ(   t
   BasePlayert   DictionaryOfPlayersc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   s9   Stores BasePlayer instances for each userid on the serverc         C   sK   t  | ƒ } | |  j o t t |  ƒ i | ƒ Sn t | ƒ } |  | <| S(   sc    Overrides __getitem__ to make sure the
            proper BasePlayer instance is returned
        (   t   intt   superR   t   __getitem__R    (   t   selft   useridt   player(    (    su   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/dictionary.pyR      s
    c         C   sH   t  | ƒ } | |  j o+ |  | i t ƒ t t |  ƒ i | ƒ n d S(   sL   Overrides __delitem__ to stop the player's repeat prior to deletion
        N(   R   t   stop_repeatt   TrueR   R   t   __delitem__(   R   R   (    (    su   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/dictionary.pyR
   *   s    c         C   s(   x! t  |  ƒ D] } |  i | ƒ q Wd S(   s>   Overrides the clear method to call __delitem__ for each useridN(   t   listR
   (   R   R   (    (    su   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/dictionary.pyt   clear:   s     (   t   __name__t
   __module__t   __doc__R   R
   R   (    (    (    su   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/dictionary.pyR      s   		N(   R   R   R    t   dictR   t   players(    (    (    su   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/scripts/included/gg_deathmatch/modules/dictionary.pys   <module>   s   1