Implement basic rooms and navigation
This commit is contained in:
+15
-12
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user