1 /* 2 Copyright (C) 2009-2021 Parallel Realities 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. 12 13 See the GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. 18 */ 19 20 void loadMap(char *, int); 21 int saveMap(void); 22 void doMap(void); 23 void drawMap(int); 24 void centerEntityOnMap(void); 25 void freeMap(void); 26 Texture *tileImage(int); 27 Texture *mapImageAt(int, int); 28 int mapTileAt(int, int); 29 int getMapMaxX(void); 30 int getMapMaxY(void); 31 void setMapMaxX(int); 32 void setMapMaxY(int); 33 void setMapMinX(int); 34 void setMapMinY(int); 35 int getMapMinX(void); 36 int getMapMinY(void); 37 int mapStartX(void); 38 int mapStartY(void); 39 void mapStartXNext(int); 40 void mapStartYNext(int); 41 void setTileAt(int, int, int); 42 int nextTile(int); 43 int prevTile(int); 44 void centerMapOnEntity(Entity *); 45 int getMapStartX(void); 46 int getMapStartY(void); 47 void setMapStartX(int); 48 void setMapStartY(int); 49 char *getMapFilename(void); 50 void cameraSnapToTargetEntity(void); 51 void setCameraPosition(int, int); 52 void limitCamera(int, int, int, int); 53 void resetCameraLimits(void); 54 void limitCameraFromScript(char *); 55 char *getMapMusic(void); 56 void setCameraSpeed(float); 57 int cameraAtMinimum(void); 58 char *getMapName(void); 59 int getDistanceFromCamera(int, int); 60 int isDarkMap(void); 61 void setDarkMap(int); 62 void resetBlendTime(void); 63 int getCameraMinX(void); 64 int getCameraMinY(void); 65 int getCameraMaxX(void); 66 int getCameraMaxY(void); 67 int getPlayerMinX(void); 68 int getPlayerMaxX(void); 69 void drawMapBackground(void); 70 void limitPlayerToCameraLimits(void); 71 void setCameraPositionFromScript(char *); 72