|
RpgGame
Console Based RPG game in C#
|
Represents a consumable health potion. More...
Public Member Functions | |
| string | GetDescription () |
| Returns a description of the potion's effect. | |
| bool | OnPickup (Player player, Inventory inventory) |
| Called when the player picks up the potion. Restores health immediately. | |
| void | OnDrop (Level level, Player player) |
| Called when the potion is dropped. Potions are auto-consumed and cannot be dropped. | |
Properties | |
| string | Name [get] |
| Gets the name of the potion. | |
| char | Symbol [get] |
| Gets the character symbol representing the potion on the map. | |
| ConsoleColor | color [get] |
| Gets the color of the potion when rendered. | |
Properties inherited from RpgGame.Items.IItem | |
Represents a consumable health potion.
| string RpgGame.Items.Potion.GetDescription | ( | ) |
Returns a description of the potion's effect.
Implements RpgGame.Items.IItem.
Called when the potion is dropped. Potions are auto-consumed and cannot be dropped.
| level | The current level. |
| player | The player dropping the potion. |
Implements RpgGame.Items.IItem.
Called when the player picks up the potion. Restores health immediately.
| player | The player picking up the potion. |
| inventory | The player's inventory (not used as the potion is consumed). |
Implements RpgGame.Items.IItem.
|
get |
Gets the color of the potion when rendered.
Implements RpgGame.Items.IItem.
|
get |
Gets the name of the potion.
Implements RpgGame.Items.IItem.
|
get |
Gets the character symbol representing the potion on the map.
Implements RpgGame.Items.IItem.