Changeset 25:54871be350eb
- Timestamp:
- 12/20/10 11:03:07 (5 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tanchiki/body.py
r24 r25 љ 8 8 self.position = positionљ 9 9 self.velocity = velocityљ 10 љ self.radius = radiusљ11 10 љ 12 11 class Tank(Body):љ ? ? љ 14 13 model = "tank"љ 15 14 љ 16 љ def __init__(self, position ):љљ 15 def __init__(self, position, controller):љ 17 16 Body.__init__(self, position)љ љ 17 self.controller = controllerљ љ 18 self.turret = vector.Vector()љ 18 19 self.strength = 0љ 19 љ self.turret = vector.iљ20 љ controller.tank = self # добавляет себя в Controllerљ21 20 љ 22 21 def rotate_base(tank, angle): љ
Note: See TracChangeset
for help on using the changeset viewer.