Maintains the list of moves which has been done on a board. The undo moves are kept up to when a new move is done.View code on GitHub
Inheritance Hierarchy
Chess MovePosStack
Namespace: Chess
Assembly: Chess (in Chess.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The MovePosStack type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MovePosStack |
Class constructor
View code on GitHub |
Methods
Name | Description | |
---|---|---|
AddMove |
Add a move to the stack. All redo move are discarded
View code on GitHub | |
Clear |
Removes all move in the list
View code on GitHub | |
Clone |
Clone the stack
View code on GitHub | |
LoadFromReader |
Load from reader
View code on GitHub | |
MoveToNext |
Move to next move
View code on GitHub | |
MoveToPrevious |
Move to previous move
View code on GitHub | |
SaveToWriter |
Save to the specified binary writer
View code on GitHub |
Properties
Name | Description | |
---|---|---|
Count |
Count
View code on GitHub | |
CurrentMove |
Current move (last done move)
View code on GitHub | |
Item |
Indexer
View code on GitHub | |
List |
Get the list of moves
View code on GitHub | |
NextMove |
Next move in the redo list
View code on GitHub | |
PositionInList |
Current move index
View code on GitHub |
See Also