Coverage report for server


src/
File: src/commands/ai/incantation_callback.c
Date: 2024-06-25 10:57:05
Lines:
13/16
81.2%
Functions:
4/5
80.0%
Branches:
0/0
-%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2024
3 ** zappy
4 ** File description:
5 ** incantation.c
6 */
7
8 #include "server.h"
9 #include "unused.h"
10
11 9 void callback_freeze(
12 client_t *client,
13 UNUSED server_t *server
14 )
15 {
16 9 client->is_incanting = true;
17 9 }
18
19 9 void callback_level_up(
20 client_t *client,
21 UNUSED server_t *server
22 )
23 {
24 9 client->level++;
25 9 message_to_graphicals(
26 server,
27 "plv %d %d\n",
28 client->id,
29 client->level
30 );
31 9 }
32
33 void callback_unfreeze(
34 client_t *client,
35 UNUSED server_t *server
36 )
37 {
38 client->is_incanting = false;
39 }
40
41 9 void callback_start_incantation_set_payload(
42 client_t *client,
43 UNUSED server_t *server
44 )
45 {
46 9 dprintf(client->fd, "Elevation underway\n");
47 9 }
48
49 9 void callback_end_incantation_set_payload(
50 client_t *client,
51 UNUSED server_t *server
52 )
53 {
54 9 dprintf(client->fd, "Current level: %zu\n", client->level);
55 9 }
56