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

class Diamond : public Item
{
public:
	enum class Type { GREEN, BLUE, RED };

	Diamond(int x, int y, const Type& type);
	Diamond(const Point2f& pos, const Type& type);
	virtual ~Diamond();
	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;
};