From d554cb39a2f1ec97dd214a5dd200ae5f03cf616d Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 2 Nov 2024 21:10:27 +0100 Subject: cleanup --- backend/Player.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backend/Player.cpp') diff --git a/backend/Player.cpp b/backend/Player.cpp index 46d924f..6c2cf6b 100644 --- a/backend/Player.cpp +++ b/backend/Player.cpp @@ -42,6 +42,7 @@ Location & Player::get_location() const { assert(this->location != nullptr); return *this->location; } + void Player::set_location(Location & location) { this->location = &location; lprtf("Je staat nu bij de locatie %s.\n", location.get_name().c_str()); @@ -61,7 +62,7 @@ void Player::equip(Object * object) { throw Exception("object \"%s\" is niet draagbaar", object->get_name().c_str()); } -void Player::equip(WeaponObject * weapon) { +void Player::equip(WeaponObject * weapon) noexcept { if (weapon == nullptr) return; lprtf("Je "); @@ -73,7 +74,7 @@ void Player::equip(WeaponObject * weapon) { lprtf("pakt %s vast.\n", this->weapon->get_name().c_str()); } -void Player::equip(ArmorObject * armor) { +void Player::equip(ArmorObject * armor) noexcept { if (armor == nullptr) return; lprtf("Je "); -- cgit v1.2.3