Tarik Demirović / Mbed 2 deprecated PAI_Grupa1_Projekat_Pong

Dependencies:   N5110 mbed

Committer:
Vato
Date:
Thu Jun 05 17:37:09 2014 +0000
Revision:
0:a5f6ba8c378e
PAI Pong v1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Vato 0:a5f6ba8c378e 1 #ifndef REKET_H
Vato 0:a5f6ba8c378e 2 #define REKET_H
Vato 0:a5f6ba8c378e 3
Vato 0:a5f6ba8c378e 4 #include "mbed.h"
Vato 0:a5f6ba8c378e 5 #include "N5110.h"
Vato 0:a5f6ba8c378e 6
Vato 0:a5f6ba8c378e 7 class Reket {
Vato 0:a5f6ba8c378e 8 int x1, x2, y1, y2;
Vato 0:a5f6ba8c378e 9 public:
Vato 0:a5f6ba8c378e 10 Reket(int x_1, int x_2, int y_1, int y_2) : x1(x_1), x2(x_2), y1(y_1), y2(y_2) {}
Vato 0:a5f6ba8c378e 11
Vato 0:a5f6ba8c378e 12 int dajX1();
Vato 0:a5f6ba8c378e 13 int dajX2();
Vato 0:a5f6ba8c378e 14 int dajY1();
Vato 0:a5f6ba8c378e 15 int dajY2();
Vato 0:a5f6ba8c378e 16
Vato 0:a5f6ba8c378e 17 void crtajReket(N5110 &display);
Vato 0:a5f6ba8c378e 18 void brisiReket(N5110 &display);
Vato 0:a5f6ba8c378e 19 void osvjeziPoziciju(AnalogIn &p1);
Vato 0:a5f6ba8c378e 20 };
Vato 0:a5f6ba8c378e 21
Vato 0:a5f6ba8c378e 22 #endif