blob: e0b568d9ca09f08982a1ada1aca948bc4031453d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Interface of CCustomAwardList
//
// $Workfile: $
// $Date: $
//
//------------------------------------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#ifndef CUSTOMAWARDLIST_H
#define CUSTOMAWARDLIST_H
#ifdef WIN32
#pragma once
#endif
#include "CustomAward.h"
#include <list>
using namespace std;
typedef list<CCustomAward*>::iterator CCustomAwardIterator;
//------------------------------------------------------------------------------------------------------
// Purpose: this is just a thin wrapper around a list of CCustomAward*s
// also provided is a static factory method to read a list of custom awards
// out of a configuration file
//------------------------------------------------------------------------------------------------------
class CCustomAwardList
{
public:
list<CCustomAward*> theList;
//factory method
static CCustomAwardList* readCustomAwards(string mapname);
CCustomAwardIterator begin(){return theList.begin();}
CCustomAwardIterator end(){return theList.end();}
};
#endif // CUSTOMAWARDLIST_H
|