Add new creation method from a visual representation

This commit is contained in:
Marc Di Luzio 2014-12-16 13:12:56 +00:00
parent 8ade68101b
commit 7f639a6bf4
6 changed files with 72 additions and 16 deletions

View file

@ -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;
}
};