Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- class Game {
- private:
- int szerokosc, dlugosc;
- public:
- Game(int szerokosc, int dlugosc) {
- this->szerokosc = szerokosc;
- this->dlugosc = dlugosc;
- }
- void pressUp() {
- }
- void pressDown() {
- }
- void pressLeft() {
- }
- void pressRight() {
- }
- void step() {
- }
- int getPoints() {
- }
- void show() {
- }
- void setDirection(int direction) {
- switch (direction) {
- case 0:
- pressUp();
- break;
- case 1:
- pressDown();
- break;
- case 2:
- pressLeft();
- break;
- case 4:
- pressRight();
- break;
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement