Add new creation method from a visual representation
This commit is contained in:
parent
8ade68101b
commit
7f639a6bf4
6 changed files with 72 additions and 16 deletions
|
@ -43,8 +43,13 @@ int main()
|
|||
{
|
||||
tests::test_CBoard();
|
||||
|
||||
std::cout<<"Testing units"<<std::endl;
|
||||
CUnitV myV;
|
||||
{
|
||||
CUnitV myV;
|
||||
std::cout<<myV.getVisual()<<std::endl;
|
||||
}
|
||||
|
||||
std::cout<<myV.getVisual()<<std::endl;
|
||||
{
|
||||
std::unique_ptr<CUnit> myV = CUnit::getUnitFromVis('v');
|
||||
std::cout<<myV->getVisual()<<std::endl;
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue