00001 // 00002 // GamePaths.h 00003 // 00004 // Created by Steffen Itterheim on 08.04.10. 00005 // Copyright 2010 Steffen Itterheim. All rights reserved. 00006 // 00007 00008 #import "cocos2d.h" 00009 00010 @class MovingObject; 00011 @class Path; 00012 @class TargetObjects; 00013 00017 @interface GamePaths : CCNode 00018 { 00020 Path* drawingPath; 00021 00023 MovingObject* pathFollowObject; 00024 00026 CGPoint touchBeganLocation; 00027 00029 bool isDrawingPath; 00030 } 00031 00033 +(id) paths; 00035 -(id) init; 00037 -(void) startPathForObject:(MovingObject*)object touchLocation:(CGPoint)touchLocation; 00039 -(void) addPathPointsFromTouch:(CGPoint)touchLocation targets:(TargetObjects*)targets; 00041 -(void) endPath; 00042 00043 @end