My Project
Libraries
Network
Packets
Structures
Move.hpp
1
/*
2
** EPITECH PROJECT, 2022
3
** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4
** File description:
5
** Move
6
*/
7
8
#ifndef MOVE_HPP_
9
#define MOVE_HPP_
10
11
#include <cstdint>
12
16
struct
packet_move
{
17
enum
DIRECTION {
18
PLUS = 1,
19
MINUS = 2
20
};
21
uint16_t
playerId
;
22
float
x
;
23
float
y
;
24
};
25
26
#endif
/* !MOVE_HPP_ */
packet_move
A packet to handle the entity movements.
Definition:
Move.hpp:16
packet_move::x
float x
X axis.
Definition:
Move.hpp:22
packet_move::y
float y
Y axis.
Definition:
Move.hpp:23
packet_move::playerId
uint16_t playerId
Id of the Entity wich move.
Definition:
Move.hpp:21
Generated by
1.8.17