From b249748d28764f706c4a210fbbf6abfe8684c7a3 Mon Sep 17 00:00:00 2001 From: Kirill Kirilenko Date: Thu, 8 Jul 2021 19:21:25 +0300 Subject: [PATCH] Add findConstant to Screeps::Source class. --- include/Screeps/Source.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/Screeps/Source.hpp b/include/Screeps/Source.hpp index abc6054..86bdb4e 100644 --- a/include/Screeps/Source.hpp +++ b/include/Screeps/Source.hpp @@ -1,6 +1,7 @@ #ifndef SCREEPS_SOURCE_HPP #define SCREEPS_SOURCE_HPP +#include "Constants.hpp" #include "RoomObject.hpp" namespace Screeps { @@ -17,6 +18,8 @@ public: std::string id() const; int ticksToLive() const; + + static const int findConstant = Screeps::FIND_SOURCES; }; } // namespace Screeps