source: abuse/trunk/src/property.h @ 481

Last change on this file since 481 was 481, checked in by Sam Hocevar, 12 years ago

Fuck the history, I'm renaming all .hpp files to .h for my own sanity.

  • Property svn:keywords set to Id
File size: 870 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
13class property;
14class 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.