m |
m |
||
(9 intermediate revisions by one user not shown) | |||
Line 12: | Line 12: | ||
</div> | </div> | ||
<center><img src="https://www.shadowera.com/landing/img/blog-separator-2.png" ></center><br> | <center><img src="https://www.shadowera.com/landing/img/blog-separator-2.png" ></center><br> | ||
− | *Based on this, with the help of an application called [https://www.sublimetext.com/ Sublime Text], which assisted me in searching for and identifying words related to the shuffle mechanism, | + | *Based on this, with the help of an application called [https://www.sublimetext.com/ Sublime Text], which assisted me in searching for and identifying words related to the shuffle mechanism, twelve files caught my attention.<br> |
− | + | ||
<div class="mw-collapsible mw-collapsed"> | <div class="mw-collapsible mw-collapsed"> | ||
+ | *However, there may be more, as the game Shadow Era contains over 6000 *.cs files | ||
<br> | <br> | ||
{| class="wikitable" code-table" | {| class="wikitable" code-table" | ||
Line 56: | Line 56: | ||
<span style="color: violet;">GameState.cs</span><br> | <span style="color: violet;">GameState.cs</span><br> | ||
Game States Related to Drawing:<br> | Game States Related to Drawing:<br> | ||
− | References to specific states like `mulliganDraw` and `GameStateType.draw`, which indicate when the drawing should occur in the game flow. | + | References to specific states like `mulliganDraw` and `GameStateType.draw`, which indicate when the drawing should occur in the game flow.<br> |
+ | <br> | ||
+ | <span style="color: violet;">Interleave.cs</span><br> | ||
+ | `internal static uint Shuffle(uint x)` & `internal static uint Shuffle2(uint x)` : These functions seem to involve shuffle algorithms, which could be useful for understanding the underlying logic.<br> | ||
+ | <br> | ||
+ | <span style="color: violet;">SpecificCard.cs</span><br> | ||
+ | `GameModel.ShuffleDeck(ally.ownerSide);` : Indicates a shuffle mechanism related to specific cards, which may be relevant for specific card interactions in the game.<br> | ||
+ | <br> | ||
+ | <span style="color: violet;">Utility.cs</span><br> | ||
+ | `public static void ShuffleList<T>(List<T> list)`: Uses a generic shuffle mechanism, useful to see how lists are handled. | ||
|} | |} | ||
</div> | </div> | ||
<br> | <br> | ||
<br> | <br> | ||
− | Shuffle Process:<br> | + | Now, with these first nine files and by searching the functions, I have a better understanding of some mechanism processes: |
− | [[:Category_talk:Shuffle|Shuffle Code]]<br> | + | #Shuffle Process:<br>[[:Category_talk:Shuffle|Shuffle Code]]<br> |
− | Random Process:<br> | + | #Random Process:<br>[[:Category_talk:Randomization|Randomization Code]]<br> |
− | [[:Category_talk:Randomization|Randomization Code]]<br> | + | #Mulligan Process: <br>[[:Category_talk:Mulligan|Mulligan Code]] (appears to be an unfinished feature)<br> |
− | + | #Draw Process:<br>[[:Category_talk:Draw|Draw Code]]<br> | |
− | [[:Category_talk:Draw|Draw Code]]<br> | + | <br> |
+ | <br> | ||
+ | <center><img src="https://www.shadowera.com/landing/img/blog-separator-2.png" ></center><br> |
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.
CardData.cs |
---|
Now, with these first nine files and by searching the functions, I have a better understanding of some mechanism processes:
The following 3 pages are in this category, out of 3 total.