convert line ends
[canaan.git] / prj / cam / src / deepc / game / dpcgoalr.cpp
blob87710a07102843de65439313b13aecbf85d1b8ab
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 // $Header: r:/t2repos/thief2/src/deepc/game/dpcgoalr.cpp,v 1.1 2000/01/26 19:06:33 porges Exp $
7 #include <dpcgoalr.h>
8 #include <drkuires.h>
9 #include <dpcmiss.h>
11 cStr GoalStringTable()
13 const sMissionData* data = GetMissionData();
14 cStr table = data->path;
15 if (table[0] != '\0')
16 table+="/";
17 table += "goals" ;
18 return table;
21 cStr GoalDescription(int i)
23 char buf[64];
24 sprintf(buf,"TEXT_%d",i);
25 return FetchUIString(GoalStringTable(),buf);
28 cStr GoalFiction(int i)
30 char buf[64];
31 sprintf(buf,"FICTION_%d",i);
32 return FetchUIString(GoalStringTable(),buf);
35 IDataSource* GoalStatus(int state)
37 char buf[64];
38 sprintf(buf,"goali%03d",state);
39 return FetchUIImage(buf);