Last change
on this file since 57 was
57,
checked in by Sam Hocevar, 14 years ago
|
- Move each header to the same directory as its corresponding source, to
get a better idea of which files are likely to export symbols.
|
File size:
873 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * |
---|
5 | * This software was released into the Public Domain. As with most public |
---|
6 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
7 | * Jonathan Clark. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef __PROPERTY_HPP_ |
---|
11 | #define __PROPERTY_HPP_ |
---|
12 | |
---|
13 | class property; |
---|
14 | class property_manager |
---|
15 | { |
---|
16 | property *first; |
---|
17 | property *find(char const *name); |
---|
18 | public : |
---|
19 | property_manager() { first=0; } |
---|
20 | void load(char const *filename); |
---|
21 | void save(char const *filename); |
---|
22 | |
---|
23 | int getd(char const *name, int def) { return (int)get(name,def); } |
---|
24 | int get(char const *name, int def); |
---|
25 | char const *get(char const *name, char const *def); |
---|
26 | |
---|
27 | void setd(char const *name, int def) { set(name,def); } |
---|
28 | void set(char const *name, double def); |
---|
29 | void set(char const *name, char const *def); |
---|
30 | ~property_manager(); |
---|
31 | } ; |
---|
32 | |
---|
33 | |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.