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
Diff: AlienBullet/AlienBullet.h
- Revision:
- 30:4504b5dd47d1
- Parent:
- 29:1615c1cffa6f
- Child:
- 31:27c938ec2a11
--- a/AlienBullet/AlienBullet.h Sun May 17 15:09:49 2020 +0000
+++ b/AlienBullet/AlienBullet.h Sun May 17 15:15:27 2020 +0000
@@ -2,12 +2,23 @@
#include "N5110.h"
#include "Gamepad.h"
+/** Alien Bullet class
+* @brief Creates and controlsalien bullet object
+* @author Joshua O'hara
+* @date May, 2017
+*/
class AlienBullet
{
public:
+ /** Constructor */
AlienBullet();
+ /** Destructor */
~AlienBullet();
+ /** Set private variabls
+ * @param the x and y position of the bullet
+ */
void init(int x, int y); //initialises objects and sets private variables
+
void render(N5110 &lcd); //draws bullet
void update(); //udpdates private variables
//accessors and mutators