Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Committer:
el17sm
Date:
Thu May 09 14:49:27 2019 +0000
Revision:
59:fd4669864b67
Parent:
58:c8d90bb7404a
wtf y no work

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el17sm 41:0697508a28ba 1 #ifndef WALLS_H
el17sm 41:0697508a28ba 2 #define WALLS_H
el17sm 41:0697508a28ba 3 #include "Entity.h"
el17sm 58:c8d90bb7404a 4 /**Walls Class
el17sm 59:fd4669864b67 5 *@author Steven Mahasin
el17sm 59:fd4669864b67 6 *@brief Creates a Static Wall which inherits the Entity class, not used yet in this version due to bugged spawn areas
el17sm 59:fd4669864b67 7 *@date May 2019
el17sm 58:c8d90bb7404a 8 */
el17sm 41:0697508a28ba 9 class Walls : public Entity
el17sm 41:0697508a28ba 10 {
el17sm 41:0697508a28ba 11 public:
el17sm 58:c8d90bb7404a 12 /** Constructor
el17sm 58:c8d90bb7404a 13 * @brief creates a wall at positions pos_x and pos_y
el17sm 59:fd4669864b67 14 * @param pos_x - initialise _position.x
el17sm 59:fd4669864b67 15 * @param pos_y - initialise _position.y
el17sm 59:fd4669864b67 16 * @param hitbox_width - initialise _hitbox.width
el17sm 59:fd4669864b67 17 * @param hitbox_height - initialise _hitbox.height
el17sm 58:c8d90bb7404a 18 */
el17sm 41:0697508a28ba 19 Walls(int pos_x, int pos_y, int hitbox_width, int hitbox_height);
el17sm 41:0697508a28ba 20
el17sm 41:0697508a28ba 21 // Functions
el17sm 58:c8d90bb7404a 22 /**
el17sm 58:c8d90bb7404a 23 * @brief just because entity has a pure virtual function move, the function is of no use in walls as it does not move
el17sm 59:fd4669864b67 24 * @param unused - not used
el17sm 59:fd4669864b67 25 * @param unused1 - not used
el17sm 59:fd4669864b67 26 * @param unused2 - not used
el17sm 59:fd4669864b67 27 * @param unused3 - not used
el17sm 58:c8d90bb7404a 28 */
el17sm 41:0697508a28ba 29 virtual void move(float unused, float unused1, char * unused2, bool * unused3); // movement control and miscellaneous updates
el17sm 58:c8d90bb7404a 30 /**
el17sm 58:c8d90bb7404a 31 * @brief just because entity has a pure virtual function take_damage, the function is of no use in walls as it does take_damage
el17sm 59:fd4669864b67 32 * @param unused - not used
el17sm 58:c8d90bb7404a 33 */
el17sm 58:c8d90bb7404a 34 virtual void take_damage(int unused);
el17sm 58:c8d90bb7404a 35 /**
el17sm 58:c8d90bb7404a 36 * @brief a virtual function of drawing the walls onto the screen
el17sm 59:fd4669864b67 37 * @param lcd - the screen where the wall is drawn on
el17sm 58:c8d90bb7404a 38 */
el17sm 41:0697508a28ba 39 virtual void draw(N5110 &lcd);
el17sm 41:0697508a28ba 40 };
el17sm 41:0697508a28ba 41
el17sm 41:0697508a28ba 42 #endif