Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #import "cocos2d.h"
00011 #import "CommonDataTypes.h"
00012 #import "Constants.h"
00013 #import "Utils.h"
00014
00015 @interface GameObject : CCSprite
00016
00017 {
00018 BOOL isActive;
00019 BOOL isCollideable;
00020 BOOL reactsToScreenBoundaries;
00021 CGSize winSize;
00022 GameObjectType gameObjectType;
00023 }
00024
00025 @property (readwrite) BOOL isActive;
00026 @property (readwrite) BOOL isCollideable;
00027 @property (readwrite) BOOL reactsToScreenBoundaries;
00028 @property (readwrite) CGSize screenSize;
00029 @property (readwrite) GameObjectType gameObjectType;
00030
00031 -(void)changeState:(CharacterStates)_newState;
00032 -(void)updateStateWithDeltaTime:(ccTime)_deltaTime andListOfGameObjects:(CCArray*)_listOfGameObjects;
00033 -(CGRect)adjustedBoundingBox;
00034 -(CCAnimation*)loadAnimationFromPlistWthName:(NSString*)_animationName andClassName:(NSString*)_className;
00035
00036 @end