A manager class that handles the game state, player management, inventory, and saving/loading functionality.
More...
|
|
void | NewGame () |
| | Starts a new game with a single initial player and the specified starting quest.
|
| |
| void | AddGold (int amount) |
| | Adds gold to the player's total gold amount.
|
| |
| void | AddPlayer (int level) |
| | Adds a new player to the game with the specified level.
|
| |
| void | AddEquipment (Equipment equipment) |
| | Adds the specified equipment to the player's inventory.
|
| |
| void | AddCard (Card card) |
| | Adds a card to the player's inventory.
|
| |
|
void | SaveGame () |
| | Saves the current game state.
|
| |
|
void | LoadGame () |
| | Loads the game state from a saved file.
|
| |
|
void | QuitToTitle () |
| | Quits the current game, destroys all objects, and loads the title scene.
|
| |
| List< T > | GetInventoryItems< T > () |
| | Gets a list of inventory items of the specified type.
|
| |
|
|
string[] | ElementList = { "Fire" } |
| |
|
List< DuelerCard > | startingCards |
| |
|
Deck | startingDeck |
| |
|
Quest | startingQuest |
| |
|
int | startingElement |
| |
|
int[] | baseHealth |
| |
|
float[] | healthPerLevel |
| |
|
int[] | baseMana |
| |
|
float[] | manaPerLevel |
| |
|
bool | EquipmentHealthRebalance = true |
| |
|
string | titleScene |
| |
|
|
List< Player > | CurrentPlayers = new() [get] |
| |
|
List< DuelerCard > | InventoryCards = new() [get, set] |
| |
|
List< Hat > | InventoryHats = new() [get] |
| |
|
List< Robe > | InventoryRobes = new() [get] |
| |
|
List< Boot > | InventoryBoots = new() [get] |
| |
|
List< Athame > | InventoryAthames = new() [get] |
| |
|
List< Amulet > | InventoryAmulets = new() [get] |
| |
|
List< Ring > | InventoryRings = new() [get] |
| |
|
List< Deck > | InventoryDecks = new() [get] |
| |
|
int | Gold [get] |
| |
|
Sprite | ItemCardImage [get] |
| |
|
Sprite | TreasureCardImage [get] |
| |
|
HashSet< string > | ListOfWorld = new() [get] |
| |
|
int | WoodenSkeletonKey [get, set] |
| |
|
UnityEvent | OnGoldChange = new() [get, set] |
| |
A manager class that handles the game state, player management, inventory, and saving/loading functionality.
◆ AddCard()
| void CardRPG.GameManager.AddCard |
( |
Card | card | ) |
|
|
inline |
Adds a card to the player's inventory.
- Parameters
-
◆ AddEquipment()
| void CardRPG.GameManager.AddEquipment |
( |
Equipment | equipment | ) |
|
|
inline |
Adds the specified equipment to the player's inventory.
- Parameters
-
◆ AddGold()
| void CardRPG.GameManager.AddGold |
( |
int | amount | ) |
|
|
inline |
Adds gold to the player's total gold amount.
- Parameters
-
◆ AddPlayer()
| void CardRPG.GameManager.AddPlayer |
( |
int | level | ) |
|
|
inline |
Adds a new player to the game with the specified level.
- Parameters
-
◆ GetInventoryItems< T >()
| List< T > CardRPG.GameManager.GetInventoryItems< T > |
( |
| ) |
|
|
inline |
Gets a list of inventory items of the specified type.
- Template Parameters
-
- Returns
The documentation for this class was generated from the following file: