#ifndef COMMONS_HPP #define COMMONS_HPP #include #include #include #include #include #include #include #define MARGEERR 0.30f #define BLACKVALUE 0.00025f #define ASSERT(expression) do \ { \ if(!(expression)) { \ std::cout << "ASSERT FAILED, STOPPING " << std::endl;\ std::cout << "At file " << __FILE__ \ << " inside function " << __PRETTY_FUNCTION__ << " on line " << __LINE__ << std::endl; \ assert(expression); \ std::exit(-1); \ } \ } while (0) namespace ButtonState { //namespace for button states (for the menu) //released is the regular state of the button, it activates when you move the mouse over it //off means it is drawn but not clickable. enum basicState {released, active, pressed, off}; } namespace GameState { enum gameState{menu,inGame,help,credits}; } #endif // COMMONS_HPP