GigaPasjans
Loading...
Searching...
No Matches
Game::CardStack Class Reference

Represents a stack of cards in the game. More...

#include <Deck.h>

Inheritance diagram for Game::CardStack:
Collaboration diagram for Game::CardStack:

Public Member Functions

 CardStack (int32 baseStackSize)
 
void Insert (const uint32 &position, Card *card)
 Inserts a card at the specified position in the stack.
 
void Remove (Card *card)
 Removes the specified card from the stack.
 
int32 FindIndex (Card *card) const
 Finds the index of a specific card in the stack.
 
CardTop () const
 Returns the top card of the stack.
 
CardGet (int32 index) const
 Returns the card at the given index.
 
int32 GetSize () const
 Returns the number of cards in the stack.
 
int32 GetBaseSize () const
 Returns the base size of the stack.
 
GameObject * clone () override
 
String GetIdentifer () const override
 
void Add (GameObject *object) override
 Adds a game object to the card stack.
 
- Public Member Functions inherited from Phosphorus::ParentGameObject
 ParentGameObject (const String &identifier)
 
virtual void Add (GameObject *object)
 Adds GameObject to parent.
 
- Public Member Functions inherited from Phosphorus::GameObject
std::vector< IBaseParameter * > GetParameters () const
 Returns parameters list.
 
String GetUniqueId () const
 Returns GameObject unique id.
 

Friends

class Deck
 

Additional Inherited Members

- Protected Member Functions inherited from Phosphorus::GameObject
 GameObject (const String &identifier)
 
void addParameter (IBaseParameter *parameter)
 Adds parameter to the list.
 
IBaseParameterfindParameter (const String &name)
 Returns parameter with given name.
 
virtual void onPostLoad ()
 Event called after object load from file.
 
virtual void onPreSerialize ()
 Event called before object gets serialized.
 
- Protected Attributes inherited from Phosphorus::GameObject
StringParameter m_Identifier
 Random GameObject identifier.
 

Detailed Description

Represents a stack of cards in the game.

Member Function Documentation

◆ clone()

Phosphorus::GameObject * Game::CardStack::clone ( )
overridevirtual

◆ GetIdentifer()

String Game::CardStack::GetIdentifer ( ) const
overridevirtual

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