FINAL VERSION

Dependencies:   mbed

Laser/Laser.h

Committer:
jamesheavey
Date:
2019-04-24
Revision:
28:d058f7f5885d
Child:
36:cb73014d3a99

File content as of revision 28:d058f7f5885d:

#ifndef LASER_H
#define LASER_H

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

/** Laser Class
@author Dr Craig A. Evans, University of Leeds
@brief Controls the Laser in the Pong game 
@date Febraury 2017
*/ 
class Laser
{

public:
    Laser();
    ~Laser();
    void init(int x);
    void draw(N5110 &lcd);
    void update();
    /// accessors and mutators
    Vector2D get_pos();
    void set_pos(Vector2D p);
    
private:

    Vector2D _velocity;
    int _x;
    int _y;
};
#endif