ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Floors/Floors.h

Committer:
el17m2h
Date:
2019-05-08
Revision:
24:67dc71a8f009
Parent:
21:6b16ca9834e6
Child:
26:d16a5b1e0ace

File content as of revision 24:67dc71a8f009:

#ifndef FLOORS_H
#define FLOORS_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Enemy.h"

/** Floors class
@brief Class for the floors 
@author Melissa Hartmann
@date May 2019
*/
class Floors{
public:
    Floors();
    ~Floors();
    
    /** 
    @brief defines the initial position of the bullet
    @param float dood_pos_x 
    @param float dood_pos_y
    @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position)
    */
    void init(int y, int width, int height);
    
    /** 
    @brief defines the initial position of the bullet
    @param float dood_pos_x 
    @param float dood_pos_y
    @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position)
    */
    void draw(N5110 &lcd);
    
    /** 
    @brief defines the initial position of the bullet
    @param float dood_pos_x 
    @param float dood_pos_y
    @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position)
    */
    void update(float doodler_pos_y);
    
    /** 
    @brief defines the initial position of the bullet
    @param float dood_pos_x 
    @param float dood_pos_y
    @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position)
    */
    Vector2D get_position(); 
    
    /** 
    @brief defines the initial position of the bullet
    @param float dood_pos_x 
    @param float dood_pos_y
    @details The intial position is in same position as doodler's trunk end (which is why I am adding the 12 and 4 to the doodler's position)
    */
    void set_position(Vector2D pos); // mutators
    
private:
    int _height;
    int _width;
    Vector2D _position;
    Enemy _eny;
    int place;
    
};
#endif