Untold Engine
Beta v0.0.16
docs
|
Inherits U4DEngine::U4DControllerInterface.
Inherited by U4DEngine::U4DGamepadController, U4DEngine::U4DKeyboardController, and U4DEngine::U4DTouchesController.
Public Member Functions | |
virtual void | init () |
void | update (double dt) |
void | registerInputEntity (U4DInputElement *uInputElement) |
void | removeInputEntity (U4DInputElement *uInputElement) |
void | notifyInputEntity () |
void | changeState (INPUTELEMENTTYPE uInputElementType, INPUTELEMENTACTION uInputAction, U4DVector2n &uPosition) |
void | setGameWorld (U4DWorld *uGameWorld) |
Sets the current view component of the game. More... | |
void | setGameLogic (U4DGameLogicInterface *uGameLogic) |
Sets the current Model component (MVC) of the game. More... | |
U4DWorld * | getGameWorld () |
Gets the current U4DWorld entity linked to the controller. More... | |
U4DGameLogicInterface * | getGameLogic () |
Gets the current U4DGameLogic object linked to the controller. More... | |
void | sendUserInputUpdate (void *uData) |
Sends user input to the linked U4DGameLogic. More... | |
void | setReceivedAction (bool uValue) |
Indicates that an action on the controller has been received. More... | |
virtual void | getUserInputData (unichar uCharacter, INPUTELEMENTACTION uInputAction) |
void | getUserInputData (INPUTELEMENTTYPE uInputElement, INPUTELEMENTACTION uInputAction, U4DVector2n &uPosition) |
void | getUserInputData (INPUTELEMENTTYPE uInputElement, INPUTELEMENTACTION uInputAction) |
virtual void | getUserInputData (GCExtendedGamepad *gamepad, GCControllerElement *element) |
Public Member Functions inherited from U4DEngine::U4DControllerInterface | |
virtual | ~U4DControllerInterface () |
Virtual destructor for interface. The actual destructor implementation is set by the subclasses. | |
Protected Attributes | |
U4DWorld * | gameWorld |
The view component (mvc) linked to the controller. More... | |
U4DGameLogicInterface * | gameLogic |
the model component (mvc) linked to the controller More... | |
bool | receivedAction |
variable to determine if an action was received | |
|
virtual |
Gets the current U4DGameLogic object linked to the controller.
The U4DGameLogic refers to the model component of the MVC
Implements U4DEngine::U4DControllerInterface.
|
virtual |
Gets the current U4DWorld entity linked to the controller.
The U4DWorld entity refers to the view component of the MVC
Implements U4DEngine::U4DControllerInterface.
|
virtual |
Sends user input to the linked U4DGameLogic.
The controller sends the user input information to the U4DGameLogic
uData | data containing the informationation about the user input |
Implements U4DEngine::U4DControllerInterface.
|
virtual |
Sets the current Model component (MVC) of the game.
The Model component referst to the U4DGameLogic object.
uGameLogic | the U4DGameLogic object |
Implements U4DEngine::U4DControllerInterface.
|
virtual |
Sets the current view component of the game.
The view component (MVC) refers to the U4DWorld entity used in the game
uGameWorld | the U4DWorld entity |
Implements U4DEngine::U4DControllerInterface.
|
virtual |
Indicates that an action on the controller has been received.
Gets set Whenever there is an action on the controller such as a press, release, movement.
uValue | true for action has been detected. |
Implements U4DEngine::U4DControllerInterface.
|
protected |
the model component (mvc) linked to the controller
The Model component refers to the U4DGameLogic object.