Skip to content
Snippets Groups Projects
Commit c011ad51 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

add ability to get entity by identifier

parent a8cb9fe2
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@ class state {
state();
virtual ~state();
entity entity_id(uint32_t tag);
entity entity_at(location location);
vector<entity> entities_at(location location);
void add_entity(entity entity);
......@@ -84,7 +85,7 @@ class state {
uint32_t resource_at(location location);
void set_resource(location location, uint32_t t);
int32_t get_property(uint8_t player, const string& property) const;
int32_t property_for(uint8_t player, const string& property) const;
void set_property(uint8_t player, const string& property, int32_t val);
vector<location> get_neighbours(location current);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment