Created a base engine class and let it handle all creeps.
This commit is contained in:
20
include/Structures/Spawn.hpp
Normal file
20
include/Structures/Spawn.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef DOUWCO_HIVEMIND_SPAWN_HPP
|
||||
#define DOUWCO_HIVEMIND_SPAWN_HPP
|
||||
|
||||
#include <Screeps/StructureSpawn.hpp>
|
||||
|
||||
namespace DouwcoHivemind
|
||||
{
|
||||
class Spawn
|
||||
{
|
||||
private:
|
||||
Screeps::StructureSpawn *structure;
|
||||
|
||||
public:
|
||||
Spawn(Screeps::StructureSpawn *structure_pntr) { structure = structure_pntr; }
|
||||
~Spawn() {}
|
||||
void process();
|
||||
};
|
||||
}
|
||||
|
||||
#endif // DOUWCO_HIVEMIND_SPAWN_HPP
|
||||
0
include/Structures/Structure.hpp
Normal file
0
include/Structures/Structure.hpp
Normal file
Reference in New Issue
Block a user