aboutsummaryrefslogtreecommitdiff
path: root/src/tikz/overview.tex
blob: ac0bbf89d8a02ba343a9c25fa550e04d3bfbce7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\begin{tikzpicture}

\tikzset{drawbox/.style={draw, rectangle, minimum height=1cm, minimum width=3cm}}
\tikzset{drawline/.style={midway, sloped, text width=2cm, text centered}}

% figure title
\node[rectangle] at (5, 1) (title) {\underline{\bf Infrastructure overview}};

% gameserver, masterserver, game client
\node[drawbox] at ( 0,  0) (gs) {\bf gameserver};
\node[drawbox] at (10, -2) (ms) {\bf masterserver};
\node[drawbox] at ( 2, -4) (gc) {\bf game client};

% interactions
\draw (gs) -- (ms) node[drawline] {(1) UDP\\heartbeat};
\draw (gc) -- (ms) node[drawline] {(2) TCP\\list request};
\draw (gc) -- (gs) node[drawline, rotate=90, left, align=right] {(3) UDP\\status request};


\end{tikzpicture}