Contains all moving game objects which can be given a Path.
More...
#import <GameObjects.h>
List of all members.
Detailed Description
Contains all moving game objects which can be given a Path.
Determines if touch was on a MovingObject and if so, returns that object. Updates each MovingObject, schedules collision checks via ObjectCollisionTest and spawning of new objects via ObjectSpawn. Moving objects are drawn just above GamePaths and below the GameUI.
Member Function Documentation
- (void) collisionTest |
|
|
|
[implementation] |
checks all MovingObject for proximity to and collision with each other
two objects have crashed, do what's necessary to stop the game
- (void) createObjectAt: |
|
(CGPoint) |
spawnLocation |
|
[implementation] |
- (void) dealloc |
|
|
|
[implementation] |
Returns the MovingObject at the location, taking into account the object collisionRadius.
get the object at a specific screen location, usually used to find which object was touched
Returns nil if no object is in the vicinity of the location.
- (void) increaseSpawnInterval |
|
|
|
[implementation] |
initializes class and returns an instance of the class, you must take care of allocating the object yourself
- (void) initSpawnLocations |
|
|
|
[implementation] |
- (bool) isPositionCollisionFree: |
|
(CGPoint) |
point |
collisionRadius: |
|
(float) |
radius | |
|
|
| | [implementation] |
check if the given point is free of collisions with other objects in the given radius
initializes class and returns an autoreleased instance of the class
- (void) spawnObject |
|
|
|
[implementation] |
- (void) update: |
|
(ccTime) |
delta |
|
[implementation] |
- (void) updateObjectSpawn: |
|
(ccTime) |
delta |
|
[implementation] |
Member Data Documentation
Property Documentation
The documentation for this class was generated from the following files: