30 lines
366 B
C++
30 lines
366 B
C++
#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;
|
|
} |