Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Res.h
Go to the documentation of this file.
1 /* Project nGenEx
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: nGenEx.lib
6  FILE: Res.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Abstract Resource class
13 */
14 
15 #ifndef Res_h
16 #define Res_h
17 
18 #include "Types.h"
19 
20 // +--------------------------------------------------------------------+
21 
22 class Resource
23 {
24 public:
25  Resource();
26  virtual ~Resource();
27 
28  int operator == (const Resource& r) const { return id == r.id; }
29 
30  HANDLE Handle() const { return id; }
31 
32 protected:
33  HANDLE id;
34 };
35 
36 #endif Res_h
37