This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <SFML/Graphics.hpp> | |
#include <string> | |
#include "Constants.h" | |
#include "Paddle.h" | |
#include "Ball.h" | |
/* This class will hold the state of the game, | |
* the state will be used by initialize, render and update functions, | |
* because the functions will be chaning the state of the class defined below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define private public | |
#include <iostream> | |
class Integer | |
{ | |
int _value; | |
private: | |
Integer(int value = 0) : _value(value) {}; | |
Integer operator+(const Integer&) const; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "..\Header\stack.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
void stackpush(Stack ** stack, int value) | |
{ | |
assert(stack != NULL); | |
/* perhaps there is way to do it without this if ... else */ |