Pol  Revision:cb584c9
uofilei.h
Go to the documentation of this file.
1 
7 #ifndef UOFILEI_H
8 #define UOFILEI_H
9 
10 #include "uconst.h"
11 #include "udatfile.h"
12 
13 #include <fstream>
14 #include <cstdio>
15 
16 namespace Pol
17 {
18 namespace Core
19 {
20 extern FILE* mapfile;
21 extern FILE* sidxfile;
22 extern FILE* statfile;
23 extern FILE* verfile;
24 extern FILE* tilefile;
25 extern FILE* stadifl_file;
26 extern FILE* stadifi_file;
27 extern FILE* stadif_file;
28 extern FILE* mapdifl_file;
29 extern FILE* mapdif_file;
30 extern std::ifstream uopmapfile;
31 
32 struct USTRUCT_VERSION;
33 
34 FILE* open_uo_file( const std::string& filename_part );
35 
36 bool check_verdata( unsigned int file, unsigned int block, const USTRUCT_VERSION*& vrec );
37 
38 void standheight( MOVEMODE movemode, StaticList& statics, unsigned short x, unsigned short y,
39  short oldz, bool* result, short* newz );
40 
41 #define VERFILE_MAP0_MUL 0x00
42 #define VERFILE_STAIDX0_MUL 0x01
43 #define VERFILE_STATICS0_MUL 0x02
44 #define VERFILE_ARTIDX_MUL 0x03
45 #define VERFILE_ART_MUL 0x04
46 #define VERFILE_ANIM_IDX 0x05
47 #define VERFILE_ANIM_MUL 0x06
48 #define VERFILE_SOUNDIDX_MUL 0x07
49 #define VERFILE_SOUND_MUL 0x08
50 #define VERFILE_TEXIDX_MUL 0x09
51 #define VERFILE_TEXMAPS_MUL 0x0A
52 #define VERFILE_GUMPIDX_MUL 0x0B
53 #define VERFILE_GUMPART_MUL 0x0C
54 #define VERFILE_MULTI_IDX 0x0D
55 #define VERFILE_MULTI_MUL 0x0E
56 #define VERFILE_SKILLS_IDX 0x0F
57 #define VERFILE_SKILLS_MUL 0x10
58 #define VERFILE_TILEDATA_MUL 0x1E
59 #define VERFILE_ANIMDATA_MUL 0x1F
60 
61 void read_static_diffs();
62 void read_map_difs();
63 }
64 }
65 #endif
std::vector< StaticRec > StaticList
Definition: udatfile.h:38
FILE * stadifl_file
Definition: uofile00.cpp:26
FILE * mapdif_file
Definition: uofile00.cpp:30
FILE * stadifi_file
Definition: uofile00.cpp:27
bool check_verdata(unsigned int file, unsigned int block, const Core::USTRUCT_VERSION *&vrec)
Definition: uofile01.cpp:70
MOVEMODE
Definition: uconst.h:79
void read_static_diffs()
Definition: uofile02.cpp:53
FILE * sidxfile
Definition: uofile00.cpp:22
FILE * mapdifl_file
Definition: uofile00.cpp:29
void standheight(MOVEMODE movemode, StaticList &statics, unsigned short x, unsigned short y, short oldz, bool *result_out, short *newz_out)
Definition: uofile06.cpp:27
FILE * tilefile
Definition: uofile00.cpp:25
FILE * mapfile
Definition: uofile00.cpp:21
void read_map_difs()
Definition: uofile08.cpp:36
std::ifstream uopmapfile
Definition: uofile00.cpp:32
FILE * verfile
Definition: uofile00.cpp:24
FILE * open_uo_file(const std::string &filename_part)
Definition: uofile00.cpp:47
FILE * statfile
Definition: uofile00.cpp:23
Definition: berror.cpp:12
FILE * stadif_file
Definition: uofile00.cpp:28