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 LOPTICA_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 Loptica {
Vato 0:a5f6ba8c378e 8 int x, y;
Vato 0:a5f6ba8c378e 9 int x_korak, y_korak;
Vato 0:a5f6ba8c378e 10 public:
Vato 0:a5f6ba8c378e 11 Loptica(int x1, int y1, int x1_korak, int y1_korak) : x(x1), y(y1), x_korak(x1_korak), y_korak(y1_korak) {}
Vato 0:a5f6ba8c378e 12
Vato 0:a5f6ba8c378e 13 void setX(int broj);
Vato 0:a5f6ba8c378e 14 void setY(int broj);
Vato 0:a5f6ba8c378e 15
Vato 0:a5f6ba8c378e 16 int dajX();
Vato 0:a5f6ba8c378e 17 int dajY();
Vato 0:a5f6ba8c378e 18
Vato 0:a5f6ba8c378e 19 int dajKorakX();
Vato 0:a5f6ba8c378e 20 int dajKorakY();
Vato 0:a5f6ba8c378e 21
Vato 0:a5f6ba8c378e 22 void postaviKorak(int xKorak, int yKorak);
Vato 0:a5f6ba8c378e 23
Vato 0:a5f6ba8c378e 24 void crtajLopticu(N5110 &display);
Vato 0:a5f6ba8c378e 25 void brisiLopticu(N5110 &display);
Vato 0:a5f6ba8c378e 26 void osvjeziPoziciju();
Vato 0:a5f6ba8c378e 27 };
Vato 0:a5f6ba8c378e 28
Vato 0:a5f6ba8c378e 29 #endif