Building Room based placement system.
This commit is contained in:
31
douwco_hivemind/include/Room.hpp
Normal file
31
douwco_hivemind/include/Room.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef DOUWCO_HIVEMIND_ROOM_HPP
|
||||
#define DOUWCO_HIVEMIND_ROOM_HPP
|
||||
|
||||
#include <Screeps/Room.hpp>
|
||||
|
||||
namespace DouwcoHivemind {
|
||||
class Room {
|
||||
|
||||
protected:
|
||||
enum ProgressState {
|
||||
PLANNED,
|
||||
IN_PROGRESS,
|
||||
FINISHED
|
||||
};
|
||||
|
||||
Screeps::Room room;
|
||||
JSON memory;
|
||||
ProgressState _sourceContainerState;
|
||||
|
||||
public:
|
||||
Room(Screeps::Room rm);
|
||||
~Room();
|
||||
|
||||
void loop();
|
||||
|
||||
protected:
|
||||
bool assignConstructionSites();
|
||||
};
|
||||
} // namespace DouwcoHivemind
|
||||
|
||||
#endif // DOUWCO_HIVEMIND_ROOM_HPP
|
||||
Reference in New Issue
Block a user