forked from University/epr24pr42-ojanssen2
main #1
16 changed files with 29 additions and 37 deletions
8
.idea/.gitignore
generated
vendored
8
.idea/.gitignore
generated
vendored
|
@ -1,8 +0,0 @@
|
||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
# Editor-based HTTP Client requests
|
|
||||||
/httpRequests/
|
|
||||||
# Datasource local storage ignored files
|
|
||||||
/dataSources/
|
|
||||||
/dataSources.local.xml
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "Entity.h"
|
#include "Entities/Entity.h"
|
||||||
#include "../Environment/Maze.h"
|
#include "Maze.h"
|
||||||
|
|
||||||
namespace game {
|
namespace game {
|
||||||
Entity::Entity(const Vector2d starting_position, const char display_character): pos(starting_position), display_character(display_character), move_left(true){}
|
Entity::Entity(const Vector2d starting_position, const char display_character): pos(starting_position), display_character(display_character), move_left(true){}
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../Util/Vector2d.h"
|
#include "Vector2d.h"
|
||||||
|
|
||||||
#ifndef ENTITY_H
|
#ifndef ENTITY_H
|
||||||
#define ENTITY_H
|
#define ENTITY_H
|
|
@ -1,8 +1,8 @@
|
||||||
#include "Game.h"
|
#include "Environment/Game.h"
|
||||||
#include "Maze.h"
|
#include "Environment/Maze.h"
|
||||||
#include "../Exceptions/MovementNotPossible.h"
|
#include "MovementNotPossible.h"
|
||||||
#include "../Exceptions/UnkownAction.h"
|
#include "../Exceptions/UnkownAction.h"
|
||||||
#include "../Util/Vector2d.h"
|
#include "Vector2d.h"
|
||||||
|
|
||||||
using game::Player;
|
using game::Player;
|
||||||
using game::Maze;
|
using game::Maze;
|
|
@ -1,7 +1,7 @@
|
||||||
#include "Maze.h"
|
#include "Environment/Maze.h"
|
||||||
#include "../Entities/Player.h"
|
#include "Player.h"
|
||||||
#include "../Util/GameState.h"
|
#include "GameState.h"
|
||||||
#include "../Entities/Entity.h"
|
#include "Entity.h"
|
||||||
|
|
||||||
#ifndef GAME_H
|
#ifndef GAME_H
|
||||||
#define GAME_H
|
#define GAME_H
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../std_lib_inc.h"
|
#include "std_lib_inc.h"
|
||||||
#ifndef MALFORMEDMAZE_H
|
#ifndef MALFORMEDMAZE_H
|
||||||
#define MALFORMEDMAZE_H
|
#define MALFORMEDMAZE_H
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "Maze.h"
|
#include "Environment/Maze.h"
|
||||||
#include "../Entities/Entity.h"
|
#include "Entity.h"
|
||||||
#include "../Entities/Player.h"
|
#include "Entities/Player.h"
|
||||||
#include "../Exceptions/MalformedMaze.h"
|
#include "MalformedMaze.h"
|
||||||
|
|
||||||
using game_exceptions::MalformedMaze;
|
using game_exceptions::MalformedMaze;
|
||||||
namespace game {
|
namespace game {
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef MAZE_H
|
#ifndef MAZE_H
|
||||||
#define MAZE_H
|
#define MAZE_H
|
||||||
|
|
||||||
#include "../Util/Vector2d.h"
|
#include "Vector2d.h"
|
||||||
#include "../std_lib_inc.h"
|
#include "std_lib_inc.h"
|
||||||
|
|
||||||
namespace game {
|
namespace game {
|
||||||
class Player;
|
class Player;
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../std_lib_inc.h"
|
#include "std_lib_inc.h"
|
||||||
#ifndef MOVEMENTNOTPOSSIBLE_H
|
#ifndef MOVEMENTNOTPOSSIBLE_H
|
||||||
#define MOVEMENTNOTPOSSIBLE_H
|
#define MOVEMENTNOTPOSSIBLE_H
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include "Player.h"
|
#include "Entities/Player.h"
|
||||||
#include "../Environment/Maze.h"
|
#include "../Environment/Maze.h"
|
||||||
#include "../Exceptions/MovementNotPossible.h"
|
#include "MovementNotPossible.h"
|
||||||
#include "../Util/GameState.h"
|
#include "GameState.h"
|
||||||
#include "../Environment/Game.h"
|
#include "Game.h"
|
||||||
|
|
||||||
using game::GameState;
|
using game::GameState;
|
||||||
using game::Game;
|
using game::Game;
|
|
@ -1,5 +1,5 @@
|
||||||
#include "../Util/Vector2d.h"
|
#include "../Util/Vector2d.h"
|
||||||
#include "../Util/GameState.h"
|
#include "GameState.h"
|
||||||
|
|
||||||
#ifndef PLAYER_H
|
#ifndef PLAYER_H
|
||||||
#define PLAYER_H
|
#define PLAYER_H
|
|
@ -1,4 +1,4 @@
|
||||||
#include "../std_lib_inc.h"
|
#include "std_lib_inc.h"
|
||||||
#ifndef UNKOWNACTION_H
|
#ifndef UNKOWNACTION_H
|
||||||
#define UNKOWNACTION_H
|
#define UNKOWNACTION_H
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "Vector2d.h"
|
#include "Util/Vector2d.h"
|
||||||
|
|
||||||
namespace game
|
namespace game
|
||||||
{
|
{
|
6
main.cpp
6
main.cpp
|
@ -1,7 +1,7 @@
|
||||||
#include "Environment/Maze.h"
|
#include "Environment/Maze.h"
|
||||||
#include "Environment/Game.h"
|
#include "Game.h"
|
||||||
#include "Exceptions/MalformedMaze.h"
|
#include "MalformedMaze.h"
|
||||||
#include "Util/GameState.h"
|
#include "GameState.h"
|
||||||
|
|
||||||
using game::Maze;
|
using game::Maze;
|
||||||
using game::Game;
|
using game::Game;
|
||||||
|
|
Loading…
Add table
Reference in a new issue