Untold Engine
Beta v0.0.16
docs
|
The U4DController interface provides the behaviors for the different type of controllers. More...
Inherited by U4DEngine::U4DGameController.
Public Member Functions | |
virtual | ~U4DControllerInterface () |
Virtual destructor for interface. The actual destructor implementation is set by the subclasses. | |
virtual void | changeState (INPUTELEMENTTYPE uInputElementType, INPUTELEMENTACTION uInputAction, U4DVector2n &uPosition)=0 |
virtual void | init ()=0 |
initialization method More... | |
virtual void | update (double dt)=0 |
virtual void | setGameWorld (U4DWorld *uGameWorld)=0 |
Sets the current view component of the game. More... | |
virtual void | setGameLogic (U4DGameLogicInterface *uGameLogic)=0 |
Sets the current Model component (MVC) of the game. More... | |
virtual U4DWorld * | getGameWorld ()=0 |
Gets the current U4DWorld entity linked to the controller. More... | |
virtual U4DGameLogicInterface * | getGameLogic ()=0 |
Gets the current U4DGameLogic object linked to the controller. More... | |
virtual void | setReceivedAction (bool uValue)=0 |
Indicates that an action on the controller has been received. More... | |
virtual void | sendUserInputUpdate (void *uData)=0 |
Sends user input to the linked U4DGameLogic. More... | |
virtual void | getUserInputData (unichar uCharacter, INPUTELEMENTACTION uInputAction)=0 |
virtual void | getUserInputData (INPUTELEMENTTYPE uInputElement, INPUTELEMENTACTION uInputAction, U4DVector2n &uPosition)=0 |
virtual void | getUserInputData (INPUTELEMENTTYPE uInputElement, INPUTELEMENTACTION uInputAction)=0 |
virtual void | getUserInputData (GCExtendedGamepad *gamepad, GCControllerElement *element)=0 |
The U4DController interface provides the behaviors for the different type of controllers.
|
pure virtual |
Gets the current U4DGameLogic object linked to the controller.
The U4DGameLogic refers to the model component of the MVC
Implemented in U4DEngine::U4DGameController.
|
pure virtual |
Gets the current U4DWorld entity linked to the controller.
The U4DWorld entity refers to the view component of the MVC
Implemented in U4DEngine::U4DGameController.
|
pure virtual |
initialization method
In the initialization method, controller entities such as buttons, joysticks, keyboards are created. callbacks are also created and linked
Implemented in U4DEngine::U4DGamepadController, U4DEngine::U4DKeyboardController, and U4DEngine::U4DTouchesController.
|
pure 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 |
Implemented in U4DEngine::U4DGameController.
|
pure virtual |
Sets the current Model component (MVC) of the game.
The Model component refers to the U4DGameLogic object.
uGameLogic | the U4DGameLogic object |
Implemented in U4DEngine::U4DGameController.
|
pure 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 |
Implemented in U4DEngine::U4DGameController.
|
pure 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. |
Implemented in U4DEngine::U4DGameController.