/*
        savefile.h

        V1.00 - 290197  Kimmo Teräväinen
        -----   ------  ----------------
        V0.01   290197  Started.
        V0.10   300197  Tested. Crypt not done.
        V0.11   010497  BUG FIXED: File was not closed properly.
                        This means that if there is not f.close()
                        file lock remains and causes savefile unreadable
                        until reset...
*/
#ifndef DC1_POKER_SAVEFILE
#define DC1_POKER_SAVEFILE

class cSaveFile {
  const char *name;
  int   points;
public:
  cSaveFile(const char *Name) : name(Name) {}

  int Points() const { return points; }
  int Points(int po) { return points=po; }

  void Crypt(char *);
  int Load();
  int Save();

};

#endif