Revision 351
created libs.h
proj/include/ent.h | ||
---|---|---|
8 | 8 |
* @{ |
9 | 9 |
*/ |
10 | 10 |
|
11 |
#include "basic_sprite.h" |
|
12 |
#include "list.h" |
|
11 |
#include "libs.h" |
|
13 | 12 |
|
14 | 13 |
/** |
15 | 14 |
* @brief Set scale. |
proj/include/interrupts_func.h | ||
---|---|---|
8 | 8 |
* @{ |
9 | 9 |
*/ |
10 | 10 |
|
11 |
#include "timer.h" |
|
12 |
#include "kbc.h" |
|
13 |
#include "keyboard.h" |
|
14 |
#include "mouse.h" |
|
11 |
#include "libs.h" |
|
15 | 12 |
|
16 | 13 |
/** |
17 | 14 |
* @brief Subscribes all drivers used (timer->keyboard->mouse) |
proj/include/proj.h | ||
---|---|---|
1 | 1 |
#ifndef PROJ_H_INCLUDED |
2 | 2 |
#define PROJ_H_INCLUDED |
3 | 3 |
|
4 |
#include "sprite.h" |
|
4 |
#include "libs.h" |
|
5 |
|
|
5 | 6 |
#include "ent.h" |
6 | 7 |
|
7 | 8 |
basic_sprite_t *bsp_crosshair; |
proj/include/proj_func.h | ||
---|---|---|
8 | 8 |
* @{ |
9 | 9 |
*/ |
10 | 10 |
|
11 |
#include "ent.h" |
|
12 |
#include "text.h" |
|
11 |
#include "libs.h" |
|
13 | 12 |
#include "proj_structures.h" |
14 | 13 |
|
15 |
#include <stdint.h> |
|
14 |
//#include <stdint.h>
|
|
16 | 15 |
|
17 | 16 |
/** |
18 | 17 |
* @brief Cleans up all memory, unsubscribes interrupts. |
proj/libs/classes/include/classes.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
/** |
5 | 5 |
* @defgroup classes classes |
6 |
* @ingroup libs |
|
6 | 7 |
* @brief Classes module |
7 | 8 |
* |
8 | 9 |
* Provides useful and general classes. |
proj/libs/graph/include/graph.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
/** |
5 | 5 |
* @defgroup graph graph |
6 |
* @ingroup libs |
|
6 | 7 |
* @brief Graph module. |
7 | 8 |
* |
8 | 9 |
* Provides functions, classes and methods for graphic drawing. |
proj/libs/kbc/include/kbc.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
/** |
5 | 5 |
* @defgroup kbc kbc |
6 |
* @ingroup libs |
|
6 | 7 |
* @brief KBC module. |
7 | 8 |
* |
8 | 9 |
* @{ |
proj/libs/rtc/include/rtc.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
/** |
5 | 5 |
* @defgroup rtc rtc |
6 |
* @ingroup libs |
|
6 | 7 |
* @brief RTC (Real-Time Clock) module. |
7 | 8 |
* |
8 | 9 |
* @{ |
proj/libs/timer/include/timer.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
/** |
5 | 5 |
* @defgroup timer timer |
6 |
* @ingroup libs |
|
6 | 7 |
* @brief Timer module. |
7 | 8 |
* |
8 | 9 |
* @{ |
proj/libs/uart/include/uart.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
/** |
5 | 5 |
* @defgroup uart uart |
6 |
* @ingroup libs |
|
6 | 7 |
* @brief UART module. |
7 | 8 |
* |
8 | 9 |
* @{ |
proj/libs/utils/include/utils.h | ||
---|---|---|
3 | 3 |
|
4 | 4 |
/** |
5 | 5 |
* @defgroup utils utils |
6 |
* @ingroup libs |
|
6 | 7 |
* @brief Utilities module. |
7 | 8 |
* |
8 | 9 |
* @{ |
proj/libs/libs.h | ||
---|---|---|
1 |
#ifndef LIBS_H_INCLUDED |
|
2 |
#define LIBS_H_INCLUDED |
|
3 |
|
|
4 |
/** |
|
5 |
* @defgroup libs libs |
|
6 |
* @brief Libraries module. |
|
7 |
* |
|
8 |
* @{ |
|
9 |
*/ |
|
10 |
|
|
11 |
#include "classes/include/classes.h" |
|
12 |
#include "graph/include/graph.h" |
|
13 |
#include "graph/include/sprite.h" |
|
14 |
#include "graph/include/text.h" |
|
15 |
#include "graph/include/rectangle.h" |
|
16 |
#include "graph/include/menu.h" |
|
17 |
#include "kbc/include/kbc.h" |
|
18 |
#include "kbc/include/keyboard.h" |
|
19 |
#include "kbc/include/mouse.h" |
|
20 |
#include "rtc/include/rtc.h" |
|
21 |
#include "timer/include/timer.h" |
|
22 |
#include "uart/include/uart.h" |
|
23 |
#include "utils/include/utils.h" |
|
24 |
#include "utils/include/errors.h" |
|
25 |
#include "utils/include/fast_math.h" |
|
26 |
#include "utils/include/xpm_utils.h" |
|
27 |
|
|
28 |
/** |
|
29 |
* @} |
|
30 |
*/ |
|
31 |
|
|
32 |
#endif //LIBS_H_INCLUDED |
|
0 | 33 |
proj/src/campaign.c | ||
---|---|---|
8 | 8 |
#include "proj_func.h" |
9 | 9 |
#include "ent.h" |
10 | 10 |
#include "interrupts_func.h" |
11 |
#include "graph.h" |
|
12 |
#include "hltp.h"
|
|
13 |
#include "errors.h" |
|
11 |
|
|
12 |
#include "libs.h"
|
|
13 |
|
|
14 | 14 |
#include <math.h> |
15 | 15 |
|
16 | 16 |
int (campaign)(void){ |
proj/src/chat.c | ||
---|---|---|
8 | 8 |
#include "proj_func.h" |
9 | 9 |
#include "ent.h" |
10 | 10 |
#include "interrupts_func.h" |
11 |
#include "graph.h" |
|
12 |
#include "rectangle.h" |
|
13 |
#include "hltp.h" |
|
11 |
#include "libs.h" |
|
14 | 12 |
#include "makecode_map.h" |
15 |
#include "errors.h" |
|
16 | 13 |
#include <math.h> |
17 | 14 |
|
15 |
#include "hltp.h" |
|
16 |
|
|
18 | 17 |
#define CHAT_MAX_SIZE 75 |
19 | 18 |
#define CHAT_MAX_NUM 19 |
20 | 19 |
static text_t *t_text[CHAT_MAX_NUM] = {NULL}; |
proj/src/ent.c | ||
---|---|---|
2 | 2 |
|
3 | 3 |
#include "ent.h" |
4 | 4 |
|
5 |
#include "graph.h" |
|
6 |
#include "sprite.h" |
|
7 |
#include "utils.h" |
|
8 |
#include "rectangle.h" |
|
9 |
#include "text.h" |
|
10 |
#include "errors.h" |
|
11 |
#include "queue.h" |
|
5 |
#include "libs.h" |
|
12 | 6 |
#include <math.h> |
13 | 7 |
|
14 | 8 |
#define GREEN_HEALTH_COLOR 0x009900 |
proj/src/makecode_map.c | ||
---|---|---|
1 |
#include <lcom/lcf.h> |
|
2 |
|
|
1 | 3 |
#include "makecode_map.h" |
2 | 4 |
|
3 | 5 |
static const char makecode_map[] = {ERROR_CODE, ERROR_CODE, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '\'', ERROR_CODE /*«*/, ERROR_CODE /*escape*/, |
proj/src/proj.c | ||
---|---|---|
1 | 1 |
#include <lcom/lcf.h> |
2 | 2 |
#include <lcom/proj.h> |
3 | 3 |
#include <lcom/liblm.h> |
4 |
|
|
5 |
#include "proj.h" |
|
6 |
|
|
4 | 7 |
#include <math.h> |
5 | 8 |
|
6 | 9 |
#include "proj_macros.h" |
7 | 10 |
#include "proj_func.h" |
8 | 11 |
|
9 |
#include "graph.h" |
|
10 |
#include "menu.h" |
|
11 |
#include "rtc.h" |
|
12 |
#include "hltp.h" |
|
13 | 12 |
#include "interrupts_func.h" |
14 | 13 |
#include "makecode_map.h" |
15 | 14 |
|
16 |
#include "graph.h" |
|
17 |
|
|
18 |
#include "rectangle.h" |
|
19 |
#include "font.h" |
|
20 |
|
|
21 | 15 |
#include "crosshair.h" |
22 | 16 |
#include "shooter.h" |
23 | 17 |
#include "zombie.h" |
... | ... | |
26 | 20 |
#include "bullet.h" |
27 | 21 |
#include "map1.h" |
28 | 22 |
|
29 |
#include "errors.h"
|
|
23 |
#include "hltp.h"
|
|
30 | 24 |
|
31 |
#include "list.h" |
|
32 | 25 |
|
33 |
#include "proj.h" |
|
34 |
|
|
35 | 26 |
int main(int argc, char* argv[]) { |
36 | 27 |
|
37 | 28 |
lcf_set_language("EN-US"); |
... | ... | |
47 | 38 |
return 0; |
48 | 39 |
} |
49 | 40 |
|
50 |
|
|
51 |
|
|
52 | 41 |
#include "singleplayer.h" |
53 | 42 |
static int (multiplayer)(void); |
54 | 43 |
#include "chat.h" |
proj/src/proj_func.c | ||
---|---|---|
3 | 3 |
#include "proj_func.h" |
4 | 4 |
|
5 | 5 |
#include "interrupts_func.h" |
6 |
#include "graph.h" |
|
7 |
#include "keyboard.h" |
|
8 |
#include "errors.h" |
|
6 |
#include "libs.h" |
|
9 | 7 |
#include "proj_macros.h" |
10 |
#include "utils.h" |
|
11 | 8 |
#include "ent.h" |
12 |
#include "fast_math.h" |
|
13 |
#include "rectangle.h" |
|
14 |
#include "font.h" |
|
15 | 9 |
|
16 | 10 |
#include <math.h> |
17 | 11 |
|
proj/src/singleplayer.c | ||
---|---|---|
8 | 8 |
#include "proj_func.h" |
9 | 9 |
#include "ent.h" |
10 | 10 |
#include "interrupts_func.h" |
11 |
#include "graph.h" |
|
12 |
#include "hltp.h" |
|
13 |
#include "errors.h" |
|
14 |
#include "menu.h" |
|
15 | 11 |
|
12 |
#include "libs.h" |
|
13 |
|
|
16 | 14 |
#include "campaign.h" |
17 | 15 |
#include "zombies.h" |
18 | 16 |
|
proj/src/zombies.c | ||
---|---|---|
4 | 4 |
|
5 | 5 |
#include "proj.h" |
6 | 6 |
|
7 |
#include "libs.h" |
|
8 |
|
|
7 | 9 |
#include "proj_macros.h" |
8 | 10 |
#include "proj_func.h" |
9 | 11 |
#include "ent.h" |
10 | 12 |
#include "interrupts_func.h" |
11 |
#include "graph.h" |
|
12 |
#include "hltp.h" |
|
13 |
#include "errors.h" |
|
14 | 13 |
#include <math.h> |
15 | 14 |
|
16 | 15 |
#define ZOMBIES_NUM 5 |
proj/Doxyfile | ||
---|---|---|
2455 | 2455 |
# Minimum value: 0, maximum value: 1000, default value: 0. |
2456 | 2456 |
# This tag requires that the tag HAVE_DOT is set to YES. |
2457 | 2457 |
|
2458 |
MAX_DOT_GRAPH_DEPTH = 0 |
|
2458 |
MAX_DOT_GRAPH_DEPTH = 50
|
|
2459 | 2459 |
|
2460 | 2460 |
# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent |
2461 | 2461 |
# background. This is disabled by default, because dot on Windows does not seem |
... | ... | |
4949 | 4949 |
# Minimum value: 0, maximum value: 1000, default value: 0. |
4950 | 4950 |
# This tag requires that the tag HAVE_DOT is set to YES. |
4951 | 4951 |
|
4952 |
MAX_DOT_GRAPH_DEPTH = 0 |
|
4952 |
MAX_DOT_GRAPH_DEPTH = 50
|
|
4953 | 4953 |
|
4954 | 4954 |
# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent |
4955 | 4955 |
# background. This is disabled by default, because dot on Windows does not seem |
proj/Makefile | ||
---|---|---|
10 | 10 |
.PATH: ${.CURDIR}/libs/utils/src |
11 | 11 |
|
12 | 12 |
SRCS= list.c queue.c graph.c kbc.c keyboard.c mouse.c utils.c timer.c interrupts_func.c fast_math.c xpm_utils.c rtc.c uart.c makecode_map.c menu.c proj_func.c rectangle.c font.c ent.c proj.c hltp.c zombies.c campaign.c singleplayer.c chat.c scoreboards.c |
13 |
IPATHS=-I./include -I./libs/graph/include -I./libs/kbc/include -I./libs/rtc/include -I./libs/timer/include -I./libs/uart/include -I./libs/classes/include -I./libs/utils/include -I./maps -I./media/xpm |
|
13 |
IPATHS=-I./include -I./libs -I./libs/graph/include -I./libs/kbc/include -I./libs/rtc/include -I./libs/timer/include -I./libs/uart/include -I./libs/classes/include -I./libs/utils/include -I./maps -I./media/xpm
|
|
14 | 14 |
|
15 | 15 |
CPPFLAGS += -pedantic ${IPATHS} -D LCOM_MACRO -D __LCOM_OPTIMIZED__ -Wall -Wextra -Wshadow -Wunreachable-code #-Weverything -Wno-padded -Wno-unused-macros |
16 | 16 |
|
Also available in: Unified diff