First working version of colony.
Harversters and spawn work.
This commit is contained in:
29
include/creeps/harvester.hpp
Normal file
29
include/creeps/harvester.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user