Changed *.h files to *.hpp
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#include "base_scene.h"
|
#include "base_scene.hpp"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef BASESCENE_H_
|
#ifndef BASESCENE_HPP_
|
||||||
#define BASESCENE_H_
|
#define BASESCENE_HPP_
|
||||||
|
|
||||||
#include "scene_list.h"
|
#include "scene_list.hpp"
|
||||||
|
|
||||||
#include "SDL/SDL.h"
|
#include "SDL/SDL.h"
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef DEFINES_H_
|
#ifndef DEFINES_HPP_
|
||||||
#define DEFINES_H_
|
#define DEFINES_HPP_
|
||||||
|
|
||||||
enum class Direction {
|
enum class Direction {
|
||||||
NORTH = 1, SOUTH = 2,
|
NORTH = 1, SOUTH = 2,
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef DELTA_H_
|
#ifndef DELTA_HPP_
|
||||||
#define DELTA_H_
|
#define DELTA_HPP_
|
||||||
|
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#include "image.h"
|
#include "image.hpp"
|
||||||
|
|
||||||
Image::Image(SDL_Surface* p) {
|
Image::Image(SDL_Surface* p) {
|
||||||
SetSurface(p);
|
SetSurface(p);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef IMAGE_H_
|
#ifndef IMAGE_HPP_
|
||||||
#define IMAGE_H_
|
#define IMAGE_HPP_
|
||||||
|
|
||||||
#include "SDL/SDL.h"
|
#include "SDL/SDL.h"
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#include "in_game.h"
|
#include "in_game.hpp"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
#ifndef INGAME_H_
|
#ifndef INGAME_HPP_
|
||||||
#define INGAME_H_
|
#define INGAME_HPP_
|
||||||
|
|
||||||
#include "base_scene.h"
|
#include "base_scene.hpp"
|
||||||
|
|
||||||
#include "delta.h"
|
#include "delta.hpp"
|
||||||
#include "player.h"
|
#include "player.hpp"
|
||||||
#include "surface_manager.h"
|
#include "surface_manager.hpp"
|
||||||
|
|
||||||
class InGame : public BaseScene {
|
class InGame : public BaseScene {
|
||||||
public:
|
public:
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#include "scene_manager.h"
|
#include "scene_manager.hpp"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#include "player.h"
|
#include "player.hpp"
|
||||||
|
|
||||||
#define ANIMATION_SPEED 100
|
#define ANIMATION_SPEED 100
|
||||||
#define WALKING_SPEED 0.14
|
#define WALKING_SPEED 0.14
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#ifndef PLAYER_H_
|
#ifndef PLAYER_HPP_
|
||||||
#define PLAYER_H_
|
#define PLAYER_HPP_
|
||||||
|
|
||||||
#include "defines.h"
|
#include "defines.hpp"
|
||||||
#include "vector2.h"
|
#include "vector2.hpp"
|
||||||
#include "sprite_sheet.h"
|
#include "sprite_sheet.hpp"
|
||||||
|
|
||||||
#include "SDL/SDL.h"
|
#include "SDL/SDL.h"
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef SCENELIST_H_
|
#ifndef SCENELIST_HPP_
|
||||||
#define SCENELIST_H_
|
#define SCENELIST_HPP_
|
||||||
|
|
||||||
enum class SceneList {
|
enum class SceneList {
|
||||||
//these are reserved
|
//these are reserved
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "scene_manager.h"
|
#include "scene_manager.hpp"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
//-------------------------
|
//-------------------------
|
||||||
|
|
||||||
//Add the custom scene headers here
|
//Add the custom scene headers here
|
||||||
#include "test_systems.h"
|
#include "test_systems.hpp"
|
||||||
#include "in_game.h"
|
#include "in_game.hpp"
|
||||||
|
|
||||||
//-------------------------
|
//-------------------------
|
||||||
//Public access members
|
//Public access members
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#ifndef SCENEMANAGER_H_
|
#ifndef SCENEMANAGER_HPP_
|
||||||
#define SCENEMANAGER_H_
|
#define SCENEMANAGER_HPP_
|
||||||
|
|
||||||
#include "scene_list.h"
|
#include "scene_list.hpp"
|
||||||
#include "base_scene.h"
|
#include "base_scene.hpp"
|
||||||
|
|
||||||
#include "SDL/SDL.h"
|
#include "SDL/SDL.h"
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "sprite_sheet.h"
|
#include "sprite_sheet.hpp"
|
||||||
|
|
||||||
SpriteSheet::SpriteSheet(SDL_Surface* s, Uint16 w, Uint16 h)
|
SpriteSheet::SpriteSheet(SDL_Surface* s, Uint16 w, Uint16 h)
|
||||||
: Image(s, {0, 0, w, h})
|
: Image(s, {0, 0, w, h})
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef SPRITESHEET_H_
|
#ifndef SPRITESHEET_HPP_
|
||||||
#define SPRITESHEET_H_
|
#define SPRITESHEET_HPP_
|
||||||
|
|
||||||
#include "image.h"
|
#include "image.hpp"
|
||||||
|
|
||||||
#include "SDL/SDL.h"
|
#include "SDL/SDL.h"
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "surface_manager.h"
|
#include "surface_manager.hpp"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef SURFACEMANAGER_H_
|
#ifndef SURFACEMANAGER_HPP_
|
||||||
#define SURFACEMANAGER_H_
|
#define SURFACEMANAGER_HPP_
|
||||||
|
|
||||||
#include "SDL/SDL.h"
|
#include "SDL/SDL.h"
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "test_systems.h"
|
#include "test_systems.hpp"
|
||||||
|
|
||||||
//-------------------------
|
//-------------------------
|
||||||
//Public access members
|
//Public access members
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef TESTSYSTEMS_H_
|
#ifndef TESTSYSTEMS_HPP_
|
||||||
#define TESTSYSTEMS_H_
|
#define TESTSYSTEMS_HPP_
|
||||||
|
|
||||||
#include "base_scene.h"
|
#include "base_scene.hpp"
|
||||||
|
|
||||||
class TestSystems : public BaseScene {
|
class TestSystems : public BaseScene {
|
||||||
public:
|
public:
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef VECTOR2_H_
|
#ifndef VECTOR2_HPP_
|
||||||
#define VECTOR2_H_
|
#define VECTOR2_HPP_
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
Reference in New Issue
Block a user