Back to index

freevial  1.2
Public Member Functions | Public Attributes | Static Public Attributes
endscreen.Nau Class Reference

List of all members.

Public Member Functions

def __init__
def esFora

Public Attributes

 dir
 vel
 img
 spin

Static Public Attributes

float x = 1024.0
float y = 768.0
float dir = 45.0
float vel = 1.0
int img = 0
int spin = 0

Detailed Description

Definition at line 37 of file endscreen.py.


Constructor & Destructor Documentation

def endscreen.Nau.__init__ (   self,
  angle = None 
)

Definition at line 45 of file endscreen.py.

00045 
00046               def __init__( self, angle = None ):
00047 
00048                      self.dir = angle if angle else random.randint( 0, 359 )
00049                      self.vel = random.randint( 7, 15 )
00050                      self.img = random.randint( 0, 71 )
00051                      self.spin = random.randint( 1, 3) * -1 if random.randint(0,1) else 1 
00052 
00053                      self.x += math.cos( self.dir ) * 100
00054                      self.y += math.sin( self.dir ) * 100


Member Function Documentation

def endscreen.Nau.esFora (   self)

Definition at line 55 of file endscreen.py.

00055 
00056               def esFora( self ):
00057                      marge = 100
00058                      return self.x < -marge or self.x > 1024 + marge or self.y < -marge or self.y > 768 + marge
00059 


Member Data Documentation

float endscreen.Nau.dir = 45.0 [static]

Definition at line 40 of file endscreen.py.

Definition at line 47 of file endscreen.py.

int endscreen.Nau.img = 0 [static]

Definition at line 42 of file endscreen.py.

Definition at line 49 of file endscreen.py.

int endscreen.Nau.spin = 0 [static]

Definition at line 43 of file endscreen.py.

Definition at line 50 of file endscreen.py.

float endscreen.Nau.vel = 1.0 [static]

Definition at line 41 of file endscreen.py.

Definition at line 48 of file endscreen.py.

float endscreen.Nau.x = 1024.0 [static]

Definition at line 38 of file endscreen.py.

float endscreen.Nau.y = 768.0 [static]

Definition at line 39 of file endscreen.py.


The documentation for this class was generated from the following file: