//occupantType.c #include "occupantType.h" #include occupantType::occupantType(){ kindOf = 0; } occupantType::occupantType(int a){ kindOf = a; } bool occupantType::operator == (const occupantType & fake){ if (fake.kindOf == kindOf) return true; else return false; } bool occupantType::operator != (const occupantType & fake){ if (fake.kindOf == kindOf) return false; else return true; } bool occupantType::isEmpty(){ if (kindOf == 0) return true; else return false; } void occupantType::display(){ switch(kindOf){ case 0: {cout << " . "; break;} case 1: {cout << " V "; break;} case 2: {cout << " H "; break;} default: {cout << "-E-"; break;} } }