ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18rg

Dependencies:   mbed Gamepad2 ELEC2645_Project_el18rg

Dependents:   ELEC2645_Project_el18rg

Collision/Collision.h

Committer:
el18rg
Date:
2020-05-27
Revision:
2:b936aa854de2
Child:
3:2f4a7787beb3

File content as of revision 2:b936aa854de2:

#ifndef COLLISION_H
#define COLLISION_H
 
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
 
class Collision {
 
public:
  
  /** Constructor */
  Collision();
  
  /** Destructor */
  ~Collision();
 
  /** Checks if the pixel below the arrow has hit another activated pixel
  * @return Return true if a activatd pixel is detected, false if not
  */
  bool bottom(N5110 &lcd, int x, int y);
 
};
 
#endif