![]() |
00001 // 00002 // State.h 00003 // Author: Thomas Taylor 00004 // 00005 // Basic class to hold info about a state 00006 // 00007 // 02/02/2012: Created class 00008 // 00009 00010 #import "cocos2d.h" 00011 #import "CommonDataTypes.h" 00012 #import "GameObject.h" 00013 00014 @interface State : NSObject 00015 00016 { 00017 GameObject* gameObject; 00018 00019 // holds actions 00020 CCArray* actions; 00021 } 00022 00023 -(id)initStateForObject:(GameObject*)_object; 00024 -(Action)getOptimumAction; 00025 -(CCArray*)getActions; 00026 -(void)setActions:(CCArray*)_actions; 00027 -(GameObject*)getGameObject; 00028 00029 @end