SpelunkyRemake / Gold.h
Gold.h
Raw
#pragma once
#include "Item.h"

class Gold : public Item
{
public:
	enum class Type { COIN, THREE_COINS, SMALL_CHUNK, BIG_CHUNK };

	Gold(int x, int y, const Type& type);
	Gold(const Point2f& pos, const Type& type);
	virtual ~Gold();
	virtual size_t GetTypeHash() const;

	void Init();

	virtual void Draw() const override;
	virtual void Update(float elapsedSec, const Level& level) override;
	//virtual void Pickup() override;

	Type GetType() const;
	int GetAmount() const;
	
protected:
	
	int m_Amount;
	Type m_Type;
};