Project structure and UML first draft
This commit is contained in:
parent
b0aeb31492
commit
2b9593bee8
10 changed files with 109 additions and 0 deletions
12
src/CMakeLists.txt
Normal file
12
src/CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
cmake_minimum_required(VERSION 3.14)
|
||||
project(src)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
|
||||
|
||||
add_library(engine Level.cpp Level.h Entity.cpp Entity.h)
|
||||
|
||||
target_link_libraries(engine
|
||||
sfml-window
|
||||
sfml-graphics
|
||||
sfml-system)
|
5
src/Entity.cpp
Normal file
5
src/Entity.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
//
|
||||
// Created by trotfunky on 06/06/19.
|
||||
//
|
||||
|
||||
#include "Entity.h"
|
14
src/Entity.h
Normal file
14
src/Entity.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
//
|
||||
// Created by trotfunky on 06/06/19.
|
||||
//
|
||||
|
||||
#ifndef SRC_ENTITY_H
|
||||
#define SRC_ENTITY_H
|
||||
|
||||
|
||||
class Entity {
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif //SRC_ENTITY_H
|
5
src/Level.cpp
Normal file
5
src/Level.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
//
|
||||
// Created by trotfunky on 06/06/19.
|
||||
//
|
||||
|
||||
#include "Level.h"
|
18
src/Level.h
Normal file
18
src/Level.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
//
|
||||
// Created by trotfunky on 06/06/19.
|
||||
//
|
||||
|
||||
#ifndef SRC_LEVEL_H
|
||||
#define SRC_LEVEL_H
|
||||
|
||||
|
||||
class Level {
|
||||
Level();
|
||||
|
||||
private:
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
|
||||
|
||||
#endif //SRC_LEVEL_H
|
Loading…
Add table
Add a link
Reference in a new issue