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
+18 -15
View File
@@ -1,28 +1,31 @@
#include "player.h"
void Player::Init()
{
// initalize stats, room location, inventory and item data
void Player::Init() {
// initialize stats, room location, inventory and item data
stats = Stats{100.0f, 50.00f, 150.00f, 50.00f};
name = "Player";
}
void Player::LevelUp()
{
void Player::LevelUp() {}
void Player::Die() {
// Now. You must, die!
}
void Player::Die()
{
// Now. You must, die!
void Player::TakeDamage(int damageType, float damage) {
// Ouch
}
void Player::TakeDamage(int damageType, float damage)
{
// Ouch
}
float Player::GetHealth() { return 0.0f; }
float Player::GetHealth()
{
void Player::ChangeRoom(int roomID) {
if (prevRoomID == roomID) {
curRoomID = prevRoomID;
}
return 0.0f;
else if (curRoomID != roomID) {
prevRoomID = curRoomID;
curRoomID = roomID;
}
}