Package objects :: Module Object :: Class Object
[show private | hide private]
[frames | no frames]

Type Object

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

Known Subclasses:
Fleet, Galaxy, Planet, StarSystem, Universe, Wormhole

The Object packet consists of:
* a UInt32, object ID
* a UInt32, object type
* a String, name of object
* a UInt64, size of object (diameter)
* 3 by Int64, position of object
* 3 by Int64, velocity of object
* a list of UInt32, object IDs of objects contained in the current object
* a list of UInt32, order types that the player can send to this object
* a UInt32, number of orders currently on this object
* a UInt64, the last modified time
* 2 by UInt32 of padding, for future expansion of common attributes
* extra data, as defined by each object type

Method Summary
  __init__(self, sequence, id, subtype, name, size, posx, posy, posz, velx, vely, velz, contains, order_types, order_number, modify_time, *args, **kw)
  __repr__(self)
Return a reconisable string.
  __str__(self)
Produce a string suitable to be send over the wire.
    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
int no = 7                                                                     
str struct = 'IIS Q 3q 3q [I] [I] I T 8x'
str _name = 'Unknown Object'
    Inherited from Describable
str substruct = ''
    Inherited from Header
dict mapping = {0: <class 'objects.OK.OK'>, 1: <class 'object...
int size = 16                                                                    

Instance Method Details

__repr__(self)
(Representation operator)

Return a reconisable string.
Overrides:
objects.Header.Header.__repr__

__str__(self)
(Informal representation operator)

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

Class Variable Details

no

Type:
int
Value:
7                                                                     

struct

Type:
str
Value:
'IIS Q 3q 3q [I] [I] I T 8x'                                           

_name

Type:
str
Value:
'Unknown Object'                                                       

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