Esempio n. 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),
     });
 }
Esempio n. 2
0
 internal void AddPiece(PieceDef piece)
 {
     PieceLookup.Add(piece.Piece, piece);
 }
Esempio n. 3
0
 internal PieceDef Exec()
 {
     _piecedef = new PieceDef();
     EvalExec();
     return(_piecedef);
 }