diff options
| -rw-r--r-- | Info/23_24/04/08/10B/.gitignore | 1 | ||||
| -rw-r--r-- | Info/23_24/04/08/10B/handout.tex | 99 | ||||
| -rw-r--r-- | Info/23_24/04/08/10B/printout.tex | 6 |
3 files changed, 106 insertions, 0 deletions
diff --git a/Info/23_24/04/08/10B/.gitignore b/Info/23_24/04/08/10B/.gitignore new file mode 100644 index 00000000..a1363379 --- /dev/null +++ b/Info/23_24/04/08/10B/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/Info/23_24/04/08/10B/handout.tex b/Info/23_24/04/08/10B/handout.tex new file mode 100644 index 00000000..5019198a --- /dev/null +++ b/Info/23_24/04/08/10B/handout.tex @@ -0,0 +1,99 @@ +\documentclass[a5paper]{handout} +\csname endofdump\endcsname +\usepackage{minted} + +% \title{Tolles Arbeitsblatt} +% \setcounter{section}{42} + +\begin{document} +\thispagestyle{empty} + +\subsection*{EVA-Loop} +\begin{tabular}{p{0.6\textwidth} p{0.4\textwidth}} +Trennung der Datenverarbeitung in: + +\begin{itemize} +\item \boldred{E}ingabe: \texttt{input()} +\item \boldred{V}erarbeitung: \texttt{update()} +\item \boldred{A}usgabe: \texttt{output()} +\end{itemize} + +\texttt{solange Spiel aktiv~<- GraphicAndGames}\\ +~~\texttt{input()~~~~~~~~~~~~<- GraphicAndGames}\\ +~~\texttt{update()~~~~~~~~~~~<- Wir}\\ +~~\texttt{output()~~~~~~~~~~~<- GraphicAndGames}\\ +& +\vspace{-5cm} +\scalebox{1.5}{ +\begin{tikzpicture} + \node[line width=1pt, draw, minimum width=3cm, rounded corners=5pt] (e) {Eingabe}; + \node[line width=1pt, draw, minimum width=3cm, rounded corners=5pt, below=of e] (v) {Verarbeitung}; + \node[line width=1pt, draw, minimum width=3cm, rounded corners=5pt, below=of v] (a) {Ausgabe}; + \draw[-{Triangle}, line width=1pt] (e) to (v); + \draw[-{Triangle}, line width=1pt] (v) to (a); + \draw[-{Triangle}, line width=1pt, dashed] + (a.east) -- + ($(a.east) + (0.5, 0)$) -- + ($(e.east) + (0.5, 0)$) -- + (e.east); +\end{tikzpicture} +} +\\ +\end{tabular} + +\subsection*{Interface} +\begin{tabular}{p{0.7\textwidth} p{0.35\textwidth}} +\vspace{-2cm} +Die \boldred{Spieleengine} kümmert sich um alles bis auf die Verarbeitung. + +Damit unsere Verarbeitung in den EVA-Loop integriert werden kann, müssen wir eine feste Schnittstelle erfüllen. + +Wir erfüllen mit unserer Spiel-Klasse das \boldred{interface} \texttt{Zeichenfenster.AktionsEmpfaenger} damit uns GraphicsAndGames Eingaben übergeben kann. + +& +% \hspace{-1cm} +\scalebox{1.1}{ +\begin{tikzpicture} +\node[line width=1pt, draw, minimum height=1cm, minimum width=3cm, rounded corners=5pt] (v) {Verarbeitung}; +\node[fill=white, line width=1pt, minimum height=1cm, minimum width=3cm, rounded corners=5pt, above=-0.1cm of v] (e) {Eingabe}; +\draw[line width=1pt, rounded corners=5pt] ($(v.north west) + (0, 1cm)$) -- + ($(v.north east) + (0, 1cm)$) -- + (v.north east) {[sharp corners] -- + ($(v.north east) - (0.625cm, 0)$) -- + ($(v.north east) - (0.6cm, 0.2cm)$) -- + ($(v.north east) - (0.8cm, 0.2cm)$) -- + ($(v.north east) - (0.775cm, 0)$) -- + ($(v.north east) - (1.525cm, 0)$) -- + ($(v.north east) - (1.5cm, 0.2cm)$) -- + ($(v.north east) - (1.7cm, 0.2cm)$) -- + ($(v.north east) - (1.675cm, 0)$) -- + ($(v.north east) - (2.425cm, 0)$) -- + ($(v.north east) - (2.4cm, 0.2cm)$) -- + ($(v.north east) - (2.6cm, 0.2cm)$) -- + ($(v.north east) - (2.575cm, 0)$)} -- + (v.north west) -- + ($(v.north west) + (0, 1cm)$); + +\draw[line width=1pt, red] ($(v.north east) + (0.1cm, 0.2cm)$) -- + ($(v.north east) - (-0.1cm, 0.3cm)$) -- + ($(v.north west) - (0.1cm, 0.3cm)$) -- + ($(v.north west) + (-0.1cm, 0.2cm)$) -- + ($(v.north east) + (0.1cm, 0.2cm)$); + +\node[rotate=90] at ($(v.north west) - (0.3cm, 0.0cm)$) {\boldred{interface}}; +\end{tikzpicture} +} \\ +\end{tabular} + +\textbf{Methoden} + +\begin{minted}{java} +class Snake implements Zeichenfenster.AktionsEmpfaenger + +public void Ausführen() +public void Taste(char taste) +public void SonderTaste(int taste) +public void Geklickt(int x, int y, int anzahl) +\end{minted} + +\end{document} diff --git a/Info/23_24/04/08/10B/printout.tex b/Info/23_24/04/08/10B/printout.tex new file mode 100644 index 00000000..09bbda66 --- /dev/null +++ b/Info/23_24/04/08/10B/printout.tex @@ -0,0 +1,6 @@ +\documentclass[landscape]{article} +\usepackage{pdfpages} +\begin{document} +\pagestyle{empty} +\includepdf[pages={1,1}, nup=2x1]{handout.pdf} +\end{document} |
