home *** CD-ROM | disk | FTP | other *** search
-
- #import <gamekit/gamekit.h>
-
- @interface GKCollisionGroup:Object
- {
- int tag;
- id actorLists[2]; // we basically do a "cross product" of these lists
- id collisionDetector; // object that can detect collisions between actors
- id delegate;
- }
-
- - init;
-
- // setting and getting tags
- - (int)tag;
- - setTag:(int)anInt;
-
- // adding and removing actors from the collision list
- - addActor:anActor toList:(int)number;
- - removeActor:anActor fromList:(int)number;
-
- // setting and getting the delegate
- // (delegate gets sent -actor:collidedWith: for each collision detected)
- - delegate;
- - setDelegate:anObject;
-
- - calculateCollisions:sender;
-
- @end
-