-
Notifications
You must be signed in to change notification settings - Fork 0
/
CoinSet.h
30 lines (17 loc) · 904 Bytes
/
CoinSet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "GameObject.h"
class CoinSet : public GameObject // inherited from GameObject
{
int Amount;
public:
CoinSet(const int Amount, const CellPosition &CellPos); // A constructor for initialization
CoinSet(); // Default Constructor
virtual void Draw(Output* pOut) const; // Draws a coinSet in its cell position
virtual void Apply(Grid* pGrid, Player* pPlayer); // Applys the effect of the coinSet on the player info
//CellPosition GetCellPosition() const; // A getter for the coinSet Cell Position
void SetAmount(int amount); // A setter for the amount of coins in the coinSet
int GetAmount() const; // A getter for the the amount of coins in the coinSet
virtual void Save(ofstream& outFile, Type gameObj); // Saves the data members in a file
virtual void Load(ifstream& InFile); // Reads the data members from a file
virtual ~CoinSet(); // Virtual destructor
};