44/*
55Made By: Patrick J. Rye
66Purpose: 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
88Change Log---------------------------------------------------------------------------------------------------------------------------------------------------
99Date Revision Changed By Changes
1010------ --------- ------------ ---------------------------------------------------------------------------------------------------------------------
@@ -19,9 +19,84 @@ Date Revision Changed By Changes
19192015/03/04 2.1.1 Patrick Rye -Removed save exists function as it was replaced by file exists.
2020=============================================================================================================================================================
21212015/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+
25100using namespace std ;
26101
27102bool 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