1 #ifndef TELEPORT_H_INCLUDED
2 #define TELEPORT_H_INCLUDED
3 
4 /************************************************************************
5  * This file is part of Wizznic.                                        *
6  * Copyright 2009-2015 Jimmy Christensen <dusted@dusted.dk>             *
7  * Wizznic is free software: you can redistribute it and/or modify      *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation, either version 3 of the License, or    *
10  * (at your option) any later version.                                  *
11  *                                                                      *
12  * Wizznic is distributed in the hope that it will be useful,           *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
15  * GNU General Public License for more details.                         *
16  *                                                                      *
17  * You should have received a copy of the GNU General Public License    *
18  * along with Wizznic.  If not, see <http://www.gnu.org/licenses/>.     *
19  ************************************************************************/
20 
21 #include <SDL/SDL.h>
22 #include "list/list.h"
23 
24 struct telePort_s {
25   int sx, sy;
26   int dx, dy;
27 };
28 typedef struct telePort_s telePort_t;
29 
30 void teleFreeList( list_t* l );
31 void teleAddToList( list_t* l, int sx, int sy, int dx, int dy );
32 void teleRemoveFromList( list_t* l, int sx, int sy );
33 void teleAddFromString(list_t* l, const char* str); //Expects a string in the format sx,sy:dx,dy
34 char* teleMkStrings(list_t* l, const char* prefix);
35 int_fast8_t telePresent( list_t* l, int sx,int sy);
36 
37 #endif // TELEPORT_H_INCLUDED
38