#include "jewl.h" #include "coordinate.h" #include "city.h" // Programmer: Brett Weiland // Date: 4/30/23 // File: jewl.hpp // Assignment: SP-B-finalProject // Purpose: contains member functions for jewl; see jewl.h char jewl::getIcon() const { return 'j'; } unsigned int jewl::get_drawPriority() const { return 2; } unsigned int jewl::value() const { return location.get_x() + location.get_y(); } void jewl::drop() { mapAttach(); parentCity->markJewlAvailable(*this); } unsigned int jewl::pickup() { mapDetach(); parentCity->markJewlTaken(*this); return value(); }