aboutsummaryrefslogtreecommitdiff
path: root/backend/Player.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 21:10:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 21:10:27 +0100
commitd554cb39a2f1ec97dd214a5dd200ae5f03cf616d (patch)
treeba52e12e1791592ee7634b6a3e190d9bba950860 /backend/Player.cpp
parentb4507b3601bedcaa599673b9f9083d1574132157 (diff)
cleanup
Diffstat (limited to 'backend/Player.cpp')
-rw-r--r--backend/Player.cpp5
1 files changed, 3 insertions, 2 deletions
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 ");