наброски для файлов модели

This commit is contained in:
Антон 2024-03-31 20:07:02 +03:00
parent 5e4b929fdd
commit 9b1277332d
5 changed files with 23 additions and 0 deletions

1
src/model/Dog.cpp Normal file
View File

@ -0,0 +1 @@
#include "Dog.h"

5
src/model/Dog.h Normal file
View File

@ -0,0 +1,5 @@
namespace model
{
class Dog
{};
}

View File

@ -3,11 +3,13 @@
#include <vector>
#include "Map.h"
#include "GameSession.h"
namespace model
{
class Game
{
std::vector<Map> maps_;
std::vector<GameSession> sessions_;
};
}

View File

@ -0,0 +1 @@
#include "GameSession.h"

14
src/model/GameSession.h Normal file
View File

@ -0,0 +1,14 @@
#include <vector>
#include <memory>
#include "Dog.h"
#include "Map.h"
namespace model
{
class GameSession
{
std::vector<Dog> dogs_;
std::shared_ptr<Map> map_;
};
}