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: C12832 FXOS8700Q mbed-rtos mbed
Diff: Player.h
- Revision:
- 0:9ec880239b3c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Player.h Mon Feb 15 18:18:16 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef _PLAYER_H_
+# define _PLAYER_H_
+
+# include "main.h"
+
+class Player
+{
+public:
+ Player();
+ bool move(const int&, const int&);
+ bool die();
+ int getX() const;
+ int getY() const;
+ bool isAlive() const;
+private:
+ float x;
+ float y;
+ bool alive;
+};
+
+#endif /* _PLAYER_H_ */
\ No newline at end of file