ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MSVC/Flatline_Packet.h
Revision: 584
Committed: Mon Jan 24 06:45:07 2011 UTC (14 years, 8 months ago) by gumby
Content type: text/x-chdr
File size: 1322 byte(s)
Log Message:
Almost working rework

File Contents

# Content
1 #ifndef FLATLINE_PACKET_H
2 #define FLATLINE_PACKET_H
3
4
5 #include "bool.h"
6
7
8 uint16_t FLpData_PartSize( uint8_t e);
9 void FLsSendPlayerData();
10 //void FLcReadPlayerData( flatline_packet* Packet, int16_t Size );
11
12 typedef struct
13 {
14 uint16_t ID;
15 uint16_t Size;
16 uint16_t UpdateFlags;
17 uint8_t data[255];
18 } PlayerData;
19
20
21 typedef struct {
22 uint32_t Actions1;
23 uint32_t Actions2;
24 float MouseDeltaX;
25 float MouseDeltaY;
26 } PlayerInput;
27
28 typedef struct {
29 float Facing;
30 float DesiredFacing;
31 } PlayerFacing;
32
33 typedef struct {
34 uint16_t Health;
35 uint16_t MaxHealth;
36 } PlayerHealth;
37
38 typedef struct {
39 uint16_t Score;
40 uint16_t Deaths;
41 } PlayerScore;
42
43 //Change this later to be misc info
44 typedef struct {
45 uint16_t Frame;
46 uint16_t Ping;
47 } PlayerFP;
48
49 typedef struct {
50 uint8_t Ammo;
51 uint8_t Cells;
52 uint8_t Hypo;
53 uint8_t pad;
54 uint16_t Invis;
55 uint16_t Shield;
56 } PlayerInventory;
57
58 typedef struct {
59 uint16_t throwing;
60 uint16_t throwFrame;
61 char throwName[32];
62 } PlayerThrowData;
63
64 enum
65 {
66 PFlag_None,
67 PFlag_Input,
68 PFlag_Facing,
69 PFlag_Health,
70 PFlag_Score, //TODO
71 PFlag_FramePing,
72 PFlag_Inventory, //TODO
73 PFlag_Class,
74 PFlag_Position,
75 PFlag_Animation,
76 PFlag_Throws,
77 PFlag_Max,
78 PFlag_AnimationWait,//Clients only!
79 };
80
81
82
83 #endif