Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Revision 2:ea90cec2489a, committed 2018-02-28
- 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
--- 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