- 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user