1 /* Tower Toppler - Nebulus 2 * Copyright (C) 2000-2012 Andreas R�ver 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 19 #ifndef ELEVATORS_H 20 #define ELEVATORS_H 21 22 #include <SDL_types.h> 23 24 /* this module handles all the necessities for up to 10 25 elevators */ 26 27 /* initializes the elevator structures */ 28 void ele_init(void); 29 30 /* activates the elevator. there can be only one 31 active elevator */ 32 void ele_select(Uint16 row, Uint8 col); 33 34 /* the elevator gets started */ 35 void ele_activate(Sint8 dir); 36 37 /* moves the elevator one level up */ 38 void ele_move(void); 39 40 /* return true, if the elevator is at a station */ 41 bool ele_is_atstop(void); 42 43 /* the animal leaves the elevator or got thrown off. 44 after a timeout the elevator will automatically fall down */ 45 void ele_deactivate(void); 46 47 /* call once per update to check elevator falldown */ 48 void ele_update(void); 49 50 #endif 51