Implement basic rooms and navigation

This commit is contained in:
Timothy O'Barr
2026-08-20 08:10:07 -05:00
parent 707b88c736
commit 9b72d1588e
11 changed files with 125 additions and 115 deletions
+15 -12
View File
@@ -1,22 +1,25 @@
#pragma once
#include <iostream>
#include <string>
#include <math.h>
#include <string>
#include "creature.h"
class Player : Creature
{
class Player : Creature {
private:
// Inventory inventory;
private:
// Inventory inventory;
public:
// Lets keep the room a loose reference to avoid to many hardcoded details and other info
int curRoomID = -1;
int prevRoomID = -1;
void Init();
void LevelUp();
void Die();
void TakeDamage(int damageType, float damage);
float GetHealth();
public:
void Init() override;
void LevelUp() override;
void Die() override;
void TakeDamage(int damageType, float damage) override;
float GetHealth() override;
void ChangeRoom(int roomID);
};