Class containing methods to draw a ball within the maze game with the specified position, size and fill style parameters.

Ball.h

Committer:
el15mh
Date:
2017-04-07
Revision:
1:ba8bb10ebd5a
Parent:
0:4c58ed26b6ea
Child:
2:bcb96ab2848b

File content as of revision 1:ba8bb10ebd5a:

//
//  ball.h
//
//
//  Created by Max Houghton on 19/03/2017.
//
//

#ifndef BALL_H
#define BALL_H

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

#define SPEED 1

class Ball
{
    
public:
    
    Ball();
    ~Ball();
    
    void init(int x, int y, int radius);
    void update();
    void draw(N5110 &lcd);
    
private:
    
    Vector2D velocity;
    
    int _radius;
    int _x;
    int _y;
    
};

#endif /* BALL_H */