blobwarsAttrition/src/world/world.h

89 lines
3.1 KiB
C
Raw Normal View History

2018-01-26 20:14:18 +01:00
/*
Copyright (C) 2018 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
2018-01-27 11:58:47 +01:00
#include "../common.h"
2018-02-02 09:00:27 +01:00
2018-02-02 20:10:12 +01:00
extern Texture *getTexture(const char *filename);
extern void initObjectives(void);
extern Entity *getRandomObjectiveEntity(void);
extern void doBob(void);
extern void doLocationTriggers(void);
extern void dropCarriedItems(void);
extern void playSound(int snd, int ch);
extern void initEnding(void);
extern void initTitle(void);
2018-02-03 00:01:51 +01:00
extern float cameraChase(Entity *e, int maxSpeed);
2018-02-02 20:10:12 +01:00
extern int rrnd(int low, int high);
extern void hideAllWidgets(void);
extern void resetAtCheckpoint(void);
extern void cameraTrack(Entity *e);
extern void stopMusic(void);
extern void animateSprites(void);
extern void addTeleportStars(Entity *e);
extern double randF(void);
extern int isSolid(int x, int y);
extern int isLiquid(int x, int y);
extern int isWalkable(int x, int y);
extern void doEntities(void);
extern void doParticles(void);
extern void doHud(void);
extern Entity *createEntity(char *typeStr);
extern void dropRandomCherry(int x, int y);
extern void addRandomWeapon(int x, int y);
2018-02-03 00:01:51 +01:00
extern void drawEntities(int plane);
extern void drawMap(void);
extern void blitScaled(SDL_Texture *texture, int x, int y, int w, int h, int center);
extern void clearScreen(void);
2018-02-03 17:22:04 +01:00
extern void drawHud(void);
2018-02-04 08:50:54 +01:00
extern void initHud(void);
2018-02-04 10:50:07 +01:00
extern void initWeapons(void);
extern void initQuadtree(Quadtree *root);
2018-02-04 17:14:14 +01:00
extern void initParticles(void);
2018-02-05 09:39:02 +01:00
extern void initEffects(void);
2018-02-04 17:14:14 +01:00
extern void drawParticles(int plane);
2018-02-05 23:06:29 +01:00
extern void initItems(void);
extern void doPlayer(void);
extern int isOnScreen(Entity *e);
2018-02-07 23:49:42 +01:00
extern int isControl(int type);
extern void clearControl(int type);
extern void drawMissionStatus(void);
extern int isAcceptControl(void);
extern void clearControls(void);
extern void drawText(int x, int y, int size, int align, SDL_Color c, const char *format, ...);
2018-02-08 08:34:35 +01:00
extern void loadMusic(char *filename);
extern void playMusic(int loop);
extern void initRadar(void);
extern void startSectionTransition(void);
extern void endSectionTransition(void);
2018-02-15 19:04:37 +01:00
extern void drawWidgets(void);
extern void showWidgetGroup(char *group);
extern void drawRect(int x, int y, int w, int h, int r, int g, int b, int a);
extern void drawOutlineRect(int x, int y, int w, int h, int r, int g, int b, int a);
2018-02-15 23:56:22 +01:00
extern void hideAllWidgets(void);
extern void doWidgets(void);
extern Widget *getWidget(char *name, char *group);
2018-02-02 20:10:12 +01:00
2018-02-03 00:01:51 +01:00
extern App app;
extern Colors colors;
2018-02-02 20:10:12 +01:00
extern Dev dev;
2018-02-08 23:25:10 +01:00
extern Entity *self;
2018-02-02 20:10:12 +01:00
extern Game game;
2018-02-02 09:00:27 +01:00
extern World world;