qaf::PlatformerObj::PlatformerInput Class Reference

#include <qafPlatformerObj.h>

List of all members.


Detailed Description

Represents input for a platformer player.

When a PlatformerObj is created, it must receive a pointer to one of these structures. Its state will be read in the PlatformerObj::update() method, and the key states will be used to update the character's position and direction.


Public Member Functions

 PlatformerInput ()
 The constructor sets all key states to false.

Public Attributes

bool left
 Directional input: Set to true when the LEFT/RIGHT/DOWN buttons are pressed.
bool right
bool down
bool jumpPress
 This should be set to true in the frame when the JUMP button is pressed, and set to false in the next frame.
bool jump
 This should be set to true as long as JUMP is kept pressed.


Member Data Documentation

bool qaf::PlatformerObj::PlatformerInput::left

Directional input: Set to true when the LEFT/RIGHT/DOWN buttons are pressed.

bool qaf::PlatformerObj::PlatformerInput::jumpPress

This should be set to true in the frame when the JUMP button is pressed, and set to false in the next frame.

bool qaf::PlatformerObj::PlatformerInput::jump

This should be set to true as long as JUMP is kept pressed.


The documentation for this class was generated from the following file:
Generated on Sun Mar 25 12:32:14 2007 for Qaf Framework by  doxygen 1.5.1-p1