Example #1
0
 // factory: flags default to empty
 internal static PieceModel Create(PlayerValue player, PieceDef piecedef)
 {
     return(new PieceModel {
         Def = piecedef,
         Player = player,
         Piece = piecedef.Piece,
         AttributeLookup = piecedef.AttributeLookup,
         LongHash = HashMaker.GetHash(piecedef.Piece) ^ HashMaker.GetHash(player),
     });
 }
Example #2
0
 internal void AddPiece(PieceDef piece)
 {
     PieceLookup.Add(piece.Piece, piece);
 }
Example #3
0
 internal PieceDef Exec()
 {
     _piecedef = new PieceDef();
     EvalExec();
     return(_piecedef);
 }