mirror of
https://github.com/UltraCoderRU/screepsxx.git
synced 2026-01-28 10:05:13 +00:00
Completed StructureController, StructureExtension, StructureRampart, StructureRoad, StructureSpawn classes.
33 lines
556 B
C++
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
|