Files
thepool/source/room.h
Raimon Zamora 9dc27d7e8b - 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
2024-06-05 14:23:16 +02:00

59 lines
1.3 KiB
C++

#pragma once
#include "misc.h"
#define NO_DOOR 0
#define DOOR_XP 1
#define DOOR_XN 2
#define DOOR_YP 4
#define DOOR_YN 8
#define XP 0
#define XN 1
#define YP 2
#define YN 3
#define ZP 4
#define ZN 5
namespace room
{
void init();
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();
vec3_t getSize();
vec3_t getMin();
vec3_t getMax();
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);
}
}