[untested] Implemented Miner role. Not in spawner yet.

This commit is contained in:
douwe
2025-12-19 09:19:32 +01:00
parent 1596283841
commit 656cca578e
6 changed files with 94 additions and 11 deletions

View File

@@ -0,0 +1,23 @@
#ifndef DOUWCO_HIVEMIND_MINER_HPP
#define DOUWCO_HIVEMIND_MINER_HPP
#include <Creeps/CreepBase.hpp>
namespace DouwcoHivemind
{
class Miner : public CreepBase
{
private:
bool requestedContainer = false;
public:
Miner(Screeps::Creep crp);
~Miner() override;
void loop() override;
private:
bool mineSource();
std::unique_ptr<Screeps::Source> getSourceTarget();
};
}
#endif // DOUWCO_HIVEMIND_MINER_HPP