|
RpgGame
Console Based RPG game in C#
|
Represents a gold item that increases the player's gold 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 gold item. | |
| void | OnDrop (Level level, Player player) |
| Handles drop behavior for the gold item. | |
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 gold item on the map. | |
Properties inherited from RpgGame.Items.IItem | |
Represents a gold item that increases the player's gold currency when picked up.
Gold is automatically consumed upon pickup and is not stored in the player's inventory. The inventory parameter is accepted to conform to the item interaction signature, although it has no effect on gold behavior.
| string RpgGame.Items.Gold.GetDescription | ( | ) |
Returns a short description of the coin.
Implements RpgGame.Items.IItem.
Handles drop behavior for the gold item.
| level | The current level. |
| player | The player attempting to drop the gold. |
Gold cannot be dropped because it is consumed immediately upon pickup.
Implements RpgGame.Items.IItem.
Handles the pickup interaction for the gold item.
| player | The player picking up the gold. |
| inventory | The player's inventory object. This parameter is ignored for gold items. |
Implements RpgGame.Items.IItem.
|
get |
Gets the console color used to render the gold item 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.