Skip to content
Snippets Groups Projects
Commit 61a4229b authored by Ian Prins's avatar Ian Prins
Browse files

define and implement goldpiles

parent 42bf1cdd
No related branches found
No related tags found
No related merge requests found
#include "include/goldpile.h"
#include "include/coord.h"
GoldPile::GoldPile(Coord pos, int amount)
: position(pos)
, amount(amount)
{}
Coord GoldPile::getPosition() {
return position;
}
int GoldPile::getAmount() {
return amount;
}
#include "coord.h"
#ifndef GOLDPILE_H
#define GOLDPILE_H
class GoldPile {
public:
Gold(Coord, int);
Coord getPosition();
int getAmount();
private:
Coord position;
int amount;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment