mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 12:40:04 +00:00
only fists support lacks
This commit is contained in:
parent
c1afd534fc
commit
15526d6110
@ -92,18 +92,32 @@ namespace MWInput
|
||||
{
|
||||
DrawState state = player.getDrawState();
|
||||
if(state == DrawState_Weapon || state == DrawState_Nothing)
|
||||
{
|
||||
player.setDrawState(DrawState_Spell);
|
||||
std::cout << "Player has now readied his hands for spellcasting!\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
player.setDrawState(DrawState_Nothing);
|
||||
std::cout << "Player does not have any kind of attack ready now.\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void toggleWeapon()
|
||||
{
|
||||
DrawState state = player.getDrawState();
|
||||
if(state == DrawState_Spell || state == DrawState_Nothing)
|
||||
{
|
||||
player.setDrawState(DrawState_Weapon);
|
||||
std::cout << "Player is now drawing his weapon.\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
player.setDrawState(DrawState_Nothing);
|
||||
std::cout << "Player does not have any kind of attack ready now.\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void screenshot()
|
||||
|
@ -47,10 +47,12 @@ namespace MWWorld
|
||||
delete mClass;
|
||||
mClass = new_class;
|
||||
}
|
||||
|
||||
void Player::setDrawState(const DrawState& value)
|
||||
{
|
||||
mDrawState = value;
|
||||
}
|
||||
|
||||
void Player::setAutoMove (bool enable)
|
||||
{
|
||||
MWWorld::Ptr ptr = getPlayer();
|
||||
|
Loading…
x
Reference in New Issue
Block a user