mirror of
https://github.com/UltraCoderRU/screepsxx.git
synced 2026-01-28 10:05:13 +00:00
33 lines
520 B
C++
33 lines
520 B
C++
#ifndef SCREEPS_STRUCTURE_HPP
|
|
#define SCREEPS_STRUCTURE_HPP
|
|
|
|
#include "Constants.hpp"
|
|
#include "RoomObject.hpp"
|
|
|
|
namespace Screeps {
|
|
|
|
class Structure : public RoomObject
|
|
{
|
|
public:
|
|
explicit Structure(JS::Value value);
|
|
|
|
int hits() const;
|
|
|
|
int hitsMax() const;
|
|
|
|
std::string id() const;
|
|
|
|
std::string structureType() const;
|
|
|
|
int destroy();
|
|
|
|
bool isActive();
|
|
|
|
int notifyWhenAttacked(bool enabled);
|
|
|
|
const static int findConstant = Screeps::FIND_STRUCTURES;
|
|
};
|
|
|
|
} // namespace Screeps
|
|
|
|
#endif // SCREEPS_STRUCTURE_HPP
|