diff --git a/collisionDetection.c b/collisionDetection.c index bdb7366..2abcfad 100644 --- a/collisionDetection.c +++ b/collisionDetection.c @@ -1,5 +1,9 @@ #include #include +#include +#include +#include + struct CollisionEvent collisionDetect(int objYpos, int objXpos){ int i; for(i=1; i +#include #include #include #include - void updateViewportWin(){ int i; for(i=0; i #include #include +#include #include void addItem(char *type, int yPos, int xPos){ diff --git a/events.h b/events.h index f9022a6..78e0319 100644 --- a/events.h +++ b/events.h @@ -3,4 +3,5 @@ void addItem(char *type, int yPos, int xPos); void randomEvent(); +void tryRandomEvent(); #endif diff --git a/gameLoop.c b/gameLoop.c index bcb1901..f16874a 100644 --- a/gameLoop.c +++ b/gameLoop.c @@ -3,6 +3,8 @@ #include #include #include +#include +#include void gameLoop(){ while(1) { diff --git a/gameLoop.h b/gameLoop.h new file mode 100644 index 0000000..f63a9f9 --- /dev/null +++ b/gameLoop.h @@ -0,0 +1,6 @@ +#ifndef _GAME_LOOP +#define _GAME_LOOP + +void gameLoop(); + +#endif diff --git a/getPos.c b/getPos.c index ba0c856..95018a2 100644 --- a/getPos.c +++ b/getPos.c @@ -1,5 +1,7 @@ #include #include +#include + struct OpenPos getOpenPos(){ int chooseAnother=1; struct OpenPos openPos; diff --git a/getPos.h b/getPos.h index 8d1b831..36e71cc 100644 --- a/getPos.h +++ b/getPos.h @@ -12,4 +12,7 @@ struct NextPos{ }nextPos; struct OpenPos getOpenPos(); + +void getNextPos(int y, int x, int y2, int x2); + #endif diff --git a/initializeWorld.c b/initializeWorld.c index 63c531d..8655a37 100644 --- a/initializeWorld.c +++ b/initializeWorld.c @@ -3,6 +3,9 @@ #include #include #include +#include +#include +#include #include void initializeWorld() { diff --git a/initializeWorld.h b/initializeWorld.h new file mode 100644 index 0000000..d87fc5f --- /dev/null +++ b/initializeWorld.h @@ -0,0 +1,7 @@ +#ifndef _EVENTS +#define _EVENTS + +void initializeWorld(); +void restartGame(); + +#endif diff --git a/nZombies.c b/nZombies.c index 3857d22..3341c42 100644 --- a/nZombies.c +++ b/nZombies.c @@ -1,4 +1,7 @@ #include +#include +#include + int main() { initializeWorld(); gameLoop(); diff --git a/nZombies.h b/nZombies.h new file mode 100644 index 0000000..6773adf --- /dev/null +++ b/nZombies.h @@ -0,0 +1,6 @@ +#ifndef _N_Zombies +#define _N_Zombies + +void main(); + +#endif diff --git a/weaponsSystem.c b/weaponsSystem.c index 9a9516d..0e9acbe 100644 --- a/weaponsSystem.c +++ b/weaponsSystem.c @@ -1,6 +1,8 @@ #include #include #include +#include + void moveProjectiles(){ int i; for(i=0; i #include #include +#include +#include + void addZombie(int y, int x){ if (y && x){ int i;