1 #All angles are in radians
4 """The model data for physical and non-physical objects"""
6 Faces
= [] #Assumes all triangles!
9 """Entities able to effect other entities"""
10 VelXYR
= [0.0, 0.0, 0.0]
11 PosXYR
= [0.0, 0.0, 0.0]
12 RotXYZ
= [0.0, 0.0, 0.0]
14 Model
= None #Expects ObjectModel type
21 """Entities able to thrust and must always remain oriented tangent with the sphere"""
22 #RotXYZ = tan2sphere(PosXYR)
25 PosXYZ
= [0.0, 0.0, 0.0]
29 """The sphere of which all physical objects are located"""
34 class BonusItem(PhysicalEntity
):
35 """Bonus Items that happen to be floating around"""
39 def Activate(self
, player
):
40 """Do some function to the player"""
44 """Degrade into lesser bonus object"""
47 """Remove bonus item from the game"""
50 class BonusPoints(BonusItem
):
52 def Activate(self
, player
):
56 class BonusLife(BonusItem
):
57 def Activate(self
, player
):
61 class BonusShield(BonusItem
):
62 def Activate(self
, player
):
63 player
.ship
.Shield
= True
66 class PlayerShip(ShipEntity
):
71 Weapons
= [] #list of three weapon classes
75 """Actual player data"""
83 Stars
= [] #List of Zippis