MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / rotateHand

Method rotateHand

source/game/Player.cpp:348–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void Player::rotateHand(Direction d)
349{
350 if(mObjectsInHand.size() > 1)
351 {
352 if(d == Direction::left)
353 {
354 std::rotate(mObjectsInHand.begin(), mObjectsInHand.begin() + 1, mObjectsInHand.end());
355 }
356 else
357 {
358 std::rotate(mObjectsInHand.begin(), mObjectsInHand.end() - 1, mObjectsInHand.end());
359 }
360 // Send a render request to move the entity into the "hand"
361 RenderManager::getSingleton().rrRotateHand(this);
362 }
363}
364
365void Player::notifyNoMoreDungeonTemple()
366{

Callers 2

handleMouseWheelMethod · 0.80
handleMouseWheelMethod · 0.80

Calls 1

rrRotateHandMethod · 0.80

Tested by

no test coverage detected