C# Класс DeenGames.Valence.Model.CoreModel

Показать файл Открыть проект

Открытые методы

Метод Описание
BoardToString ( ) : string
ClearEventHandlers ( ) : void
CreateBoard ( ) : void
GenerateBoard ( ) : void
IsLevelOver ( ) : bool
LoadBoard ( int puzzleLevel ) : void
MoveToNextLevel ( ) : void
PickNextAtom ( ) : void
SaveLevelReached ( ) : void
SetGameStateToNormal ( ) : void
SignalGameOver ( ) : void
SpewOutAtomsFromMachine ( ) : IList
StartAtFirstLevel ( ) : void
StartCountdownTimer ( ) : void
StopCountdownTimer ( ) : void
_countdownTickTimer_Tick ( object sender, EventArgs e ) : void

Приватные методы

Метод Описание
CoreModel ( ) : System
GetPuzzleBoardAndToolboxDefinition ( int puzzleLevel ) : string
GetTilesInReaction ( Tile newAtomTile ) : IList
SetGameStateToGameComplete ( ) : void
calculateReactionsUsingBestFirstSearch ( IList potentialReactionTiles, Tile centerTile, IList foundSoFarInPath, IList foundSoFarInTotal ) : IList
calculateReactionsUsingBruteForceCombinations ( IList potentialReactionTiles, Tile userClickedTile ) : IList
clearBoard ( ) : void
countEmptyTilesOnTheBoard ( ) : int
generateNormalModeBoard ( ) : void
generatePuzzleModeLevel ( ) : void
getCombinationsOf ( int i, IList potentialReactionTiles, Tile userClickedTile ) : IList
getCombinationsOfTwo ( IList potentialReactionTiles, Tile userClickedTile ) : IList
getIncrementalCombinations ( IList potentialReactionTiles, IList previousSet ) : IList
getMostElectronegative ( IList molecules ) : Molecule
getNonEmptyAdjacentTiles ( Tile centerTile ) : IList
getPotentialReactionTiles ( Tile centerTile, IList toReturn ) : void

Get potential reaction tiles. These are non-empty tiles that are non-diagonally adjacent to centerTile. This also includes tiles that are adjacent to adjacent tiles.

loadLastReachedLevel ( ) : void
tileFollowsDifficultyBalancingAlgorithm ( Tile current, Atom proposedAtom ) : bool
weedOutNonConnectedMolecules ( IList molecules ) : IList

Given a list of potential molecules, weed out all the ones where the atoms are not all adjacent to each other. This can occur due to a bug-fix for I-shaped molecules not reacting, where we extended molecule detection to all non-empty adjacent tiles. As a result, you can have H-Be-Cl forming H-Cl, which is wrong. This function will fix that, by checking that H and Cl are adjacent.

Описание методов

BoardToString() публичный Метод

public BoardToString ( ) : string
Результат string

ClearEventHandlers() публичный Метод

public ClearEventHandlers ( ) : void
Результат void

CreateBoard() публичный Метод

public CreateBoard ( ) : void
Результат void

GenerateBoard() публичный Метод

public GenerateBoard ( ) : void
Результат void

IsLevelOver() публичный Метод

public IsLevelOver ( ) : bool
Результат bool

LoadBoard() публичный Метод

public LoadBoard ( int puzzleLevel ) : void
puzzleLevel int
Результат void

MoveToNextLevel() публичный Метод

public MoveToNextLevel ( ) : void
Результат void

PickNextAtom() публичный Метод

public PickNextAtom ( ) : void
Результат void

SaveLevelReached() публичный Метод

public SaveLevelReached ( ) : void
Результат void

SetGameStateToNormal() публичный Метод

public SetGameStateToNormal ( ) : void
Результат void

SignalGameOver() публичный Метод

public SignalGameOver ( ) : void
Результат void

SpewOutAtomsFromMachine() публичный Метод

public SpewOutAtomsFromMachine ( ) : IList
Результат IList

StartAtFirstLevel() публичный Метод

public StartAtFirstLevel ( ) : void
Результат void

StartCountdownTimer() публичный Метод

public StartCountdownTimer ( ) : void
Результат void

StopCountdownTimer() публичный Метод

public StopCountdownTimer ( ) : void
Результат void

_countdownTickTimer_Tick() публичный Метод

public _countdownTickTimer_Tick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void