Add more code to units to help distinguish between types and visual values
This commit is contained in:
parent
ea426c70c6
commit
9fc5f33de8
8 changed files with 67 additions and 29 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <iostream> // std::cout
|
||||
|
||||
#include "unitv.h"
|
||||
|
||||
// Namespace for testing functions
|
||||
namespace tests
|
||||
|
@ -19,7 +20,6 @@ namespace tests
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Test the board data class
|
||||
void test_CBoard()
|
||||
{
|
||||
|
@ -42,4 +42,9 @@ namespace tests
|
|||
int main()
|
||||
{
|
||||
tests::test_CBoard();
|
||||
|
||||
std::cout<<"Testing units"<<std::endl;
|
||||
CUnitV myV;
|
||||
|
||||
std::cout<<myV.getVisual()<<std::endl;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue