screepsxx/include/Screeps/Flag.hpp
Kirill Kirilenko 3fad4634e9 Add Deposit, Flag, Resource, StructureExtractor, StructureLink classes.
Completed StructureController, StructureExtension, StructureRampart, StructureRoad, StructureSpawn classes.
2021-06-05 17:41:06 +03:00

33 lines
556 B
C++

#ifndef SCREEPS_FLAG_HPP
#define SCREEPS_FLAG_HPP
#include "RoomObject.hpp"
namespace Screeps {
class Flag : public RoomObject
{
public:
explicit Flag(JS::Value value);
int color() const;
JSON memory() const;
void setMemory(const JSON&);
std::string name() const;
int secondaryColor() const;
void remove();
int setColor(int color, std::optional<int> secondaryColor);
int setPosition(int x, int y);
int setPosition(const RoomPosition& pos);
int setPosition(const RoomObject& pos);
};
} // namespace Screeps
#endif // SCREEPS_FLAG_HPP