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 MotionSensor
Diff: Entity/Player/Bullets/Bullets.h
- Revision:
- 59:fd4669864b67
- Parent:
- 58:c8d90bb7404a
--- a/Entity/Player/Bullets/Bullets.h Thu May 09 14:43:45 2019 +0000
+++ b/Entity/Player/Bullets/Bullets.h Thu May 09 14:49:27 2019 +0000
@@ -3,9 +3,9 @@
#include "Entity.h"
/**Bullets Class
-@author Steven Mahasin
-@brief Creates a Bullet which inherits the Entity class, this will be a created projectile by the player class
-@date May 2019
+*@author Steven Mahasin
+*@brief Creates a Bullet which inherits the Entity class, this will be a created projectile by the player class
+*@date May 2019
*/
class Bullets : public Entity
{
@@ -13,35 +13,35 @@
public:
/** Constructor
* @brief creates a bullet at positions pos_x and pos_y travelling at face dir
- * @param pos_x @details initialise _position.x
- * @param pos_y @details initialise _position.y
- * @param dir @details initialise _face
+ * @param pos_x - initialise _position.x
+ * @param pos_y - initialise _position.y
+ * @param dir - initialise _face
*/
Bullets(float pos_x, float pos_y, int dir);
// Functions
/**
* @brief function moves the bullet on it's face at a speed
- * @param speed @details the speed of the bullet
- * @param unused @details not used
- * @param map @details not used
- * @param doorways @details not used
+ * @param speed - the speed of the bullet
+ * @param unused - not used
+ * @param map - not used
+ * @param doorways - not used
*/
virtual void move(float speed, float unused, char * map, bool * doorways);
/**
* @brief draws the bullet onto the screen
- * @param lcd @details the screen where the bullet is drawn
+ * @param lcd - the screen where the bullet is drawn
*/
virtual void draw(N5110 &lcd);
/**
* @brief reduce _hp by damage
- * @param damage @details the amount of damage to be taken
+ * @param damage - the amount of damage to be taken
*/
virtual void take_damage(int damage);
/**
* @brief checks if the bullet is out of bounds (hit wall or out of screen)
- * @param map @details the 2d map array that dictates where there are walls or empty space
- * @param doorways @details an array that dictates which side of the wall has a doorway
+ * @param map - the 2d map array that dictates where there are walls or empty space
+ * @param doorways - an array that dictates which side of the wall has a doorway
* @returns true if bullet is out of bounds
*/
bool out_of_bounds_check(char * map, bool * doorways);