ELEC2645 (2018/19) / Mbed 2 deprecated el17lw

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

EngineController Class Reference

EngineController Class Reference

EngineController Class. More...

#include <EngineController.h>

Public Member Functions

 EngineController ()
 Constructor.
 ~EngineController ()
 Destructor.
void init ()
 Initialises the Game Engine Controller object.
void run_game_engine (N5110 &lcd, Gamepad &gamepad)
 Runs the game via controlling the game engine.

Detailed Description

EngineController Class.

Class to interface with the game engine

Author:
Lewis Wooltorton
Date:
March 2019
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "EngineController.h"

N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Gamepad gamepad;
EngineController controller;

int main() {
  controller.init();
  while(1) {
    
    // Run the game.
    controller.run_game_engine(lcd, gamepad);  
  }     
}  

Definition at line 37 of file EngineController.h.


Constructor & Destructor Documentation

Constructor.

Non user specified.

Definition at line 32 of file EngineController.cpp.

Destructor.

Non user specified.

Definition at line 34 of file EngineController.cpp.


Member Function Documentation

void init (  )

Initialises the Game Engine Controller object.

Definition at line 36 of file EngineController.cpp.

void run_game_engine ( N5110 lcd,
Gamepad gamepad 
)

Runs the game via controlling the game engine.

Parameters:
&lcdThe lcd object from the N5110 class
&gamepadThe gamepad object from Gamepad class

Definition at line 45 of file EngineController.cpp.