checkin everything to test build on windows
This commit is contained in:
parent
875b0b2f88
commit
b1f5d882f0
16 changed files with 250 additions and 0 deletions
19
src/Actors/Actor.cpp
Normal file
19
src/Actors/Actor.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
// SPDX-FileCopyrightText: 2025 <copyright holder> <email>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "Actor.h"
|
||||
|
||||
Actor::Actor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Actor::Actor(const Actor& other)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Actor::~Actor()
|
||||
{
|
||||
|
||||
}
|
32
src/Actors/Actor.h
Normal file
32
src/Actors/Actor.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
// SPDX-FileCopyrightText: 2025 <copyright holder> <email>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#ifndef ACTOR_H
|
||||
#define ACTOR_H
|
||||
|
||||
/**
|
||||
* @todo write docs
|
||||
*/
|
||||
class Actor
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Default constructor
|
||||
*/
|
||||
Actor();
|
||||
|
||||
/**
|
||||
* Copy constructor
|
||||
*
|
||||
* @param other TODO
|
||||
*/
|
||||
Actor(const Actor& other);
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
~Actor();
|
||||
|
||||
};
|
||||
|
||||
#endif // ACTOR_H
|
8
src/DataStructures/ObjectPool.h
Normal file
8
src/DataStructures/ObjectPool.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef OBJECT_POOL_H
|
||||
#define OBJECT_POOL_H
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
22
src/Game.cpp
Normal file
22
src/Game.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
// SPDX-FileCopyrightText: 2025 <copyright holder> <email>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#include "Game.h"
|
||||
#include <SDL3/SDL_assert.h>
|
||||
#include <SDL3/SDL_log.h>
|
||||
#include <iostream>
|
||||
|
||||
Game::Game()
|
||||
{
|
||||
SDL_assert(1< 0);
|
||||
|
||||
int i = 7;
|
||||
i++;
|
||||
//std::cout << i << std::endl;
|
||||
}
|
||||
|
||||
Game::~Game()
|
||||
{
|
||||
|
||||
}
|
||||
|
26
src/Game.h
Normal file
26
src/Game.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
// SPDX-FileCopyrightText: 2025 <copyright holder> <email>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#ifndef GAME_H
|
||||
#define GAME_H
|
||||
|
||||
/**
|
||||
* @todo write docs
|
||||
*/
|
||||
class Game
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Default constructor
|
||||
*/
|
||||
Game();
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
~Game();
|
||||
|
||||
};
|
||||
|
||||
#endif // GAME_H
|
||||
|
0
src/World/Tile.cpp
Normal file
0
src/World/Tile.cpp
Normal file
19
src/World/Tile.h
Normal file
19
src/World/Tile.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef TILE_H
|
||||
#define TILE_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
class Tile
|
||||
{
|
||||
public:
|
||||
|
||||
private:
|
||||
int8_t tile_id_;
|
||||
SDL_Texture* texture;
|
||||
SDL_FRect tile_position;
|
||||
int i = SDL_RenderTexture()
|
||||
|
||||
};
|
||||
|
||||
#endif
|
0
src/World/map.cpp
Normal file
0
src/World/map.cpp
Normal file
23
src/World/map.h
Normal file
23
src/World/map.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef MAP_H
|
||||
#define MAP_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include "Tile.h"
|
||||
|
||||
class Map
|
||||
{
|
||||
public:
|
||||
|
||||
private:
|
||||
int16_t size_x_;
|
||||
int16_t size_y_;
|
||||
|
||||
int8_t* terrain_map_;
|
||||
Tile* tile_map_;
|
||||
std::vector<int16_t> static_objects_;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
0
src/World/map_file.cpp
Normal file
0
src/World/map_file.cpp
Normal file
30
src/World/map_file.h
Normal file
30
src/World/map_file.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
#ifndef MAP_FILE_H
|
||||
#define MAP_FILE_H
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
struct TileMapFile
|
||||
{
|
||||
std::string file_name;
|
||||
std::string material1;
|
||||
std::string material2;
|
||||
};
|
||||
|
||||
class MapFile
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
private:
|
||||
std::vector<TileMapFile> file_map_;
|
||||
std::map<int8_t, std::string> material_map_;
|
||||
int16_t size_x_;
|
||||
int16_t size_y_;
|
||||
int8_t * map_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
0
src/World/terain.cpp
Normal file
0
src/World/terain.cpp
Normal file
12
src/World/terain.h
Normal file
12
src/World/terain.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#ifndef TERAIN_H
|
||||
#define TERAIN_H
|
||||
|
||||
class Terain
|
||||
{
|
||||
public:
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue