Subversion Repositories Games.Chess Giants

Rev

Rev 85 | Rev 119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 85 Rev 116
Line 3... Line 3...
3
#ifndef PROTOTYPES_H
3
#ifndef PROTOTYPES_H
4
#define PROTOTYPES_H
4
#define PROTOTYPES_H
5
 
5
 
6
 
6
 
7
// audio.cpp function prototypes
7
// audio.cpp function prototypes
-
 
8
bool Audio_Init (void);
-
 
9
void Audio_Shutdown (void);
8
void Audio_Think (void);
10
void Audio_Think (void);
9
void Audio_PlaySound (int sound_type);
11
void Audio_PlaySound (int sound_type, float pos_x, float pos_y, float pos_z);
10
 
12
 
11
// board.cpp function prototypes
13
// board.cpp function prototypes
12
bool Board_Init (board_t *board, int white_playertype, int black_playertype, wchar_t *fen_string);
14
bool Board_Init (board_t *board, int white_playertype, int black_playertype, wchar_t *fen_string);
13
void Board_Shutdown (board_t *board);
15
void Board_Shutdown (board_t *board);
14
bool Board_Reset (board_t *board, wchar_t *fen_string);
16
bool Board_Reset (board_t *board, wchar_t *fen_string);
15
bool Board_Think (board_t *board);
17
bool Board_Think (board_t *board);
16
void Board_SwapSides (board_t *board);
18
void Board_SwapSides (board_t *board);
17
void Board_SetSelectedAndHovered (board_t *board, int selected_line, int selected_column, int hovered_line, int hovered_column);
19
void Board_SetSelectedAndHovered (board_t *board, int selected_line, int selected_column, int hovered_line, int hovered_column);
18
char Board_ColorToMove (board_t *board);
20
char Board_ColorToMove (board_t *board);
19
void Board_AppendMove (board_t *board, int from_line, int from_column, int to_line, int to_column, char promotion_type, wchar_t *comment);
21
void Board_AppendMove (board_t *board, int from_line, int from_column, int to_line, int to_column, char promotion_type, wchar_t *comment);
-
 
22
 
-
 
23
// buffer.cpp function prototypes
-
 
24
void Buffer_Initialize (buffer_t *buffer);
-
 
25
void Buffer_Forget (buffer_t *buffer);
-
 
26
int Buffer_Append (buffer_t *buffer, char *data, unsigned long data_size);
-
 
27
#define Buffer_AppendCString(buffer,string_data) Buffer_Append ((buffer), (string_data), strlen (string_data))
-
 
28
#define Buffer_AppendCharArray(buffer,char_array) Buffer_Append ((buffer), (char_array), sizeof (char_array) - 1)
-
 
29
#define Buffer_AppendBuffer(buffer,appendable) Buffer_Append ((buffer), (appendable)->data, (appendable)->size)
-
 
30
int Buffer_Prepend (buffer_t *buffer, char *data, unsigned long data_size);
-
 
31
#define Buffer_PrependCString(buffer,string_data) Buffer_Prepend ((buffer), (string_data), strlen (string_data))
-
 
32
#define Buffer_PrependCharArray(buffer,char_array) Buffer_Prepend ((buffer), (char_array), sizeof (char_array) - 1)
-
 
33
#define Buffer_PrependBuffer(buffer,prependable) Buffer_Prepend ((buffer), (prependable)->data, (prependable)->size)
-
 
34
int Buffer_WriteAt (buffer_t *buffer, unsigned long write_index, char *data, unsigned long data_size);
-
 
35
char *Buffer_SHA1 (buffer_t *buffer, char *hash_buffer);
-
 
36
int Buffer_ReadFromFile (buffer_t *buffer, const char *file_pathname);
-
 
37
int Buffer_ReadFromFileW (buffer_t *buffer, const wchar_t *file_pathname);
-
 
38
int Buffer_WriteToFile (buffer_t *buffer, const char *file_pathname);
-
 
39
int Buffer_WriteToFileW (buffer_t *buffer, const wchar_t *file_pathname);
-
 
40
char *Buffer_Find (buffer_t *buffer, char *needle, unsigned long needle_length);
-
 
41
int Buffer_Compare (buffer_t *buffer1, buffer_t *buffer2);
-
 
42
unsigned long Buffer_OffsetOf (buffer_t *buffer, void *something);
20
 
43
 
21
// challenge.cpp function prototypes
44
// challenge.cpp function prototypes
22
void Challenges_Init (void);
45
void Challenges_Init (void);
23
void Challenges_Shutdown (void);
46
void Challenges_Shutdown (void);
24
challenge_t *Challenge_FindOrCreate (const wchar_t *nickname);
47
challenge_t *Challenge_FindOrCreate (const wchar_t *nickname);
Line 141... Line 164...
141
void PlayerCards_Shutdown (void);
164
void PlayerCards_Shutdown (void);
142
playercard_t *PlayerCard_FindOrCreate (const wchar_t *nickname);
165
playercard_t *PlayerCard_FindOrCreate (const wchar_t *nickname);
143
void PlayerCard_AppendPersonalData (playercard_t *playercard, const wchar_t *text);
166
void PlayerCard_AppendPersonalData (playercard_t *playercard, const wchar_t *text);
144
 
167
 
145
// render.cpp function prototypes
168
// render.cpp function prototypes
146
bool Render_Init (void);
169
bool Render_Init (const wchar_t *fmt, ...); // parameter = splash screen pathname
147
void Render_Shutdown (void);
170
void Render_Shutdown (void);
148
void Render_RenderFrame (scene_t *scene);
171
void Render_RenderFrame (scene_t *scene);
149
int Render_LoadMesh (const wchar_t *fmt, ...);
172
int Render_LoadMesh (const wchar_t *fmt, ...);
150
int Render_LoadTexture (const wchar_t *fmt, ...);
173
int Render_LoadTexture (const wchar_t *fmt, ...);
151
int Render_LoadFont (const wchar_t *font_name, int font_size, bool is_bold, bool is_italic);
174
int Render_LoadFont (const wchar_t *font_name, int font_size, bool is_bold, bool is_italic);