Skip to content

Commit

Permalink
Added windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianHawkmoon committed Jan 25, 2016
1 parent 116c9ad commit f55dfc4
Show file tree
Hide file tree
Showing 67 changed files with 99 additions and 179 deletions.
2 changes: 0 additions & 2 deletions nbproject/private/configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
<gdb_interceptlist>
<gdbinterceptoptions gdb_all="false" gdb_unhandled="true" gdb_unexpected="true"/>
</gdb_interceptlist>
<gdb_signals>
</gdb_signals>
<gdb_options>
<DebugOptions>
</DebugOptions>
Expand Down

This file was deleted.

16 changes: 14 additions & 2 deletions nbproject/private/private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,22 @@
<group name="Tetris"/>
<group name="Tetris SDL"/>
<group>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/Score.h</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/main.cpp</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/Game.h</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/main.cpp</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/Window.cpp</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/Score.cpp</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/Score.h</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/mainTestShapes.cpp</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/SShape.h</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/TShape.h</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/ZShape.h</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/nbproject/private/private.xml</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/EmptySquare.cpp</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/EmptySquare.h</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/Square.cpp</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/Square.h</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/TShape.cpp</file>
<file>file:/media/Datos/Proyectos/Codigo/C++/Tetris/src/ZShape.cpp</file>
</group>
</open-files>
</project-private>
53 changes: 0 additions & 53 deletions src/BombShape.cpp

This file was deleted.

Empty file modified src/Command.cpp
100644 → 100755
Empty file.
Empty file modified src/Command.h
100644 → 100755
Empty file.
Empty file modified src/EmptySquare.cpp
100644 → 100755
Empty file.
14 changes: 5 additions & 9 deletions src/EmptySquare.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#define EMPTYSQUARE_H

#include "Square.h"
#include <SDL2/SDL.h>


class EmptySquare : public Square {
Expand All @@ -26,12 +25,11 @@ class EmptySquare : public Square {
y=-10;
}
virtual ~EmptySquare(){}

inline void setGraphics(SDL_Texture &image){}

virtual inline void setImage(SDL_Texture &image) {

}

virtual void setImage(sf::Texture * image) {}


virtual void paint(sf::RenderWindow* pLienzo) {}

virtual inline void setX(int x) {

Expand All @@ -57,8 +55,6 @@ class EmptySquare : public Square {
return new EmptySquare(*this);
}

void paint(SDL_Renderer* pLienzo){}

private:

};
Expand Down
Empty file modified src/EventManager.cpp
100644 → 100755
Empty file.
Empty file modified src/EventManager.h
100644 → 100755
Empty file.
Empty file modified src/Fall.cpp
100644 → 100755
Empty file.
Empty file modified src/Fall.h
100644 → 100755
Empty file.
Empty file modified src/FallEvent.cpp
100644 → 100755
Empty file.
Empty file modified src/FallEvent.h
100644 → 100755
Empty file.
Empty file modified src/FallToGround.cpp
100644 → 100755
Empty file.
Empty file modified src/FallToGround.h
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions src/Game.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Game::Game() : title() {
/* initialize random seed: */
srand(time(NULL));
srand(static_cast<unsigned int>(time(NULL)));
score = nullptr;
letsQuit = false;
shapeFalling = nullptr;
Expand Down Expand Up @@ -51,7 +51,7 @@ void Game::loadSounds() {

Game::Game(const Game &orig) {
/* initialize random seed: */
srand(time(NULL));
srand(static_cast<unsigned int>(time(NULL)));
letsQuit = orig.letsQuit;
shapeFalling = orig.shapeFalling;
nextShape = orig.nextShape;
Expand Down
Empty file modified src/Game.h
100644 → 100755
Empty file.
Empty file modified src/HashEnum.h
100644 → 100755
Empty file.
Empty file modified src/IShape.cpp
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion src/IShape.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#ifndef ISHAPE_H
#define ISHAPE_H

#include <SDL2/SDL_image.h>
#include "Square.h"
#include "EmptySquare.h"
#include "Shape.h"
Expand Down
Empty file modified src/Images.h
100644 → 100755
Empty file.
Empty file modified src/ImagesManager.cpp
100644 → 100755
Empty file.
Empty file modified src/ImagesManager.h
100644 → 100755
Empty file.
Empty file modified src/ImportsShapes.h
100644 → 100755
Empty file.
Empty file modified src/JShape.cpp
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion src/JShape.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#ifndef JSHAPE_H
#define JSHAPE_H

#include <SDL2/SDL_image.h>
#include "Square.h"
#include "Shape.h"
#include "EmptySquare.h"
Expand Down
Empty file modified src/LShape.cpp
100644 → 100755
Empty file.
2 changes: 0 additions & 2 deletions src/LShape.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#ifndef LSHAPE_H
#define LSHAPE_H

#include <SDL2/SDL_image.h>
#include "Square.h"
#include "EmptySquare.h"
#include "Shape.h"
Expand Down Expand Up @@ -64,7 +63,6 @@ class LShape : public Shape {
*/
static const int NUMBER_OF_SQUARES = 4;

SDL_Texture* image;

/**
* Coordinates to make the shape
Expand Down
Empty file modified src/LeftRight.cpp
100644 → 100755
Empty file.
Empty file modified src/LeftRight.h
100644 → 100755
Empty file.
Empty file modified src/MeassureBoard.h
100644 → 100755
Empty file.
Empty file modified src/MeassureMargin.h
100644 → 100755
Empty file.
Empty file modified src/OShape.cpp
100644 → 100755
Empty file.
3 changes: 0 additions & 3 deletions src/OShape.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#ifndef OSHAPE_H
#define OSHAPE_H

#include <SDL2/SDL_image.h>
#include "Square.h"
#include "EmptySquare.h"
#include "Shape.h"
Expand Down Expand Up @@ -65,8 +64,6 @@ class OShape : public Shape {
*/
static const int NUMBER_OF_SQUARES=4;

SDL_Texture* image;

/**
* Coordinates to make the shape
* Just a matrix with ougths and ones where a one indicates a shape
Expand Down
Loading

0 comments on commit f55dfc4

Please sign in to comment.