diff --git a/Makefile b/Makefile index 915c81d..2fb9cbb 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ OBJECTS = obj/main.o obj/game_state.o obj/in_game.o obj/map.o TARGET = bin/cyjam CFLAGS = -Wall -I./include -std=c99 LDFLAGS = -L./lib -LDLIBS = -lm -lisland -lfov -lncursesw +LDLIBS = -lm -lfov -lncursesw all: CFLAGS += -O3 all: $(TARGET) diff --git a/include/island.h b/include/island.h deleted file mode 100644 index f4b9bd4..0000000 --- a/include/island.h +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Copyright (c) 2014, Miguel Angel Astor Romero. All rights reserved. - * See the file LICENSE for more details. - */ - -#ifndef ISLAND_H -#define ISLAND_H - -#ifdef __cplusplus -extern "C" { -#endif - -typedef enum TERRAIN_TYPE { DEEP_WATER, - SHALLOW_WATER, - SAND, - GRASS, - FOREST, - HILL, - MOUNTAIN - } terrain_t; - - /** - * Generate a diamond-square fractal map. - */ - extern void ds ( float ***, const unsigned int ); - - /** - * Generate a mask using particle deposition. - */ - extern void island ( int ***, unsigned int ); - - /** - * Normalize a float matrix between 0 and 1. - */ - extern void norm ( float ***, unsigned int ); - - /** - * Normalize an int matrix between 0 and 255. - */ - extern void normInt ( int ***, unsigned int ); - - /** - * Perform a 3x3 average blur. - */ - extern void smooth ( int ***, unsigned int ); - - /** - * Multiply the diamond square map with the island mask. - * Both matrices must have been normalized before. - */ - extern void mult ( float ***, int ***, unsigned int ); - - /** - * Given a sample from a heightmap, return the terrain - * type that correspond it. - */ - terrain_t terrainType( int ); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/lib/libisland.a b/lib/libisland.a deleted file mode 100644 index 7e247dc..0000000 Binary files a/lib/libisland.a and /dev/null differ