#import <GameObject.h>
Public Member Functions | |
(void) | - changeState: |
(void) | - updateStateWithDeltaTime:andListOfGameObjects: |
(CGRect) | - adjustedBoundingBox |
(CCAnimation *) | - loadAnimationFromPlistWthName:andClassName: |
Protected Attributes | |
CGSize | winSize |
Properties | |
BOOL | isActive |
BOOL | isCollideable |
BOOL | reactsToScreenBoundaries |
CGSize | screenSize |
GameObjectType | gameObjectType |
Definition at line 15 of file GameObject.h.
- (CGRect) adjustedBoundingBox |
Compensates for any transparent space
Definition at line 65 of file GameObject.m.
- (void) changeState: | (CharacterStates) | _newState |
Transforms objects from one state to another
the | state to transition to |
Reimplemented in Lemming.
Definition at line 46 of file GameObject.m.
- (CCAnimation *) loadAnimationFromPlistWthName: | (NSString*) | _animationName | |
andClassName: | (NSString*) | _className | |
Sets up an animation from its .plist file
animationName | |
className |
Definition at line 82 of file GameObject.m.
- (void) updateStateWithDeltaTime: | (ccTime) | _deltaTime | |
andListOfGameObjects: | (CCArray*) | _listOfGameObjects | |
Updates the object, called every frame
deltaTime | |
listOfGameObjects |
Definition at line 56 of file GameObject.m.
- (CGSize) winSize [protected] |
Definition at line 21 of file GameObject.h.
- (GameObjectType) gameObjectType [read, write, assign] |
Definition at line 22 of file GameObject.h.
- (BOOL) isActive [read, write, assign] |
Definition at line 18 of file GameObject.h.
- (BOOL) isCollideable [read, write, assign] |
Definition at line 19 of file GameObject.h.
- (BOOL) reactsToScreenBoundaries [read, write, assign] |
Definition at line 20 of file GameObject.h.
- (CGSize) screenSize [read, write, assign] |
Definition at line 28 of file GameObject.h.