Package tp :: Package netlib :: Package objects :: Package ObjectExtra :: Module Fleet :: Class Fleet
[show private | hide private]
[frames | no frames]

Type Fleet

object --+                
         |                
    Header --+            
             |            
     Processed --+        
                 |        
       Describable --+    
                     |    
                Object --+
                         |
                        Fleet


A fleet is a collection of ships. Many different ships can make up a fleet.

A fleet has an owner, Int32 Player ID.

Method Summary
  __init__(self, sequence, id, type, name, size, posx, posy, posz, velx, vely, velz, contains, order_types, order_number, modify_time, owner, ships, damage)
  __str__(self)
Produce a string suitable to be send over the wire.
    Inherited from Object
  __repr__(self)
Return a reconisable string.
    Inherited from Describable
  __process__(self, data, **kw)
    Inherited from Header
  __eq__(self, other)
  data_set(self, data)
Processes the data of the packet.
  fromstr(cls, data)
Look at the packet type and morph this object into the correct type. (Class method)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...

Class Variable Summary
str substruct = 'j[II]I'
int subtype = 4                                                                     
    Inherited from Object
int no = 7                                                                     
str struct = 'IIS Q 3q 3q [I] [I] I T 8x'
str _name = 'Unknown Object'
    Inherited from Header
dict mapping = {0: <class 'objects.OK.OK'>, 1: <class 'object...
int size = 16                                                                    

Instance Method Details

__str__(self)
(Informal representation operator)

Produce a string suitable to be send over the wire.
Overrides:
objects.Object.Object.__str__ (inherited documentation)

Class Variable Details

substruct

Type:
str
Value:
'j[II]I'                                                               

subtype

Type:
int
Value:
4                                                                     

Generated by Epydoc 2.1 on Fri Jan 1 08:00:26 2010 http://epydoc.sf.net