From e710069aec1e0b9f16af1c261857f0c8f04b7ab0 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Fri, 2 Jun 2023 10:56:03 +0200 Subject: [PATCH] =?UTF-8?q?-=20Es=20poden=20consultar=20les=20portes=20de?= =?UTF-8?q?=20la=20habitaci=C3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/misc.h | 1 + source/room.cpp | 5 +++++ source/room.h | 1 + 3 files changed, 7 insertions(+) diff --git a/source/misc.h b/source/misc.h index 32033cf..ee724dc 100644 --- a/source/misc.h +++ b/source/misc.h @@ -1,4 +1,5 @@ #pragma once +#include struct vec2_t { diff --git a/source/room.cpp b/source/room.cpp index 355429c..83b8b4c 100644 --- a/source/room.cpp +++ b/source/room.cpp @@ -107,4 +107,9 @@ namespace room { return max; } + + uint8_t getDoors() + { + return doors; + } } diff --git a/source/room.h b/source/room.h index 8883c78..d06c266 100644 --- a/source/room.h +++ b/source/room.h @@ -14,4 +14,5 @@ namespace room vec3_t getSize(); vec3_t getMin(); vec3_t getMax(); + uint8_t getDoors(); }