Category

Shuffle

From Shadow Era Wiki

Revision as of 20:20, 2 October 2024 by Blopi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To determine if the files are directly related to the management of cards and decks in the context of a game like Shadow Era, I used the following criteria:


Descriptive File Names:
I prioritized files whose names suggest they might contain logic related to cards or decks. For example, names like CardData.cs, DeckListDisplay.cs, or DeckBuilder.cs clearly indicate a card-centric or deck-building functionality.

Context of File Names:
Some files, such as GameModel.cs, GameManager.cs, and GameController.cs, suggest overall game management that could include the manipulation of decks and cards, particularly card shuffling or drawing.

Specific Terminology:
Files containing terms like Card, Deck, Game, or actions such as Draw, Shuffle, or Random in their names or content are examined more closely, as they are likely to contain methods directly involved in card management and game mechanics.


  • Based on this, with the help of an application called Sublime Text, which assisted me in searching for and identifying words related to the shuffle mechanism, nine files caught my attention.
  • However, there may be more, as the game Shadow Era contains over 6000 *.cs files


CardData.cs
Draw Pool:
`DeckBuilder.DrawNumberOfCard(...)`: Used to draw specific cards, indicating that the card drawing is managed through a function that could be integrated into the game logic.

DeckBuilder.cs
Drawing Methods:
`public static void DrawNumberOfCard(...)`: A public function that seems to handle the drawing of cards.
Several other references to drawing methods that might be related to the user interface or the presentation of drawn cards.

DeckListDisplay.cs
Drawing Methods:
`game.DrawHighlightedCards();`: Indicates that the highlighted cards are drawn, which is relevant for displaying cards after a draw.

Drawing.cs
This file seems to be more focused on graphical drawing and the user interface than on drawing or shuffling logic. It does not contain direct references to the mechanisms of card drawing, but the file needs a deeper observation.

GameController.cs
Game State:
`GameModel.ShuffleDeck();`: Indicates that the shuffling of cards is triggered by this method, which is important for understanding when and how the shuffling is performed.

GameManager.cs
Drawing Logic:
References to `drawOffers`, interactions related to drawing, although this seems more focused on draw offers between players.

GameModel.cs
Drawing and Shuffling Mechanisms:
`public static void Draw(int side)`: A key method that handles card drawing for a side.
`public static void ShuffleDeck(int side)`: A method to shuffle a player’s deck.
Methods related to activating game states, drawing, and displaying drawn cards, which is essential for understanding how drawing and shuffling interact.

Gameplay.cs
Drawing Management:
`public void OnDraw()`: This method might handle the process after a card is drawn.
References to the drawing queue, indicating that cards are drawn in a sequential order with potential delays.

GameState.cs
Game States Related to Drawing:
References to specific states like `mulliganDraw` and `GameStateType.draw`, which indicate when the drawing should occur in the game flow.



Shuffle Process:
Shuffle Code
Random Process:
Randomization Code
Draw Process:
Draw Code

Pages in category "Shuffle"

The following 3 pages are in this category, out of 3 total.