// --- bool AticAtacBackgroundEntity::canDoorBeOpenedWith (const std::vector <bool>& t) const { bool result = false; if (whatIs () == General::__GREENDOOR && t[General::__GREENKEY]) result = true; if (whatIs () == General::__YELLOWDOOR && t[General::__YELLOWKEY]) result = true; if (whatIs () == General::__REDDOOR && t[General::__REDKEY]) result = true; if (whatIs () == General::__WHITEDOOR && t[General::__WHITEKEY]) result = true; if (whatIs () == General::__EXITDOOR && (t[General::__ACGKEY1] && t[General::__ACGKEY2] && t[General::__ACGKEY3])) result = true; return (result); }
int main(int argc, char const *argv[]) { unsigned int myUI = 42; float myF = 3.1415; std::string myS = "C++-String"; whatIs(42); whatIs(myUI); whatIs(2.71); whatIs(myF); whatIs('a'); whatIs("ein Text"); whatIs(myS); return 0; }