Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.cmm.msu.su/trac/tanchiki/changeset/25
Дата изменения: Unknown
Дата индексирования: Sun Apr 10 02:16:05 2016
Кодировка: UTF-8
Changeset 25:54871be350eb ? Tanchiki

Changeset 25:54871be350eb


Ignore:
Timestamp:
12/20/10 11:03:07 (5 years ago)
Author:
Peter Zotov <whitequark@?>
Branch:
default
Message:

More fixes to body.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tanchiki/body.py

    r24 r25 љ
    88                self.position = positionљ
    99                self.velocity = velocityљ
    10љ                self.radius = radiusљ
    1110љ
    1211class Tank(Body):љ
    ? ? љ
    1413        model = "tank"љ
    1514љ
    16љ        def __init__(self, position):љ
    љ15        def __init__(self, position, controller):љ
    1716                Body.__init__(self, position)љ
    љ17                self.controller = controllerљ
    љ18                self.turret = vector.Vector()љ
    1819                self.strength = 0љ
    19љ                self.turret = vector.iљ
    20љ                controller.tank = self # добавляет себя в Controllerљ
    2120љ
    2221        def rotate_base(tank, angle): љ
Note: See TracChangeset for help on using the changeset viewer.