00001 /* 00002 * TetriCycle 00003 * Copyright (C) 2009, 2010 Cale Scholl 00004 * 00005 * This file is part of TetriCycle. 00006 * 00007 * TetriCycle is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU Lesser General Public License as published 00009 * by the Free Software Foundation, either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * TetriCycle is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with TetriCycle. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 /** @file defines.h 00022 * @brief A file for global scope generic defines. 00023 * @author Cale Scholl / calvinss4 00024 */ 00025 00026 #pragma once 00027 #ifndef __DEFINES_H__ 00028 #define __DEFINES_H__ 00029 00030 #define DEBUG 0 00031 00032 #define DOWN 0 00033 #define UP 1 00034 #define LEFT 2 00035 #define RIGHT 3 00036 00037 #define MAX_PLAYERS 4 00038 #define MAX_LEVEL 9 00039 #define START_SPEED 30 00040 00041 #define P2_X_BORDER 320 00042 #define P3_X_BORDER_1 213.3 00043 #define P3_X_BORDER_2 426.6 00044 #define P4_X_BORDER_1 160 00045 #define P4_X_BORDER_2 320 00046 #define P4_X_BORDER_3 480 00047 00048 #define SWAP(a, b) do { a ^= b, b ^= a, a ^= b; } while(0) 00049 00050 #endif // __DEFINES_H__