diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-15 21:29:18 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-15 21:29:18 +0000 |
commit | e55638d081e2e1ff6fbc06e0e8ac0381a04308e7 (patch) | |
tree | 511ccb478adf2acd3cc93f66d217b09f3e3a06dc /src/client/targets.h | |
parent | f612f19e095b8d0ba49f5bcdec6a582824315d69 (diff) |
updated comments, updated buy menu, info support for map window, added const to target selection
Diffstat (limited to 'src/client/targets.h')
-rw-r--r-- | src/client/targets.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/targets.h b/src/client/targets.h index 5a3a655..e66ff97 100644 --- a/src/client/targets.h +++ b/src/client/targets.h @@ -25,16 +25,16 @@ void shutdown(); void reset(); /// return true if the entity is a legal hud target -bool is_valid_hud_target(core::Entity *entity); +bool is_valid_hud_target(const core::Entity *entity); /// return true if the entity is a legal map target -bool is_valid_map_target(core::Entity *entity); +bool is_valid_map_target(const core::Entity *entity); /// render targets and sounds void frame(); /// currently selected target, 0 if there is none -core::Entity *current(); +const core::Entity *current(); /// id of the currently selected target, 0 if there is none unsigned int current_id(); @@ -43,10 +43,10 @@ unsigned int current_id(); unsigned int hover(); /// target a specific entity -void select_target(unsigned int id); +void set_target(unsigned int id); /// target a specific entity -void select_target(core::Entity *entity); +void set_target(const core::Entity *entity); } |