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

Last change on this file since 659 was 555, checked in by Sam Hocevar, 11 years ago

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

  • Property svn:keywords set to Id
File size: 948 bytes
RevLine 
[56]1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
[494]4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
[56]5 *
6 *  This software was released into the Public Domain. As with most public
[555]7 *  domain software, no warranty is made or implied by Crack dot Com, by
8 *  Jonathan Clark, or by Sam Hocevar.
[56]9 */
10
[2]11#ifndef __PROPERTY_HPP_
12#define __PROPERTY_HPP_
13
14class property;
15class property_manager
16{
17  property *first;
[39]18  property *find(char const *name);
[2]19  public :
[124]20  property_manager() { first=0; }
[39]21  void load(char const *filename);
22  void save(char const *filename);
[124]23
[39]24  int getd(char const *name, int def) { return (int)get(name,def); }
25  int get(char const *name, int def);
26  char const *get(char const *name, char const *def);
[2]27
[39]28  void setd(char const *name, int def) { set(name,def); }
29  void set(char const *name, double def);
30  void set(char const *name, char const *def);
[2]31  ~property_manager();
32} ;
33
34
35#endif
Note: See TracBrowser for help on using the repository browser.