29 lines
588 B
C++
29 lines
588 B
C++
#ifndef DOUWCO_HIVEMIND_HARVESTER_HPP
|
|
#define DOUWCO_HIVEMIND_HARVESTER_HPP
|
|
|
|
#include <Screeps/Creep.hpp>
|
|
|
|
namespace DouwcoHivemind
|
|
{
|
|
class HarvesterRole
|
|
{
|
|
private:
|
|
Screeps::Creep *creep;
|
|
JSON memory;
|
|
public:
|
|
HarvesterRole(Screeps::Creep* creep_pntr);
|
|
~HarvesterRole();
|
|
|
|
void process();
|
|
|
|
private:
|
|
void setupMemory();
|
|
void searchTarget();
|
|
void searchEnergyDeposit();
|
|
void searchSource();
|
|
void harvestSource();
|
|
void depositEnergy();
|
|
};
|
|
}
|
|
|
|
#endif // DOUWCO_HIVEMIND_HARVESTER_HPP
|