delegate draw to persons
This commit is contained in:
@@ -20,22 +20,33 @@ struct EventTime
|
||||
I8 minute; //0-59
|
||||
};
|
||||
|
||||
enum { BOX_HEIGHT = 5 };
|
||||
|
||||
class Person
|
||||
{
|
||||
|
||||
public:
|
||||
Person() = default;
|
||||
Person(const char* name, EventTime birth, bool sex, EventTime death);
|
||||
/* Person(Person&&) = default; */
|
||||
/* Person& operator=(Person&&) = default; */
|
||||
/* Person& operator=(const Person&) = default; */
|
||||
|
||||
bool operator==(const Person &other)const;
|
||||
|
||||
void save(std::ofstream &file)const;//
|
||||
void load(std::ifstream &file);
|
||||
void rename(const char* newName);
|
||||
void print()const;
|
||||
|
||||
void print() const;
|
||||
|
||||
/* Draw a Person's box on the terminal
|
||||
drawY,drawX - the coordinates where to draw
|
||||
returns the width of the box*/
|
||||
void draw(U16 drawY, U16 drawX) const;
|
||||
|
||||
WINDOW* createPad()const;
|
||||
|
||||
/* staitc constexpr U8 BOX_HEIGHT = 5; */
|
||||
friend class Tree;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user