-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDataSave.h
More file actions
36 lines (26 loc) · 946 Bytes
/
DataSave.h
File metadata and controls
36 lines (26 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef DATASAVE_H
#define DATASAVE_H
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <sstream>
#include "ScoreObjects.h"
#include "Player.h"
const int MAX = 127;
const int MIN = 31;
const int RANGE = MAX - MIN; // Range = MaxValue - MinValue
const std::string ENCRYPTION_KEY = "dskmd23gmnw3245676zdfe1345";
//This will be the key used to encrypt/decrypt the saves and maps
const std::string PLAYER_DATAPATH = "Players";
//The files containing player data will be contained in this path
const std::string PLAYER_INFO = "players.dat";
//This file indexes all of the player data files
int LoadAndDecryptFile(playerArray & v);
//Loads the information of an encrypted file and decrypts it
//It is an int to return error codes
//AUXILIARY FUNCTIONS WILL BE DECLARED HERE
//------------------------------------------
void SaveAndEncrypt(playerArray const& v);
void DecryptVigenere(std::string & d);
#endif