Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Walls/Walls.h

Committer:
el17sm
Date:
2019-05-09
Revision:
60:44ddfb791e2b
Parent:
Entity/Walls/Walls.h@ 59:fd4669864b67

File content as of revision 60:44ddfb791e2b:

#ifndef WALLS_H
#define WALLS_H
#include "Entity.h"
/**Walls Class
*@author Steven Mahasin
*@brief Creates a Static Wall which inherits the Entity class, not used yet in this version due to bugged spawn areas
*@date May 2019
*/
class Walls : public Entity
{
public:
    /** Constructor 
    *   @brief creates a wall at positions pos_x and pos_y
    *   @param pos_x - initialise _position.x
    *   @param pos_y - initialise _position.y
    *   @param hitbox_width - initialise _hitbox.width
    *   @param hitbox_height - initialise _hitbox.height
    */
    Walls(int pos_x, int pos_y, int hitbox_width, int hitbox_height);
    
    // Functions
    /**
    *   @brief just because entity has a pure virtual function move, the function is of no use in walls as it does not move
    *   @param unused - not used
    *   @param unused1 - not used
    *   @param unused2 - not used
    *   @param unused3 - not used
    */
    virtual void move(float unused, float unused1, char * unused2, bool * unused3); // movement control and miscellaneous updates
    /**
    *   @brief just because entity has a pure virtual function take_damage, the function is of no use in walls as it does take_damage
    *   @param unused - not used
    */
    virtual void take_damage(int unused);
    /**
    *   @brief a virtual function of drawing the walls onto the screen
    *   @param lcd - the screen where the wall is drawn on
    */
    virtual void draw(N5110 &lcd);
};

#endif