Improved miners and workers to work together.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define DOUWCO_HIVEMIND_HARVESTER_HPP
|
||||
|
||||
#include "Creeps/CreepBase.hpp"
|
||||
#include "Screeps/StructureContainer.hpp"
|
||||
|
||||
namespace DouwcoHivemind
|
||||
{
|
||||
@@ -9,6 +10,7 @@ namespace DouwcoHivemind
|
||||
{
|
||||
private:
|
||||
bool harvesting;
|
||||
bool foundContainer;
|
||||
|
||||
public:
|
||||
Worker(Screeps::Creep crp);
|
||||
@@ -22,8 +24,11 @@ namespace DouwcoHivemind
|
||||
private:
|
||||
void getEnergy();
|
||||
void harvestSource();
|
||||
void collectEnergyFromContainers();
|
||||
std::unique_ptr<Screeps::Source> getSourceTarget();
|
||||
std::unique_ptr<Screeps::StructureContainer> getContainerTarget();
|
||||
void searchSource();
|
||||
void searchContainer();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user