SnL Classen Referenz: Unterschied zwischen den Versionen
Aus Hackerspace Ffm
(→Class: TargetGroup) |
|||
Zeile 1: | Zeile 1: | ||
+ | == GameWorld.py == | ||
+ | |||
+ | ==== Class: GameWorld ==== | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |colspan=3|Properties | ||
+ | |- | ||
+ | |Name | ||
+ | |Value | ||
+ | |Description | ||
+ | |- | ||
+ | |colspan=3|Methods | ||
+ | |- | ||
+ | |Name | ||
+ | |Values | ||
+ | |Description | ||
+ | |- | ||
+ | |__init__ | ||
+ | |self | ||
+ | | | ||
+ | |- | ||
+ | |AddTargetGroup | ||
+ | |self,targetGroupID,targetGroupZIndex | ||
+ | | | ||
+ | |- | ||
+ | |AddLaserWeapon | ||
+ | |self,laserWeapon | ||
+ | | | ||
+ | |- | ||
+ | |CollectTargetSerialBuffersAsList | ||
+ | |self | ||
+ | | | ||
+ | |- | ||
+ | |UpdateTargets | ||
+ | |self | ||
+ | | | ||
+ | |- | ||
+ | |GetTargetGroupByID | ||
+ | |self,targetGroupID | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
== TargetGroup.py == | == TargetGroup.py == |
Version vom 31. Dezember 2015, 01:06 Uhr
Inhaltsverzeichnis
GameWorld.py
Class: GameWorld
Properties | ||
Name | Value | Description |
Methods | ||
Name | Values | Description |
__init__ | self | |
AddTargetGroup | self,targetGroupID,targetGroupZIndex | |
AddLaserWeapon | self,laserWeapon | |
CollectTargetSerialBuffersAsList | self | |
UpdateTargets | self | |
GetTargetGroupByID | self,targetGroupID |
TargetGroup.py
Class: TargetGroup
Properties | ||
Name | Value | Description |
Methods | ||
Name | Values | Description |
__init__ | self,gameWorld,targetGroupID,targetGroupZIndex | |
AddTarget | self,targetID,targetZIndex | |
CollectSerialBufferFromTargetsAsList | self | Sammelt von ALLEN den Targets die Nachrichten die über den bus gesendet werden soll. |
UpdateTargets | self | Ruft bei ALLEN Targets die Update Methode |
GetTargetByID | self,GTBI_id |
Target.py
Class: TargetHitRecord
Properties | ||
Name | Value | Description |
Methods | ||
Name | Values | Description |
__init__ | self,weapon,hitPoint,hitType |
Class: Target
Properties | ||
Name | Value | Description |
Methods | ||
__init__ | self,targetGroup,gameWorld,targetID,targetZIndex | |
HitMe | self | |
AddHit | self,weapon,hitPoint,hitType | |
MakeHitSerialBuffer | self | |
CollectSerialBuffer | self | |
Update | self | |
TurnOffTarget | self | |
UpdateAnimation | self | |
TurnOffNeoPixel | self |