Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #import "State.h"
00011
00012
00013 @implementation State
00014
00015 #pragma mark -
00016 #pragma mark Memory Allocation
00017
00021 -(void)dealloc
00022 {
00023 [actions release];
00024 [super dealloc];
00025 }
00026
00027 #pragma mark -
00028 #pragma mark Initialisation
00029
00034 -(id)initStateForObject:(GameObject*)_object
00035 {
00036 self = [super init];
00037
00038 if (self != nil)
00039 {
00040 gameObject = _object;
00041 actions = [[CCArray alloc] init];
00042 }
00043 return self;
00044 }
00045
00046 #pragma mark -
00047
00052 -(Action)getOptimumAction
00053 {
00054
00055 return -1;
00056 }
00057
00062 -(CCArray*)getActions
00063 {
00064
00065 return nil;
00066 }
00067
00073 -(void)setActions:(CCArray*)_actions
00074 {
00075
00076 }
00077
00082 -(GameObject*)getGameObject
00083 {
00084 return gameObject;
00085 }
00086
00087 @end