mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
Ajout gestionTerrain + Ajout Sol solide
This commit is contained in:
@ -1,12 +1,26 @@
|
||||
#pragma once
|
||||
#include <Godot.hpp>
|
||||
#include <KinematicBody2D.hpp>
|
||||
#include <TileMap.hpp>
|
||||
#include <vector>
|
||||
|
||||
#include "Terrain.h"
|
||||
|
||||
class GestionTerrain
|
||||
using namespace godot;
|
||||
|
||||
class GestionTerrain : public TileMap
|
||||
{
|
||||
private:
|
||||
GODOT_CLASS(GestionTerrain, TileMap)
|
||||
|
||||
public:
|
||||
std::vector<Terrain> terrains;
|
||||
GestionTerrain();
|
||||
~GestionTerrain();
|
||||
|
||||
void static _register_methods();
|
||||
void _process();
|
||||
void _init();
|
||||
void _ready();
|
||||
|
||||
public:
|
||||
void AjoutMur(int sizeX, int sizeY, int posX, int posY);
|
||||
|
Reference in New Issue
Block a user