Changeset 10685 in orxonox.OLD for branches/hud/src/world_entities/creatures
- Timestamp:
- Jun 11, 2007, 4:40:33 PM (18 years ago)
- Location:
- branches/hud/src/world_entities/creatures
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hud/src/world_entities/creatures/fps_player.cc
r10654 r10685 20 20 #include "state.h" 21 21 #include "tools/camera.h" 22 #include "player.h" 22 23 23 24 #include "src/lib/util/loading/factory.h" … … 52 53 ->addMethod("getAbsCoorY", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorY)) 53 54 ->addMethod("getAbsCoorZ", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorZ)) 55 ->addMethod("displayHUDText", Executor1<FPSPlayer, lua_State*, const std::string&>(&FPSPlayer::displayHUDText)) 54 56 ); 55 57 … … 352 354 { 353 355 this->getWeaponManager().fire(); 354 PRINTF(0)("Crosshair at position: %f, %f, %f\n", this->getWeaponManager().getFixedTarget()->getAbsCoor().x, this->getWeaponManager().getFixedTarget()->getAbsCoor().y, this->getWeaponManager().getFixedTarget()->getAbsCoor().z);355 356 } 356 357 … … 604 605 } 605 606 607 void FPSPlayer::displayHUDText( const std::string& message ) 608 { 609 State::getPlayer()->hud().notifyUser(message); 610 } -
branches/hud/src/world_entities/creatures/fps_player.h
r10654 r10685 36 36 virtual void tick(float time); 37 37 virtual void draw() const; 38 39 void displayHUDText( const std::string& message ); 38 40 39 41
Note: See TracChangeset
for help on using the changeset viewer.