hide cursor
This commit is contained in:
+1
-27
@@ -69,21 +69,6 @@ Person::Person(const char* name, EventTime birth, bool isMale, EventTime death)
|
||||
}
|
||||
|
||||
|
||||
/*Person& Person::operator=(const Person &other)
|
||||
{
|
||||
if (&other!=this)
|
||||
{
|
||||
rename(other.name);
|
||||
numRel = other.numRel;
|
||||
isMale = other.isMale;
|
||||
day = other.day;
|
||||
month = other.month;
|
||||
year = other.year;
|
||||
}
|
||||
return *this;
|
||||
}*/
|
||||
|
||||
|
||||
bool Person::operator==(const Person &other)const
|
||||
{
|
||||
return name_ == other.name_ && isMale_ == other.isMale_; //TODO && day == other.day || !day || !other.day) && (month == other.month || !month || !other.month) && (year == other.year || !year || !other.year);
|
||||
@@ -125,7 +110,7 @@ void Person::rename(const char* newName)
|
||||
name_ = newName;
|
||||
}
|
||||
|
||||
void Person::print()const
|
||||
void Person::displayInfo()const
|
||||
{
|
||||
info_tab = newwin(LINES, COLS, 0, 0);
|
||||
|
||||
@@ -146,17 +131,6 @@ void Person::print()const
|
||||
werase(info_tab);
|
||||
wrefresh(info_tab); /* todo: dont update */
|
||||
delwin(info_tab);
|
||||
|
||||
/* cout << name_ << '\n'; */
|
||||
/* cout << (isMale_ ? "Male\n" : "Female\n"); */
|
||||
|
||||
/* cout << "Birth: "; */
|
||||
/* birth_.print(); */
|
||||
|
||||
/* cout << "Death: "; //TODO: only print if known */
|
||||
/* death_.print(); */
|
||||
|
||||
/* cout << '\n'; */
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user