cp_event.h

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018 See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 
00024 */
00025 
00026 #ifndef CLIENT_CL_EVENT
00027 #define CLIENT_CL_EVENT
00028 
00029 #define MAX_EVENTMAILS 64
00030 #define MAX_CAMPAIGNEVENTS 128
00031 
00039 typedef struct eventMail_s {
00040     char *id;           
00041     char *from;         
00042     char *to;           
00043     char *cc;           
00044     char *subject;      
00047     char *date;         
00048     char *body;         
00049     char *icon;         
00050     char *model;        
00051     qboolean read;      
00052 } eventMail_t;
00053 
00054 void CL_EventAddMail_f(void);
00055 void CL_ParseEventMails(const char *name, const char **text);
00056 eventMail_t* CL_GetEventMail(const char *id, qboolean createCopy);
00057 eventMail_t* CL_NewEventMail(const char *id, const char *newID, const char *body);
00058 void CL_FreeDynamicEventMail(void);
00059 
00063 typedef struct campaignEvent_s {
00064     char *tech;         
00065     int interest;       
00066 } campaignEvent_t;
00067 
00068 typedef struct campaignEvents_s {
00069     campaignEvent_t campaignEvents[MAX_CAMPAIGNEVENTS]; 
00070     int numCampaignEvents;  
00071     char *id;               
00072 } campaignEvents_t;
00073 
00074 void CP_CheckCampaignEvents(void);
00075 void CL_ParseCampaignEvents(const char *name, const char **text);
00076 const campaignEvents_t *CP_GetEventsByID(const char *name);
00077 
00078 #endif /* CLIENT_CL_EVENT */

Generated by  doxygen 1.6.2