From e55638d081e2e1ff6fbc06e0e8ac0381a04308e7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 15 Sep 2010 21:29:18 +0000 Subject: updated comments, updated buy menu, info support for map window, added const to target selection --- src/client/targets.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/targets.h') 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); } -- cgit v1.2.3