All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
Public Member Functions | Protected Attributes | Properties
GameObject Class Reference

#import <GameObject.h>

Inheritance diagram for GameObject:
Lemming Obstacle Terrain CogitoAgent DecisionTreeAgent QLearningAgent ShortestRouteAgent

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

Detailed Description

Definition at line 15 of file GameObject.h.


Member Function Documentation

- (CGRect) adjustedBoundingBox

Compensates for any transparent space

Returns:
the new bounding box

Definition at line 65 of file GameObject.m.

- (void) changeState: (CharacterStates _newState

Transforms objects from one state to another

Parameters:
thestate 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

Parameters:
animationName
className
Returns:
the animation

Definition at line 82 of file GameObject.m.

- (void) updateStateWithDeltaTime: (ccTime)  _deltaTime
andListOfGameObjects: (CCArray*)  _listOfGameObjects 

Updates the object, called every frame

Parameters:
deltaTime
listOfGameObjects

Definition at line 56 of file GameObject.m.


Field Documentation

- (CGSize) winSize [protected]

Definition at line 21 of file GameObject.h.


Property Documentation

- (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.


The documentation for this class was generated from the following files: