CardRPG 1.0
 
Loading...
Searching...
No Matches
CardRPG.Equipment Class Reference

Represents an item of equipment that can be used in the game, providing various attributes such as value, level requirements, and status effects. Implements interfaces for shop-related functionality and status representation. More...

Inheritance diagram for CardRPG.Equipment:
CardRPG.IShopableItem CardRPG.IStatus CardRPG.IStatus CardRPG.Amulet CardRPG.Athame CardRPG.Boot CardRPG.Deck CardRPG.Hat CardRPG.Ring CardRPG.Robe

Public Member Functions

virtual string DisplayStatus ()
 Generates a formatted string that summarizes the current status of the object, including its name, level requirement, health, mana, and other attributes.
 
override string ToString ()
 

Properties

Status Status [get]
 Gets the current status of the equipment.
 
int Value [get]
 Gets the current value in the property.
 
string Name [get]
 Gets the name of the equipment.
 
int LevelRequirement [get]
 Gets the minimum level required to access the equipment.
 
bool NotForSale [get]
 Gets a value indicating whether the item is not available for sale.
 

Detailed Description

Represents an item of equipment that can be used in the game, providing various attributes such as value, level requirements, and status effects. Implements interfaces for shop-related functionality and status representation.

The Equipment class encapsulates properties and behaviors for items that can be equipped by players. It includes attributes such as value, level requirements, and whether the item is available for sale. Additionally, it provides detailed status information, including health, mana, attack, defense, and accuracy values for different elements. This class is designed to be used in contexts where equipment items need to be displayed, evaluated, or interacted with, such as in shops, inventory systems, or status screens.

Member Function Documentation

◆ DisplayStatus()

virtual string CardRPG.Equipment.DisplayStatus ( )
inlinevirtual

Generates a formatted string that summarizes the current status of the object, including its name, level requirement, health, mana, and other attributes.

Returns
A multi-line string containing the formatted status information. Each line represents a specific attribute or group of attributes.

Implements CardRPG.IStatus.

Property Documentation

◆ LevelRequirement

int CardRPG.Equipment.LevelRequirement
get

Gets the minimum level required to access the equipment.

Implements CardRPG.IShopableItem.

◆ Name

string CardRPG.Equipment.Name
get

Gets the name of the equipment.

Implements CardRPG.IShopableItem.

◆ NotForSale

bool CardRPG.Equipment.NotForSale
get

Gets a value indicating whether the item is not available for sale.

Implements CardRPG.IShopableItem.

◆ Value

int CardRPG.Equipment.Value
get

Gets the current value in the property.

Implements CardRPG.IShopableItem.


The documentation for this class was generated from the following file: