- Carrega de l'habitació des de arxiu

- Traslladem a jutil funcionetes varies
- Comencem a implementar carrega de actors des de arxiu
- Comencem a implementar els templates de actors
This commit is contained in:
2024-06-05 14:23:16 +02:00
parent e2bae91000
commit 9dc27d7e8b
9 changed files with 285 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "misc.h"
#define NO_DOOR 0
#define DOOR_XP 1
#define DOOR_XN 2
#define DOOR_YP 4
@@ -10,11 +11,14 @@
#define XN 1
#define YP 2
#define YN 3
#define ZP 4
#define ZN 5
namespace room
{
void init();
void load(int x, int y, int8_t xp, int8_t xn, int8_t yp, int8_t yn, uint8_t col, uint8_t floor, uint8_t walls, uint8_t door, uint8_t doorwall);
void load(const int room);
//void load(int x, int y, int8_t xp, int8_t xn, int8_t yp, int8_t yn, uint8_t col, uint8_t floor, uint8_t walls, uint8_t door, uint8_t doorwall);
void draw();
void draw2();
@@ -24,4 +28,31 @@ namespace room
uint8_t getDoors();
uint8_t getDoor(const int d);
uint8_t getColor();
namespace editor
{
void setWidth(const int value);
void setHeight(const int value);
void setDoor(const int which, const int value);
void setColor(const int value);
void setFloorTex(const int value);
void setWallTex(const int value);
void setDoorTex(const int value);
void setWallDoorTex(const int value);
void setExit(const int which, const int value);
const int getWidth();
const int getHeight();
const int getDoor(const int which);
const int getColor();
const int getFloorTex();
const int getWallTex();
const int getDoorTex();
const int getWallDoorTex();
const int getExit(const int which);
}
}