Fix "implicit declaration" warning messages

main
Jerry Aldrich 10 years ago
parent 2c09e8d34d
commit 42762cec6b
  1. 4
      collisionDetection.c
  2. 2
      drawWindows.c
  3. 8
      drawWindows.h
  4. 1
      events.c
  5. 1
      events.h
  6. 2
      gameLoop.c
  7. 6
      gameLoop.h
  8. 2
      getPos.c
  9. 3
      getPos.h
  10. 3
      initializeWorld.c
  11. 7
      initializeWorld.h
  12. 3
      nZombies.c
  13. 6
      nZombies.h
  14. 2
      weaponsSystem.c
  15. 1
      weaponsSystem.h
  16. 3
      zombies.c

@ -1,5 +1,9 @@
#include <world.h>
#include <string.h>
#include <drawWindows.h>
#include <weaponsSystem.h>
#include <unistd.h>
struct CollisionEvent collisionDetect(int objYpos, int objXpos){
int i;
for(i=1; i<MAX_ENTITIES; i++){

@ -1,8 +1,8 @@
#include <world.h>
#include <initializeWorld.h>
#include <stdlib.h>
#include <string.h>
#include <weaponsSystem.h>
void updateViewportWin(){
int i;
for(i=0; i<MAX_ITEMS; i++){

@ -0,0 +1,8 @@
#ifndef _DRAW_WINDOWS
#define _DRAW_WINDOWS
void updateViewportWin();
void updateInfoWin();
void drawGameOverWin();
#endif

@ -4,6 +4,7 @@
#include <getPos.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <zombies.h>
void addItem(char *type, int yPos, int xPos){

@ -3,4 +3,5 @@
void addItem(char *type, int yPos, int xPos);
void randomEvent();
void tryRandomEvent();
#endif

@ -3,6 +3,8 @@
#include <events.h>
#include <getPos.h>
#include <weaponsSystem.h>
#include <zombies.h>
#include <drawWindows.h>
void gameLoop(){
while(1) {

@ -0,0 +1,6 @@
#ifndef _GAME_LOOP
#define _GAME_LOOP
void gameLoop();
#endif

@ -1,5 +1,7 @@
#include <world.h>
#include <getPos.h>
#include <stdlib.h>
struct OpenPos getOpenPos(){
int chooseAnother=1;
struct OpenPos openPos;

@ -12,4 +12,7 @@ struct NextPos{
}nextPos;
struct OpenPos getOpenPos();
void getNextPos(int y, int x, int y2, int x2);
#endif

@ -3,6 +3,9 @@
#include <string.h>
#include <ncurses.h>
#include <world.h>
#include <drawWindows.h>
#include <zombies.h>
#include <nZombies.h>
#include <getPos.h>
void initializeWorld() {

@ -0,0 +1,7 @@
#ifndef _EVENTS
#define _EVENTS
void initializeWorld();
void restartGame();
#endif

@ -1,4 +1,7 @@
#include <time.h>
#include <initializeWorld.h>
#include <gameLoop.h>
int main() {
initializeWorld();
gameLoop();

@ -0,0 +1,6 @@
#ifndef _N_Zombies
#define _N_Zombies
void main();
#endif

@ -1,6 +1,8 @@
#include <world.h>
#include <collisionDetection.h>
#include <weaponsSystem.h>
#include <string.h>
void moveProjectiles(){
int i;
for(i=0; i<MAX_PROJECTILES; i++){

@ -4,5 +4,6 @@
void moveProjectiles();
void fireWeapon();
void addMagazine();
void reload(struct Weapon *weaponRef);
#endif

@ -1,6 +1,9 @@
#include <world.h>
#include <getPos.h>
#include <collisionDetection.h>
#include <stdlib.h>
#include <getPos.h>
void addZombie(int y, int x){
if (y && x){
int i;

Loading…
Cancel
Save