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