#pragma once

#include <iostream>
#include <cstring>
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include "PublicFun.h"
#include "Date.h"
#include "Country.h"
#include "CityList.h"
#include "HeroList.h"
#include "GoodList.h"
#include "TaskList.h"

class Save
{

public:
	void Init(int owner,int year);
	int KeyDown(WPARAM KeyCode);
	void Show();
	int Read(int retval);
	void Write(int retval);

//private:
	int owner[3];
	int year[3];
	int count;
		
	//Ðè´æ´¢µÄÐÅÏ¢
	int herosave[HEROMAX][19];
	int citysave[CITYMAX][20];
	int goodsave[GOODMAX][11];
	int tasklistsave[TASKLISTMAX][10];
	int herolistsave[12];
	int citylistsave[4];
	int goodlistsave[9];
	int gamemapsave[9];	
	int month;
	int year1;
	int owner1;
	int tasknum;
	int choice;

	char ownername[20];
	char ownername1[20];
	char ownername2[20];

};
