Library for 3.2'' uLcd Picaso Display4D system Picaso Serial Environment Command Set web: http://www.4dsystems.com.au/product/20/67/Processors_Graphics/PICASO/
Player.h@1:a74e42cf52b2, 2015-04-05 (annotated)
- Committer:
- adelino
- Date:
- Sun Apr 05 13:54:48 2015 +0000
- Revision:
- 1:a74e42cf52b2
PicasoLib version 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adelino | 1:a74e42cf52b2 | 1 | #ifndef PLAYER_H |
adelino | 1:a74e42cf52b2 | 2 | #define PLYER_H |
adelino | 1:a74e42cf52b2 | 3 | |
adelino | 1:a74e42cf52b2 | 4 | #include "mbed.h" |
adelino | 1:a74e42cf52b2 | 5 | #include <string> |
adelino | 1:a74e42cf52b2 | 6 | |
adelino | 1:a74e42cf52b2 | 7 | class Player |
adelino | 1:a74e42cf52b2 | 8 | { |
adelino | 1:a74e42cf52b2 | 9 | public: |
adelino | 1:a74e42cf52b2 | 10 | |
adelino | 1:a74e42cf52b2 | 11 | Player(string _strName="None"); |
adelino | 1:a74e42cf52b2 | 12 | |
adelino | 1:a74e42cf52b2 | 13 | ~Player(void); |
adelino | 1:a74e42cf52b2 | 14 | |
adelino | 1:a74e42cf52b2 | 15 | //setter et getter |
adelino | 1:a74e42cf52b2 | 16 | int getLives(void) const; |
adelino | 1:a74e42cf52b2 | 17 | int getScore(void) const; |
adelino | 1:a74e42cf52b2 | 18 | int getCount(void) const; |
adelino | 1:a74e42cf52b2 | 19 | string getName(void) const; |
adelino | 1:a74e42cf52b2 | 20 | |
adelino | 1:a74e42cf52b2 | 21 | |
adelino | 1:a74e42cf52b2 | 22 | void setLives(int _lives); |
adelino | 1:a74e42cf52b2 | 23 | void setScore(int _score); |
adelino | 1:a74e42cf52b2 | 24 | void setCount(int _count); |
adelino | 1:a74e42cf52b2 | 25 | |
adelino | 1:a74e42cf52b2 | 26 | void decLives(void); |
adelino | 1:a74e42cf52b2 | 27 | void incCount(void); |
adelino | 1:a74e42cf52b2 | 28 | |
adelino | 1:a74e42cf52b2 | 29 | protected: |
adelino | 1:a74e42cf52b2 | 30 | |
adelino | 1:a74e42cf52b2 | 31 | string myName; |
adelino | 1:a74e42cf52b2 | 32 | int myLives; |
adelino | 1:a74e42cf52b2 | 33 | int myScore; |
adelino | 1:a74e42cf52b2 | 34 | int myCount; |
adelino | 1:a74e42cf52b2 | 35 | |
adelino | 1:a74e42cf52b2 | 36 | }; |
adelino | 1:a74e42cf52b2 | 37 | |
adelino | 1:a74e42cf52b2 | 38 | #endif |