Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members

Behavior Interface Reference

The Behavior class is an interface; it only declares a single function, runBehavior, and leaves the details to its children, which will be the actual behaviors (vanish, move, etc.). More...

Inherited by bounceBehavior, bounceBehaviorE, bounceBehaviorN, bounceBehaviorS, bounceBehaviorW, bounceSoundBehavior, collisionAddVelocityBehavior, collisionBounceBehavior, collisionDestroyLifeBehavior, collisionDestroyScoreBehavior, deleteOffscreenBehaviorY, dieAtBottomBehavior, dieBehavior, DiePastBounds, HaltOnBounds, initiateMoveBehavior, makeBulletBehavior, makeBulletOnShootBehavior, moveBehavior, moveInSquareBehavior, powerupBehavior, userMoveBehaviorX, userMoveBehaviorY, vanishBehavior, and WrapOnBoundsBehavior.

Inheritance diagram for Behavior:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ArrayList runBehavior (Map collisions, Map k, Gobject g)
 runBehavior is implemented in each subclass.

Detailed Description

The Behavior class is an interface; it only declares a single function, runBehavior, and leaves the details to its children, which will be the actual behaviors (vanish, move, etc.).


Member Function Documentation

ArrayList Behavior::runBehavior Map  collisions,
Map  k,
Gobject  g
 

runBehavior is implemented in each subclass.

Parameters:
collisions - Map containing collision data
k - Map which stores the keys currently pressed
g - the Gobject for this behavior (allows this behavior to find its Gobject)
Returns:
an ArrayList of the flags created

Implemented in bounceBehavior, bounceBehaviorE, bounceBehaviorN, bounceBehaviorS, bounceBehaviorW, bounceSoundBehavior, collisionAddVelocityBehavior, collisionBounceBehavior, collisionDestroyLifeBehavior, collisionDestroyScoreBehavior, deleteOffscreenBehaviorY, dieAtBottomBehavior, dieBehavior, DiePastBounds, HaltOnBounds, initiateMoveBehavior, makeBulletBehavior, makeBulletOnShootBehavior, moveBehavior, moveInSquareBehavior, powerupBehavior, userMoveBehaviorX, userMoveBehaviorY, vanishBehavior, and WrapOnBoundsBehavior.


The documentation for this interface was generated from the following file:
Generated on Fri May 6 02:44:31 2005 for Duvall does XOOGA by  doxygen 1.4.1