|
RpgGame
Console Based RPG game in C#
|
Represents a hand occupation strategy for one-handed equipment. More...
Public Member Functions | |
| override bool | EquipLeft (Player player, IEquippable item) |
| Attempts to equip the item in the player's left hand. | |
| override bool | EquipRight (Player player, IEquippable item) |
| Attempts to equip the item in the player's right hand. | |
Public Member Functions inherited from RpgGame.Items.HandOccupation | |
| bool | EquipLeft (Player player, IEquippable item) |
| Attempts to equip the specified item into the player's left hand. | |
| bool | EquipRight (Player player, IEquippable item) |
| Attempts to equip the specified item into the player's right hand. | |
Represents a hand occupation strategy for one-handed equipment.
The OneHandOccupation class defines the behavior for items that occupy only a single hand when equipped.
This strategy allows a weapon to be equipped independently in either the left or right hand, provided that the selected hand is currently unoccupied.
This class is part of the equipment strategy system and works in conjunction with HandOccupation to remove the need for conditional logic or type checking when equipping items.
|
inline |
Attempts to equip the item in the player's left hand.
| player | The player attempting to equip the item. |
| item | The item being equipped. |
|
inline |
Attempts to equip the item in the player's right hand.
| player | The player attempting to equip the item. |
| item | The item being equipped. |