\hypertarget{spacetype__test_8c}{}\doxysection{spacetype\+\_\+test.\+c File Reference}
\label{spacetype__test_8c}\index{spacetype\_test.c@{spacetype\_test.c}}


Test Mode of Space Type.  


This graph shows which files directly or indirectly include this file\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=172pt]{spacetype__test_8c__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{spacetype__test_8c_ae1a3968e7947464bee7714f6d43b7002}{test}} ()
\begin{DoxyCompactList}\small\item\em main function for test mode \end{DoxyCompactList}\item 
void \mbox{\hyperlink{spacetype__test_8c_a25ba3fb7af6ebbefc65c74be1ed8e186}{test\+\_\+menu}} ()
\begin{DoxyCompactList}\small\item\em main menu for test screen \end{DoxyCompactList}\item 
void \mbox{\hyperlink{spacetype__test_8c_af55403a1d20e95c21ed04315a711d285}{test\+\_\+process}} (char test\+\_\+text\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Handles the typing test process. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{Indent}\textbf{ Passages for Test mode}\par
\begin{DoxyCompactItemize}
\item 
char \mbox{\hyperlink{spacetype__test_8c_a194eee429f0f09e98c4acdb85516880f}{text1}} \mbox{[}300\mbox{]} = \{\char`\"{}Wealth, fame, power. Gold Roger, the King of the Pirates, attained everything this world has to offer. And so, many men head for the Grand Line to find the great treasure he left behind, the One Piece. The world has truly entered a Great Pirate Era!\char`\"{}\}
\begin{DoxyCompactList}\small\item\em Passages for Test Mode. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{spacetype__test_8c_a02e09caff14bb95fe8b40838057007ab}\label{spacetype__test_8c_a02e09caff14bb95fe8b40838057007ab}} 
char {\bfseries text2} \mbox{[}381\mbox{]} = \{\char`\"{}The Tale of Jiraiya the Gallant. Now it\textquotesingle{}ll end a bit better, I hope. The final chapter. I\textquotesingle{}ll call it\+: Frog at the bottom of the well drifts off into the great ocean. Just barely glorious. But glorious indeed. Now I suppose it\textquotesingle{}s about time I put down my pen. Oh, right. What should I name the sequel? I wonder. Let\textquotesingle{}s see\+: The Tale of Naruto Uzumaki. Yes, that has a nice ring to it.\char`\"{}\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a2b5f075b647a4a3415b8a88686173f15}\label{spacetype__test_8c_a2b5f075b647a4a3415b8a88686173f15}} 
char {\bfseries text3} \mbox{[}450\mbox{]} = \{\char`\"{}A late 20th century trend in typing, primarily used with devices with small keyboards (such as PDAs and Smartphones) is thumbing or thumb typing. This can be accomplished using one or both thumbs. Similar to desktop keyboards and input devices, if a user overuses keys which need hard presses and/or have small and unergonomic layouts, it could cause thumb tendonitis or other repetitive strain injury.\char`\"{}\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a220428aab83d7b6047c12c6a35a1cf2b}\label{spacetype__test_8c_a220428aab83d7b6047c12c6a35a1cf2b}} 
char {\bfseries text4} \mbox{[}450\mbox{]} = \{\char`\"{}Today, historians relate that, as a general rule, buying and selling securities was very much unorganized before the year 1792. Every person who owned a security faced the problem of finding interested buyers who might consider the purchase of a debt-\/free investment. This meant most people were somewhat slow in investing in stocks and bonds because these securities could not readily be converted into money.\char`\"{}\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a03feabf5490c963a9f308e48c9d27dc8}\label{spacetype__test_8c_a03feabf5490c963a9f308e48c9d27dc8}} 
char {\bfseries text5} \mbox{[}287\mbox{]} = \{\char`\"{}The Master of Business Administration (MBA or M.\+B.\+A.) degree originated in the United States. The core courses in an MBA program cover various areas of business such as accounting, applied statistics, business law, finance, managerial economics, management, entrepreneurship \& marketing.\char`\"{}\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_ab8f36377d346e4000579d352f0fe2f34}\label{spacetype__test_8c_ab8f36377d346e4000579d352f0fe2f34}} 
char {\bfseries text6} \mbox{[}438\mbox{]} = \{\char`\"{}When we talk about motivating others, the justification is the end result (either we want to avoid the pain or go towards pleasure) or what we want to get the person to do. How we achieve the end result, are our alternatives. As a manager, we need to understand the other person\textquotesingle{}s justification and then come up with alternatives. We may then choose the right alternative. Typically people stop at this level of analysis and start to act.\char`\"{}\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a491663435437e06906d728294a897b1d}\label{spacetype__test_8c_a491663435437e06906d728294a897b1d}} 
char {\bfseries text7} \mbox{[}456\mbox{]} = \{\char`\"{}A data entry clerk is a member of staff employed to enter or update data into a computer system. Data is often entered into a computer from paper documents using a keyboard. The keyboards used can often have special keys -\/ Alt, Ctrl, Fn, Shift -\/ multiple colors to help in the task \& speed up the work. Proper ergonomics at the workstation is a common topic considered. The Data Entry Clerk may also use a mouse, and a manually-\/fed scanner may be involved.\char`\"{}\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_ae1680dedaeca10e92cbb8ccfc47c6993}\label{spacetype__test_8c_ae1680dedaeca10e92cbb8ccfc47c6993}} 
char {\bfseries text8} \mbox{[}530\mbox{]} = \{\char`\"{}An ever-\/growing number of complex rules plus hard-\/to-\/cope-\/with regulations are now being legislated from state to state. Key federal regulations were formulated by the FDA, FTC, and the CPSC. Each of these federal agencies serves a specific mission. One example\+: Laws sponsored by the Office of the Fair Debt Collection Practices prevent an agency from purposefully harassing clients in serious debt. The Fair Packaging and Labeling Act makes certain that protection from misleading packaging of goods is guaranteed to each buyer.\char`\"{}\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a9ca46ea015de144c21605f1bd37b0b58}\label{spacetype__test_8c_a9ca46ea015de144c21605f1bd37b0b58}} 
char {\bfseries text9} \mbox{[}400\mbox{]} = \{\char`\"{}Business casual is an ambiguously defined Western dress code that is generally considered casual wear but with smart (in the sense of \textquotesingle{}well dressed\textquotesingle{}) components of a proper lounge suit from traditional informal wear, adopted for white-\/collar workplaces. This interpretation typically including dress shirt, necktie, \& trousers, but worn with an odd-\/colored blazer or a sports coat instead.\char`\"{}\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_aeb75059f14f3531031bf1ff5319f952d}\label{spacetype__test_8c_aeb75059f14f3531031bf1ff5319f952d}} 
char {\bfseries text10} \mbox{[}520\mbox{]} = \{\char`\"{}Many touch typists also use keyboard shortcuts or hotkeys when typing on a computer. This allows them to edit their document without having to take their hands off the keyboard to use a mouse. An example of a keyboard shortcut is pressing the Ctrl key + the S key to save a document as they type, or the Ctrl key + the Z key to undo a mistake. Many experienced typists can feel or sense when they have made an error \& can hit the Backspace key \& make the correction with no increase in time between keystrokes.\char`\"{}\}
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\textbf{ Extern variables from main}\par
{\em different variables initialized before needed for this portion }\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a8e4a12cb358091be4a5f7447b57e2014}\label{spacetype__test_8c_a8e4a12cb358091be4a5f7447b57e2014}} 
Music {\bfseries music}
\begin{DoxyCompactList}\small\item\em background music \end{DoxyCompactList}\item 
\mbox{\Hypertarget{spacetype__test_8c_ae50cb92a78d9e0a4f4bd718fc02bd294}\label{spacetype__test_8c_ae50cb92a78d9e0a4f4bd718fc02bd294}} 
int {\bfseries screen\+Width}
\begin{DoxyCompactList}\small\item\em screen width for graphical operations \end{DoxyCompactList}\item 
\mbox{\Hypertarget{spacetype__test_8c_a9ebc1dbd77788c4bfa27758a6725413f}\label{spacetype__test_8c_a9ebc1dbd77788c4bfa27758a6725413f}} 
int {\bfseries screen\+Height}
\begin{DoxyCompactList}\small\item\em screen height for graphical operations \end{DoxyCompactList}\item 
\mbox{\Hypertarget{spacetype__test_8c_a81aa2ca2abef778dcd32bddb7dbb164e}\label{spacetype__test_8c_a81aa2ca2abef778dcd32bddb7dbb164e}} 
Font {\bfseries retro\+Font}
\item 
\mbox{\Hypertarget{spacetype__test_8c_acea4ca2ba54cc4d82b420245162501c1}\label{spacetype__test_8c_acea4ca2ba54cc4d82b420245162501c1}} 
Font {\bfseries regular\+Font}
\item 
\mbox{\Hypertarget{spacetype__test_8c_af96cbe49197628e2b40f64e969fd819a}\label{spacetype__test_8c_af96cbe49197628e2b40f64e969fd819a}} 
Texture2D {\bfseries cockpit\+Texture}
\item 
Texture2D \mbox{\hyperlink{spacetype__test_8c_ad3e43f46994781a6189f0d5a93145898}{cockpit\+Texture\+Keyboard}}
\begin{DoxyCompactList}\small\item\em Textures for background. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\textbf{ General variables for Test process}\par
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{spacetype__test_8c_af29b5b186ba23a0c0a3be74cceac9409}\label{spacetype__test_8c_af29b5b186ba23a0c0a3be74cceac9409}} 
bool {\bfseries exit\+Test}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a83af0ae7c9f9661dd2d62ac7b7bafbb2}\label{spacetype__test_8c_a83af0ae7c9f9661dd2d62ac7b7bafbb2}} 
bool {\bfseries exit\+Test\+Process}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a120f69b10a021c93ac130cb55aaaeedf}\label{spacetype__test_8c_a120f69b10a021c93ac130cb55aaaeedf}} 
char {\bfseries input} \mbox{[}550\mbox{]} = \{\}
\item 
\mbox{\Hypertarget{spacetype__test_8c_a5aa1731610537e057191db627c19f1ca}\label{spacetype__test_8c_a5aa1731610537e057191db627c19f1ca}} 
int {\bfseries check}
\end{DoxyCompactItemize}
\end{Indent}


\doxysubsection{Detailed Description}
Test Mode of Space Type. 

\begin{DoxyAuthor}{Author}
Pragalbha Acharya \href{mailto:078bct060.pragalbha@pcampus.edu.np}{\texttt{ 078bct060.\+pragalbha@pcampus.\+edu.\+np}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000004}{Bug}}]No known Bug \end{DoxyRefDesc}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{spacetype__test_8c_ae1a3968e7947464bee7714f6d43b7002}\label{spacetype__test_8c_ae1a3968e7947464bee7714f6d43b7002}} 
\index{spacetype\_test.c@{spacetype\_test.c}!test@{test}}
\index{test@{test}!spacetype\_test.c@{spacetype\_test.c}}
\doxysubsubsection{\texorpdfstring{test()}{test()}}
{\footnotesize\ttfamily void test (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



main function for test mode 

Initializes the background texture, continues the background music, draws the background and calls test\+\_\+menu function for further navigation Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{spacetype__test_8c_ae1a3968e7947464bee7714f6d43b7002_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{spacetype__test_8c_a25ba3fb7af6ebbefc65c74be1ed8e186}\label{spacetype__test_8c_a25ba3fb7af6ebbefc65c74be1ed8e186}} 
\index{spacetype\_test.c@{spacetype\_test.c}!test\_menu@{test\_menu}}
\index{test\_menu@{test\_menu}!spacetype\_test.c@{spacetype\_test.c}}
\doxysubsubsection{\texorpdfstring{test\_menu()}{test\_menu()}}
{\footnotesize\ttfamily void test\+\_\+menu (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



main menu for test screen 

Draws the menu for the test mode. Gives the user the option to choose the difficulty that they want their test to be in. Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{spacetype__test_8c_a25ba3fb7af6ebbefc65c74be1ed8e186_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{spacetype__test_8c_af55403a1d20e95c21ed04315a711d285}\label{spacetype__test_8c_af55403a1d20e95c21ed04315a711d285}} 
\index{spacetype\_test.c@{spacetype\_test.c}!test\_process@{test\_process}}
\index{test\_process@{test\_process}!spacetype\_test.c@{spacetype\_test.c}}
\doxysubsubsection{\texorpdfstring{test\_process()}{test\_process()}}
{\footnotesize\ttfamily void test\+\_\+process (\begin{DoxyParamCaption}\item[{char}]{test\+\_\+text\mbox{[}$\,$\mbox{]} }\end{DoxyParamCaption})}



Handles the typing test process. 

This function divides the large text into smaller parts, and displays it on the screen to make it easier for the user. Gets the key pressed by the user, checks with the letter from the text, and highlights if its correct. The second part of the text only displayed once the displayed part is enterred correctly. Statistics like typing speed, accuracy are shown at the end.


\begin{DoxyParams}{Parameters}
{\em test\+\_\+text} & Indicates which passage is to be displayed \\
\hline
\end{DoxyParams}
Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=287pt]{spacetype__test_8c_af55403a1d20e95c21ed04315a711d285_cgraph}
\end{center}
\end{figure}


\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{spacetype__test_8c_ad3e43f46994781a6189f0d5a93145898}\label{spacetype__test_8c_ad3e43f46994781a6189f0d5a93145898}} 
\index{spacetype\_test.c@{spacetype\_test.c}!cockpitTextureKeyboard@{cockpitTextureKeyboard}}
\index{cockpitTextureKeyboard@{cockpitTextureKeyboard}!spacetype\_test.c@{spacetype\_test.c}}
\doxysubsubsection{\texorpdfstring{cockpitTextureKeyboard}{cockpitTextureKeyboard}}
{\footnotesize\ttfamily Texture2D cockpit\+Texture\+Keyboard}



Textures for background. 

Background Texture. \mbox{\Hypertarget{spacetype__test_8c_a194eee429f0f09e98c4acdb85516880f}\label{spacetype__test_8c_a194eee429f0f09e98c4acdb85516880f}} 
\index{spacetype\_test.c@{spacetype\_test.c}!text1@{text1}}
\index{text1@{text1}!spacetype\_test.c@{spacetype\_test.c}}
\doxysubsubsection{\texorpdfstring{text1}{text1}}
{\footnotesize\ttfamily char text1\mbox{[}300\mbox{]} = \{\char`\"{}Wealth, fame, power. Gold Roger, the King of the Pirates, attained everything this world has to offer. And so, many men head for the Grand Line to find the great treasure he left behind, the One Piece. The world has truly entered a Great Pirate Era!\char`\"{}\}}



Passages for Test Mode. 

These string contains various texts of varying difficulty and types for the test mode. 