Changeset View
Changeset View
Standalone View
Standalone View
gameobject.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | |||||
65 | * "hitters" | 65 | * "hitters" | ||
66 | */ | 66 | */ | ||
67 | struct KBounceHit | 67 | struct KBounceHit | ||
68 | { | 68 | { | ||
69 | /* | 69 | /* | ||
70 | * Type of hitter | 70 | * Type of hitter | ||
71 | */ | 71 | */ | ||
72 | KBounceObjectType type; | 72 | KBounceObjectType type; | ||
73 | | ||||
73 | /* | 74 | /* | ||
74 | * Bounding rect of hitter | 75 | * Bounding rect of hitter | ||
75 | */ | 76 | */ | ||
76 | QRectF boundingRect; | 77 | QRectF boundingRect; | ||
78 | | ||||
77 | /* | 79 | /* | ||
78 | * Velocity of hiter | 80 | * Velocity of hiter | ||
79 | */ | 81 | */ | ||
80 | KBounceVector velocity; | 82 | KBounceVector velocity; | ||
83 | | ||||
81 | /* | 84 | /* | ||
82 | * Vector perpendicular to object's being hitted surface in | 85 | * Vector perpendicular to object's being hitted surface in | ||
83 | * the area of intersection with hitter | 86 | * the area of intersection with hitter | ||
84 | */ | 87 | */ | ||
85 | KBounceVector normal; | 88 | KBounceVector normal; | ||
86 | }; | 89 | }; | ||
87 | 90 | | |||
88 | typedef QList<KBounceHit> KBounceCollision; | 91 | typedef QList<KBounceHit> KBounceCollision; | ||
89 | 92 | | |||
90 | #define GAME_DELAY 16 | 93 | #define GAME_DELAY 16 | ||
91 | 94 | | |||
92 | #endif //GAMEOBJECT_H | 95 | #endif //GAMEOBJECT_H | ||
93 | 96 | |