You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef KOLF_STATEDB_H
|
|
|
|
#define KOLF_STATEDB_H
|
|
|
|
|
|
|
|
#include <tqmap.h>
|
|
|
|
#include <tqstring.h>
|
|
|
|
#include <tqpoint.h>
|
|
|
|
|
|
|
|
// items can save their per-game states here
|
|
|
|
// most don't have to do anything
|
|
|
|
class StateDB
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void setPoint(const TQPoint &point) { points[curName] = point; }
|
|
|
|
TQPoint point() { return points[curName]; }
|
|
|
|
void setName(const TQString &name) { curName = name; }
|
|
|
|
void clear() { points.clear(); }
|
|
|
|
|
|
|
|
private:
|
|
|
|
TQMap<TQString, TQPoint> points;
|
|
|
|
TQString curName;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|