add some diagrams to .tex, merged changes
authorterom
Tue, 09 Dec 2008 04:23:57 +0000
changeset 362 6c7b4deefdfb
parent 361 1b87b1e0ae1d
child 363 971769b5f8c7
add some diagrams to .tex, merged changes
doc/images/class_GameState_collaboration_graph.png
doc/images/class_Player_inherit_graph.png
doc/images/class_player_inherit_graph.png
doc/images/normaali_algo.png
doc/kishna.tex
doc/normaali_algo.png
Binary file doc/images/class_GameState_collaboration_graph.png has changed
Binary file doc/images/class_Player_inherit_graph.png has changed
Binary file doc/images/class_player_inherit_graph.png has changed
Binary file doc/images/normaali_algo.png has changed
--- a/doc/kishna.tex	Tue Dec 09 04:22:30 2008 +0000
+++ b/doc/kishna.tex	Tue Dec 09 04:23:57 2008 +0000
@@ -148,6 +148,16 @@
 are some nice diagrams about the program structure in the doxygen
 documentation.
 
+\begin{figure}[!ht]
+ \centering \includegraphics[width=\textwidth]{images/class_Player_inherit_graph.png}
+ \caption{Player class inheritance graph. \label{class_Player_inheritance}}
+\end{figure}
+
+\begin{figure}[!ht]
+ \centering \includegraphics[width=\textwidth]{images/class_GameState_collaboration_graph.png}
+ \caption{Relationships of core GameState class. \label{class_GameState_collaboration}}
+\end{figure}
+
 \subsection{Network}
 
 The network code is implemented as separate NetworkServer and NetworkClient modules, which use a common high-level
@@ -200,6 +210,11 @@
 Currently, the client only sends handleInput using unreliable UDP messages, and the server only sends position updates
 (as sent in response to handleInput events) unreliably. All other events are sent using reliable TCP.
 
+\begin{figure}[!ht]
+ \centering \includegraphics[width=\textwidth]{images/class_NetworkObject_inherit_graph.png}
+ \caption{Use of NetworkObject in network code. \label{class_NetworkObject_inherit}}
+\end{figure}
+
 \section{Data structures and algorithms}
 
 \subsection{Basic data structures}
@@ -277,7 +292,7 @@
 Picture \ref{algo} explains the algorithm a lot. In the middle of the pictured we have zoomed to the collision point. The red arrow is the sum of the black arrows and thus it is our approximation for the normal.
 
 \begin{figure}[!ht]
- \centering \includegraphics[width=0.7\textwidth]{normaali_algo.png}
+ \centering \includegraphics[width=0.7\textwidth]{images/normaali_algo.png}
  \caption{Visualizing the algorithm for approximating the normal. \label{algo}}
 \end{figure}
 
@@ -320,8 +335,6 @@
 last density and step diagonal to last density's points -- otherwise it is quite similar
 to the one dimensional version. We decide to implement the algorithm as iterative instead of recursion.
 
-% TODO: something network related?
-
 \subsection{Input}
 
 All input is represented as a bitmask, composed of bits from \textsl{enum PlayerInputBits}. Additionally, the Graphics
Binary file doc/normaali_algo.png has changed