Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HexBoard Cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GameDev Projects
HexBoard Cpp
Commits
c011ad51
Commit
c011ad51
authored
5 years ago
by
Joseph Walton-Rivers
Browse files
Options
Downloads
Patches
Plain Diff
add ability to get entity by identifier
parent
a8cb9fe2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/state.h
+2
-1
2 additions, 1 deletion
src/lib/state.h
with
2 additions
and
1 deletion
src/lib/state.h
+
2
−
1
View file @
c011ad51
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment