Logo Search packages:      
Sourcecode: balazar3 version File versions  Download package

def balazar3-0.1::tofu::Player::__init__ (   self,
  player_id 
)

Player(player_id) -> Player

Creates a new Player with the given PlayerID.
Player.__init__ is in charge of creating the initial Mobile the Player controls, and putting
these Mobiles in their initial levels.

Definition at line 872 of file __init__.py.

00872                                :
    """Player(player_id) -> Player

Creates a new Player with the given PlayerID.
Player.__init__ is in charge of creating the initial Mobile the Player controls, and putting
these Mobiles in their initial levels."""
    if (".." in player_id.filename) or ("/" in player_id.filename) or (not player_id.filename): raise ValueError("Invalide Player name %s (need a valid filename)!" % player_id.filename)
    
    SavedInAPath.__init__(self)
    
    print "* Tofu * Creating new player %s..." % player_id.filename
    self._filename   = ""
    self.filename    = player_id.filename
    self.password    = player_id.password
    self.mobiles     = []
    self.sock        = None
    self.udp_address = None
    self.client      = None
    
  @side("single", "server")
  def login(self, sock, udp_address):


Generated by  Doxygen 1.6.0   Back to index