Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

Commit 763da85

Browse files
GamerMan7799GamerMan7799
authored andcommitted
Merge pull request #23 from GamerMan7799/dev
Update master to V3.1b
2 parents 174fdda + 41ae7c4 commit 763da85

File tree

5 files changed

+395
-213
lines changed

5 files changed

+395
-213
lines changed

basic.h

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/*
55
Made By: Patrick J. Rye
66
Purpose: A header to hold functions that are pretty basic and likely won't change very often or at all.
7-
Current Revision: 2.1.2
7+
Current Revision: 2.1.3
88
Change Log---------------------------------------------------------------------------------------------------------------------------------------------------
99
Date Revision Changed By Changes
1010
------ --------- ------------ ---------------------------------------------------------------------------------------------------------------------
@@ -19,9 +19,84 @@ Date Revision Changed By Changes
1919
2015/03/04 2.1.1 Patrick Rye -Removed save exists function as it was replaced by file exists.
2020
=============================================================================================================================================================
2121
2015/03/05 2.1.2 Patrick Rye -Changed change log date format from MM/DD/YY to YYYY/MM/DD because I like it better.
22+
=============================================================================================================================================================
23+
2015/03/09 2.1.3 Patrick Rye -Moved win / opening messages here.
24+
-Moved enums here.
2225
=============================================================================================================================================================
2326
*/
2427

28+
/*********************************************************************************************************/
29+
#include <string>
30+
//Some constant string for different messages that appear as large ASCII text.
31+
const std::string OpeningMessage[16] = {" \n",
32+
",--. ,--. ,--. \n",
33+
"| | | | ,---. | | ,---. ,---. ,--,--,--. ,---. \n",
34+
"| |.'.| || .-. :| || .--'| .-. || || .-. : \n",
35+
"| ,'. |\\ --.| |\\ `--.' '-' '| | | |\\ --. \n",
36+
"'--' '--' `----'`--' `---' `---' `--`--`--' `----' \n",
37+
" ,--. \n",
38+
",-' '-. ,---. \n",
39+
"'-. .-'| .-. | \n",
40+
" | | ' '-' ' \n",
41+
" `--' `---' \n",
42+
" ,---. ,--. ,--. ,--. \n",
43+
" / O \\ ,-' '-.,-' '-. ,--,--. ,---.| |,-. ,---. ,--.--. \n",
44+
"| .-. |'-. .-''-. .-'' ,-. || .--'| /| .-. :| .--' \n",
45+
"| | | | | | | | \\ '-' |\\ `--.| \\ \\\\ --.| | \n",
46+
"`--' `--' `--' `--' `--`--' `---'`--'`--'`----'`--' \n"};
47+
48+
const std::string WinningMessage[6] = {"__ __ _ _ _ _ _ \n",
49+
"\\ \\ / / | | | (_) | | |\n",
50+
" \\ V /___ _ _ | | | |_ _ __ | | |\n",
51+
" \\ // _ \\| | | | | |/\\| | | '_ \\| | |\n",
52+
" | | (_) | |_| | \\ /\\ / | | | |_|_|\n",
53+
" \\_/\\___/ \\__,_| \\/ \\/|_|_| |_(_|_)\n"};
54+
55+
/*********************************************************************************************************/
56+
enum effects
57+
{
58+
effectNone = 0,
59+
effectBlinded,
60+
effectFrozen,
61+
effectBurned,
62+
effectWet,
63+
};
64+
65+
enum stats
66+
{
67+
statStr = 0,
68+
statCons,
69+
statDef,
70+
statDex,
71+
statLuk,
72+
statCurrHealth,
73+
statMaxHealth,
74+
statStatus,
75+
};
76+
77+
enum elements
78+
{
79+
elementFire = 0,
80+
elementIce,
81+
elementEnergy,
82+
elementDarkness,
83+
elementLight,
84+
elementEarth,
85+
elementWind,
86+
elementWater,
87+
elementPhysical, //Currently does nothing.
88+
elementNone //For spells that don't do damage.
89+
};
90+
91+
enum spelltypes
92+
{
93+
typeHeal = 0,
94+
typeEffect,
95+
typeDamage,
96+
};
97+
/*********************************************************************************************************/
98+
99+
25100
using namespace std;
26101

27102
bool fileexists(const char *fileName)
@@ -65,4 +140,8 @@ char CharConvertToUpper(char chrCheck)
65140
return converted;
66141
}
67142

143+
void ShowOpeningMessage() {for (int i = 0; i < 16; i++){cout<<OpeningMessage[i];}}
144+
145+
void ShowWinningMessage() {for (int i = 0; i < 6; i++) {cout<<WinningMessage[i];}}
146+
68147
#endif //If header was already called load nothing

0 commit comments

Comments
 (0)