Kern Fowler / Mbed 2 deprecated Donkey_Kong_Game

Dependencies:   mbed

lib/Donkey/Donkey.h

Committer:
Kern_EL17KJTF
Date:
2019-05-08
Revision:
20:c4e6941c98e2
Parent:
13:94abfe83a294
Child:
27:167c716e3e9f

File content as of revision 20:c4e6941c98e2:

#ifndef DONKEY_H
#define DONKEY_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

/** External variables used inside and out of the class. */
extern int donkeykong_x;
extern int donkeykong_y;
extern int donkey_kong_speed;
extern int donkey_direction;

/** Donkey Kong Class
*@brief This class is for spawning the player controlled model Donkey Kong.
*@author Kern Fowler
*@version 1.0
*@date May 2019
*/

class Donkey {

public:
/** Donkey Kong Constructor 
@brief Builds my default Donkey Kong constructor.
@details This does not have any setup. 
*/
Donkey();
/** Donkey Kong Destructor 
@brief Builds my default Donkey Kong destructor.
@details This does not have any setup. 
*/
~Donkey();
// Mutators

/** 
*@brief Spawns Donkey Kong model.
*@param pad The Gamepad class is used.
*@param lcd The N5110 class is used.
*@details Creates the player controlled unit Donkey Kong, then moves it left or right based on joystick input. Points on collision with bananas. Gameover on collision with barrels.
*/
void donkeykong_movement(Gamepad &pad, N5110 &lcd);
};

#endif