Initial version, load default FEN, displays for 5 seconds and closes
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#include "piece.hpp"
|
||||
|
||||
Piece::Piece()
|
||||
{
|
||||
type = NO_TYPE;
|
||||
team = NO_TEAM;
|
||||
vis = VIS_NONE;
|
||||
}
|
||||
|
||||
Piece::Piece(Type type, Team team, Visibility vis)
|
||||
{
|
||||
this->type = type;
|
||||
this->team = team;
|
||||
this->vis = vis;
|
||||
}
|
||||
|
||||
Team Piece::get_team()
|
||||
{
|
||||
return team;
|
||||
}
|
||||
|
||||
Type Piece::get_type()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
Visibility Piece::get_vis()
|
||||
{
|
||||
return vis;
|
||||
}
|
||||
Reference in New Issue
Block a user