|
RpgGame
Console Based RPG game in C#
|
Represents a coin item that increases the player's currency when picked up. More...
Public Member Functions | |
| string | GetDescription () |
| Returns a short description of the coin. | |
| bool | OnPickup (Player player, Inventory inventory) |
| Handles the pickup interaction for the coin. | |
| void | OnDrop (Level level, Player player) |
| Handles drop behavior for the coin. | |
Properties | |
| string | Name [get] |
| Gets the display name of the coin. | |
| char | Symbol [get] |
| Gets the character symbol used to render the coin on the map. | |
| ConsoleColor | color [get] |
| Gets the console color used to render the Coin on the map. | |
Properties inherited from RpgGame.Items.IItem | |
Represents a coin item that increases the player's currency when picked up.
Coins are automatically consumed upon pickup and are not stored in the player's inventory. The pickUpLeft parameter is accepted to conform to the item interaction signature, although it has no effect on coin behavior.
| string RpgGame.Items.Coin.GetDescription | ( | ) |
Returns a short description of the coin.
Implements RpgGame.Items.IItem.
Handles drop behavior for the coin.
| level | The current level. |
| player | The player attempting to drop the coin. |
Coins cannot be dropped because they are consumed immediately upon pickup.
Implements RpgGame.Items.IItem.
Handles the pickup interaction for the coin.
| player | The player picking up the coin. |
| pickUpLeft | Indicates whether the pickup interaction was initiated for the left hand. This parameter is ignored for coins. |
Implements RpgGame.Items.IItem.
|
get |
Gets the console color used to render the Coin on the map.
Implements RpgGame.Items.IItem.
|
get |
Gets the display name of the coin.
Implements RpgGame.Items.IItem.
|
get |
Gets the character symbol used to render the coin on the map.
Implements RpgGame.Items.IItem.