#pragma once #include "GameObject.h" #include "PlayerObject.h" #include "AIOpponentObject.h" using namespace NCL; using namespace CSC8503; class BonusObject : public GameObject{ public: BonusObject(unsigned int points, string objectName = "") : GameObject(objectName), bonusValue(points) {} virtual ~BonusObject() {} void OnCollisionBegin(GameObject* otherObject); void SetOwner(GameObject* _owner) { owner = _owner; } GameObject* GetOwner() const { return owner; } const unsigned int GetPointsValue() const { return bonusValue; } protected: unsigned int bonusValue; GameObject* owner = nullptr; };