1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-07-21 08:44:06 +00:00

only fists support lacks

This commit is contained in:
Aleksandar Jovanov 2012-04-08 13:17:16 +02:00
parent c1afd534fc
commit 15526d6110
2 changed files with 16 additions and 0 deletions

View file

@ -92,18 +92,32 @@ namespace MWInput
{ {
DrawState state = player.getDrawState(); DrawState state = player.getDrawState();
if(state == DrawState_Weapon || state == DrawState_Nothing) if(state == DrawState_Weapon || state == DrawState_Nothing)
{
player.setDrawState(DrawState_Spell); player.setDrawState(DrawState_Spell);
std::cout << "Player has now readied his hands for spellcasting!\n";
}
else else
{
player.setDrawState(DrawState_Nothing); player.setDrawState(DrawState_Nothing);
std::cout << "Player does not have any kind of attack ready now.\n";
}
} }
void toggleWeapon() void toggleWeapon()
{ {
DrawState state = player.getDrawState(); DrawState state = player.getDrawState();
if(state == DrawState_Spell || state == DrawState_Nothing) if(state == DrawState_Spell || state == DrawState_Nothing)
{
player.setDrawState(DrawState_Weapon); player.setDrawState(DrawState_Weapon);
std::cout << "Player is now drawing his weapon.\n";
}
else else
{
player.setDrawState(DrawState_Nothing); player.setDrawState(DrawState_Nothing);
std::cout << "Player does not have any kind of attack ready now.\n";
}
} }
void screenshot() void screenshot()

View file

@ -47,10 +47,12 @@ namespace MWWorld
delete mClass; delete mClass;
mClass = new_class; mClass = new_class;
} }
void Player::setDrawState(const DrawState& value) void Player::setDrawState(const DrawState& value)
{ {
mDrawState = value; mDrawState = value;
} }
void Player::setAutoMove (bool enable) void Player::setAutoMove (bool enable)
{ {
MWWorld::Ptr ptr = getPlayer(); MWWorld::Ptr ptr = getPlayer();