mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
27 lines
652 B
C++
27 lines
652 B
C++
#ifndef RESOURCE_DEPOSIT_H
|
|
#define RESOURCE_DEPOSIT_H
|
|
|
|
#include "gameObject.h"
|
|
|
|
namespace battleship{
|
|
class Extractor;
|
|
|
|
class ResourceDeposit : public GameObject{
|
|
public:
|
|
ResourceDeposit(Player*, int, vb01::Vector3, vb01::Quaternion, int);
|
|
~ResourceDeposit();
|
|
inline int getAmmount(){return ammount;}
|
|
inline int getInitAmmount(){return initAmmount;}
|
|
inline void decreaseAmmount(int amnt){ammount -= amnt;}
|
|
inline Extractor* getExtractor(){return extractor;}
|
|
inline void setExtractor(Extractor *e){this->extractor = e;}
|
|
private:
|
|
int ammount, initAmmount;
|
|
Extractor *extractor = nullptr;
|
|
|
|
void reinit();
|
|
};
|
|
}
|
|
|
|
#endif
|