FS2_Open
Open source remastering of the Freespace 2 engine
medals.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 
11 
12 #ifndef FREESPACE_MEDAL_HEADER_FILE
13 #define FREESPACE_MEDAL_HEADER_FILE
14 
15 #include "globalincs/globals.h"
16 #include "globalincs/pstypes.h"
17 
18 class scoring_struct;
19 class player;
20 
21 #define MAX_BADGES 3
22 extern int Rank_medal_index;
23 
25 
26 // NUM_MEDALS stored in scoring.h since needed for player scoring structure
27 
29 {
30 public:
38 
39  //If this is a badge (kills_needed > 0)
42 
43  medal_stuff();
44  ~medal_stuff();
45 
46  medal_stuff(const medal_stuff &m);
47  const medal_stuff &operator=(const medal_stuff &m);
48 
49 private:
50  void clone(const medal_stuff &m);
51 };
52 
54 
55 extern void parse_medal_tbl();
56 
57 // modes for this screen
58 #define MM_NORMAL 0 // normal - run through the state code
59 #define MM_POPUP 1 // called from within some other tight loop (don't use gameseq_ functions)
60 
61 // main medals screen
62 void medal_main_init(player *pl,int mode = MM_NORMAL);
63 
64 // return 0 if the screen should close (used for MM_POPUP mode)
65 int medal_main_do();
66 void medal_main_close();
67 
68 int medals_info_lookup(const char *name);
69 
70 #endif
#define MAX_FILENAME_LEN
Definition: pstypes.h:324
int num_versions
Definition: medals.h:34
scoring_struct * Player_score
Definition: medals.cpp:148
void medal_main_init(player *pl, int mode=MM_NORMAL)
Definition: medals.cpp:525
char voice_base[MAX_FILENAME_LEN]
Definition: medals.h:40
char debrief_bitmap[MAX_FILENAME_LEN]
Definition: medals.h:33
GLenum mode
Definition: Glext.h:5794
int Rank_medal_index
Definition: medals.cpp:177
int medal_main_do()
Definition: medals.cpp:670
SCP_vector< medal_stuff > Medals
Definition: medals.cpp:33
const medal_stuff & operator=(const medal_stuff &m)
Definition: medals.cpp:230
Definition: player.h:85
#define MM_NORMAL
Definition: medals.h:58
bool available_from_start
Definition: medals.h:36
int medals_info_lookup(const char *name)
Definition: medals.cpp:858
Definition: bmpman.h:101
SCP_map< int, char * > promotion_text
Definition: medals.h:41
GLuint const GLchar * name
Definition: Glext.h:5608
bool version_starts_at_1
Definition: medals.h:35
int kills_needed
Definition: medals.h:37
~medal_stuff()
Definition: medals.cpp:193
#define NAME_LENGTH
Definition: globals.h:15
void parse_medal_tbl()
Definition: medals.cpp:246
void medal_main_close()
Definition: medals.cpp:736
const GLfloat * m
Definition: Glext.h:10319