-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswObject.h
62 lines (55 loc) · 1.09 KB
/
swObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef SWOBJECT_H
#define SWOBJECT_H
#include <QString>
#include <QIODevice>
#include "swStream.h"
class swObject {
public:
typedef enum Types {
SW_OBJECT,
SW_DRAWABLE,
SW_PHYSICAL,
SW_SHIP,
SW_MISSILE,
SW_STAR,
SW_DEBRIS,
SW_LABEL,
SW_STARFIELD,
SW_MESH,
SW_ANIMATABLE,
SW_SELECTABLE,
SW_PLAYER,
SW_VECTOR,
SW_BITMASK,
SW_FONT,
SW_HEADS_UP_DISPLAY,
SW_TEXT_MENU,
SW_MAIN_MENU,
SW_SHIP_MENU,
SW_NAME_MENU,
SW_HOST_MENU,
SW_LOBBY_MENU,
SW_MESSAGE,
SW_PHYS_START_MSG,
SW_PHYS_CREATE_MSG,
SW_PHYS_UPDATE_MSG,
SW_PHYS_DELETE_MSG,
SW_PLAYER_CREATE_MSG,
SW_PLAYER_SHIP_MSG,
SW_PLAYER_NAME_MSG,
SW_PLAYER_INPUT_MSG,
SW_PLAYER_SCORE_MSG,
SW_PLAYER_KILL_MSG,
SW_CLIENT_INIT_MSG,
SW_READY_MSG
} Type;
swObject();
virtual ~swObject();
void read(QString file);
void read(QIODevice* stream);
virtual void read(swStream* stream);
void write(QIODevice* stream);
virtual void write(swStream* stream);
Type type;
};
#endif // SWOBJECT_H