ELEC2645 (2017/18) / Mbed 2 deprecated ll13jrm

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
JRM1986
Date:
Wed Feb 28 15:20:14 2018 +0000
Parent:
1:c3fdbc4b1293
Child:
3:50f01159c61d
Commit message:
Basic structure of .h & .cpp files complete including includes, and constructors/destructors

Changed in this revision

Food/Food.cpp Show annotated file Show diff for this revision Revisions of this file
Food/Food.h Show annotated file Show diff for this revision Revisions of this file
Snake/Snake.cpp Show annotated file Show diff for this revision Revisions of this file
Snake/Snake.h Show annotated file Show diff for this revision Revisions of this file
SnakeEngine/SnakeEngine.cpp Show annotated file Show diff for this revision Revisions of this file
SnakeEngine/SnakeEngine.h Show annotated file Show diff for this revision Revisions of this file
--- a/Food/Food.cpp	Wed Feb 28 14:58:21 2018 +0000
+++ b/Food/Food.cpp	Wed Feb 28 15:20:14 2018 +0000
@@ -0,0 +1,12 @@
+#include "Food.h"
+
+
+Food::Food()
+{
+
+}
+
+Food::~Food()
+{
+
+}
\ No newline at end of file
--- a/Food/Food.h	Wed Feb 28 14:58:21 2018 +0000
+++ b/Food/Food.h	Wed Feb 28 15:20:14 2018 +0000
@@ -1,5 +1,27 @@
-/** My Sample Class
+#ifndef FOOD_H
+#define FOOD_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "GamePad.h"
+#include "FXOS8700CQ.h"
+
+/** Food Class
 * @brief Describes the methods and functions for the food
 * @author Joshua R. Marshall
 * @date Feb, 2018
-*
\ No newline at end of file
+*/
+
+class Food
+{
+
+public:
+    Food(); // constructor
+    ~Food(); // destructor
+
+    
+private:
+
+
+};
+#endif
\ No newline at end of file
--- a/Snake/Snake.cpp	Wed Feb 28 14:58:21 2018 +0000
+++ b/Snake/Snake.cpp	Wed Feb 28 15:20:14 2018 +0000
@@ -0,0 +1,12 @@
+#include "Snake.h"
+
+
+Snake::Snake()
+{
+
+}
+
+Snake::~Snake()
+{
+
+}
\ No newline at end of file
--- a/Snake/Snake.h	Wed Feb 28 14:58:21 2018 +0000
+++ b/Snake/Snake.h	Wed Feb 28 15:20:14 2018 +0000
@@ -1,5 +1,26 @@
-/** My Sample Class
+#ifndef SNAKE_H
+#define SNAKE_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "GamePad.h"
+#include "FXOS8700CQ.h"
+
+/** Snake Class
 * @brief Describes the methods and functions for the snake
 * @author Joshua R. Marshall
 * @date Feb, 2018
-*
\ No newline at end of file
+*/
+class Snake
+{
+
+public:
+    Snake(); // constructor
+    ~Snake(); // destructor
+
+    
+private:
+
+
+};
+#endif
\ No newline at end of file
--- a/SnakeEngine/SnakeEngine.cpp	Wed Feb 28 14:58:21 2018 +0000
+++ b/SnakeEngine/SnakeEngine.cpp	Wed Feb 28 15:20:14 2018 +0000
@@ -0,0 +1,12 @@
+#include "SnakeEngine.h"
+
+
+SnakeEngine::SnakeEngine()
+{
+
+}
+
+SnakeEngine::~SnakeEngine()
+{
+
+}
\ No newline at end of file
--- a/SnakeEngine/SnakeEngine.h	Wed Feb 28 14:58:21 2018 +0000
+++ b/SnakeEngine/SnakeEngine.h	Wed Feb 28 15:20:14 2018 +0000
@@ -1,5 +1,26 @@
-/** My Sample Class
+#ifndef SNAKEENGINE_H
+#define SNAKEENGINE_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "GamePad.h"
+#include "FXOS8700CQ.h"
+
+/** SnakeEngine Class
 * @brief Class that initialises and defines the game charectoristics ready for the main file
 * @author Joshua R. Marshall
 * @date Feb, 2018
-*
\ No newline at end of file
+*/
+class SnakeEngine
+{
+
+public:
+    SnakeEngine(); // constructor
+    ~SnakeEngine(); // destructor
+
+    
+private:
+
+
+};
+#endif
\ No newline at end of file