Public Member Functions | Static Public Member Functions

TargetObjects Class Reference

TargetObjects manages the landing pads, docks or whatever you choose. More...

#import <TargetObjects.h>

List of all members.

Public Member Functions

(id) - init
 initializes TargetObjects class and returns an instance of the class, you must take care of allocating the object yourself
(bool) - isPointCloseToTarget:previousPoint:targetType:
 Checks each target location and returns true if the point is close enough to the target to land/dock there.
(void) - dealloc [implementation]

Static Public Member Functions

(id) + targetObjects
 initializes TargetObjects class and returns an autoreleased instance of the class

Detailed Description

TargetObjects manages the landing pads, docks or whatever you choose.

It tests if a path drawn to one of the Targets counts as an endpoint.


Member Function Documentation

- (void) dealloc   [implementation]
- (id) init  

initializes TargetObjects class and returns an instance of the class, you must take care of allocating the object yourself

- (bool) isPointCloseToTarget: (CGPoint)  point
previousPoint: (CGPoint)  prevPoint
targetType: (ETargetTypes targetType 

Checks each target location and returns true if the point is close enough to the target to land/dock there.

Previous point can be used to determine incoming angle which may be needed for some targets (for example: airstrip). TargetType determines which types of targets should be evaluated, since not all objects should be able to land/dock/etc on every target.

+ (id) targetObjects  

initializes TargetObjects class and returns an autoreleased instance of the class


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Properties