delegate draw to persons
This commit is contained in:
@@ -21,14 +21,14 @@ enum Relation : U8
|
||||
ExHusband
|
||||
};
|
||||
|
||||
const unsigned Nobody = UINT_MAX; //Òîçè íîìåð ùå áúäå çàïàçeí çà ëèïñà íà âðúçêà/÷îâåê
|
||||
const U32 Nobody = UINT_MAX; //Òîçè íîìåð ùå áúäå çàïàçeí çà ëèïñà íà âðúçêà/÷îâåê
|
||||
|
||||
class Tree
|
||||
{
|
||||
public:
|
||||
Tree();
|
||||
Tree() = default;
|
||||
template <class Str>
|
||||
Tree(Str&& Name) : treeName(std::forward<Str>(Name)), numPeople(0) {}
|
||||
Tree(Str&& Name) : treeName(std::forward<Str>(Name)) {}
|
||||
/*Tree(const Tree&);
|
||||
Tree& operator= (const Tree& other);*/
|
||||
|
||||
@@ -67,11 +67,13 @@ public:
|
||||
private:
|
||||
void commonAncestorRec(const unsigned &id, const Array<char> &visited)const;
|
||||
|
||||
std::string treeName;
|
||||
unsigned numPeople;
|
||||
std::string treeName = "Unnamed";
|
||||
unsigned numPeople = 0;
|
||||
Array<Person> people; //The data for each member
|
||||
Array<Array<unsigned>> relatives; //The relatives of each member
|
||||
Array<Array<Relation>> relations; //The type of relation each member has with his relatives
|
||||
|
||||
U16 offset = 0;
|
||||
|
||||
//Search, ect.
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user