Adapted signals for left- and right-hand traffic

master v0.7.1
Martin Scheidt 2019-09-17 15:39:18 +02:00
parent a4b5c5df5c
commit 2e61b2f3bf
7 changed files with 125 additions and 47 deletions

View File

@ -1,6 +1,11 @@
edugame-rail-traffic-flow edugame-rail-traffic-flow
====== ======
Version 0.7.1
------
Adapted signals for left- and right-hand traffic
Version 0.7 Version 0.7
------ ------
reworking of game mechanics together with tasks and figures reworking of game mechanics together with tasks and figures

View File

@ -52,4 +52,8 @@
\IfLanguage{ngerman}{Spielmechanik mit Aufgaben und Abbildungen überarbeitet} \IfLanguage{ngerman}{Spielmechanik mit Aufgaben und Abbildungen überarbeitet}
\IfLanguage{english}{reworking of game mechanics together with tasks and figures} \IfLanguage{english}{reworking of game mechanics together with tasks and figures}
} }
\vhEntry{0.7.1}{2019-09-09}{MS}{
\IfLanguage{ngerman}{Signale fürs Links- und Rechtsfahren angepasst}
\IfLanguage{english}{Adapted signals for left- and right-hand traffic}
}
\end{versionhistory} \end{versionhistory}

Binary file not shown.

View File

@ -17,16 +17,29 @@
\tikzset{ \tikzset{
pics/distant_signal_go/.style args={#1}{ pics/distant_signal_go/.style args={#1}{
code={ code={
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1); \iftoggle{LeftHandTraffic}{
\draw[loosely dashdotted] (0,-1) -- ( 0,0) -- ++(8,0) -- ++(0,-1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole \draw[line width=4pt] (0,0) -- ++(0,1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (2.1,-1.5) -- ++(2,-1) -- ++(0,2) -- cycle; % signal screen \draw[line width=4pt,fill=base1!50] (2.1,1.5) -- ++(2,-1) -- ++(0,2) -- cycle; % signal screen
\draw[fill=#1] (3.5,-1.5) circle (0.5); % signal aspect \draw[fill=#1] (3.5,1.5) circle (0.5); % signal aspect
\draw[double] (3,-1.5) -- ++(1.0,0); % signal aspect \draw[double] (3,1.5) -- ++(1.0,0); % signal aspect
\node[right] at (0.2,-1) { \node[right] at (0.2,1) {
\IfLanguage{english}{\Large distant signal} \IfLanguage{english}{\Large distant signal}
\IfLanguage{ngerman}{\Large Vorsignal} \IfLanguage{ngerman}{\Large Vorsignal}
}; % label }; % label
}{
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (2.1,-1.5) -- ++(2,-1) -- ++(0,2) -- cycle; % signal screen
\draw[fill=#1] (3.5,-1.5) circle (0.5); % signal aspect
\draw[double] (3,-1.5) -- ++(1.0,0); % signal aspect
\node[right] at (0.2,-1) {
\IfLanguage{english}{\Large distant signal}
\IfLanguage{ngerman}{\Large Vorsignal}
}; % label
}
} }
}, },
pics/distant_signal_go/.default=signalgreen, pics/distant_signal_go/.default=signalgreen,
@ -34,16 +47,29 @@
\tikzset{ \tikzset{
pics/block_signal_go/.style args={#1}{ pics/block_signal_go/.style args={#1}{
code={ code={
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1); \iftoggle{LeftHandTraffic}{
\draw[loosely dashdotted] (0,-1) -- ( 0,0) -- ++(8,0) -- ++(0,-1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (4,-0.5) rectangle ++(2,-2); % signal screen \draw[line width=4pt] (0,0) -- ++(0,1.5) -- ++(4, 0); % signal pole
\draw[fill=#1] (5,-1.5) circle (0.5); % signal aspect \draw[line width=4pt,fill=base1!50] (4,0.5) rectangle ++(2,2); % signal screen
\draw[double] (4.5,-1.5) -- ++(1.0,0); % signal aspect \draw[fill=#1] (5,1.5) circle (0.5); % signal aspect
\node[right] at (0.2,-1) { \draw[double] (4.5,1.5) -- ++(1.0,0); % signal aspect
\IfLanguage{english}{\Large block signal} \node[right] at (0.2,1) {
\IfLanguage{ngerman}{\Large Blocksignal} \IfLanguage{english}{\Large block signal}
}; % label \IfLanguage{ngerman}{\Large Blocksignal}
}; % label
}{
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (4,-0.5) rectangle ++(2,-2); % signal screen
\draw[fill=#1] (5,-1.5) circle (0.5); % signal aspect
\draw[double] (4.5,-1.5) -- ++(1.0,0); % signal aspect
\node[right] at (0.2,-1) {
\IfLanguage{english}{\Large block signal}
\IfLanguage{ngerman}{\Large Blocksignal}
}; % label
}
} }
}, },
pics/block_signal_go/.default=signalgreen, pics/block_signal_go/.default=signalgreen,
@ -51,16 +77,29 @@
\tikzset{ \tikzset{
pics/distant_signal_stop/.style args={#1}{ pics/distant_signal_stop/.style args={#1}{
code={ code={
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1); \iftoggle{LeftHandTraffic}{
\draw[loosely dashdotted] (0,-1) -- ( 0,0) -- ++(8,0) -- ++(0,-1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole \draw[line width=4pt] (0,0) -- ++(0,1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (2.1,-1.5) -- ++(2,-1) -- ++(0,2) -- cycle; % signal screen \draw[line width=4pt,fill=base1!50] (2.1,1.5) -- ++(2,-1) -- ++(0,2) -- cycle; % signal screen
\draw[fill=#1] (3.5,-1.5) circle (0.5); % signal aspect \draw[fill=#1] (3.5,1.5) circle (0.5); % signal aspect
\draw[double] (3.14,-1.14) -- ++(0.72,-0.72); % signal aspect \draw[double] (3.14,1.14) -- ++(0.72,0.72); % signal aspect
\node[right] at (0.2,-1) { \node[right] at (0.2,1) {
\IfLanguage{english}{\Large distant signal} \IfLanguage{english}{\Large distant signal}
\IfLanguage{ngerman}{\Large Vorsignal} \IfLanguage{ngerman}{\Large Vorsignal}
}; % label }; % label
}{
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (2.1,-1.5) -- ++(2,-1) -- ++(0,2) -- cycle; % signal screen
\draw[fill=#1] (3.5,-1.5) circle (0.5); % signal aspect
\draw[double] (3.14,-1.14) -- ++(0.72,-0.72); % signal aspect
\node[right] at (0.2,-1) {
\IfLanguage{english}{\Large distant signal}
\IfLanguage{ngerman}{\Large Vorsignal}
}; % label
}
} }
}, },
pics/distant_signal_stop/.default=signalyellow, pics/distant_signal_stop/.default=signalyellow,
@ -68,16 +107,29 @@
\tikzset{ \tikzset{
pics/block_signal_stop/.style args={#1}{ pics/block_signal_stop/.style args={#1}{
code={ code={
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1); \iftoggle{LeftHandTraffic}{
\draw[loosely dashdotted] (0,-1) -- ( 0,0) -- ++(8,0) -- ++(0,-1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole \draw[line width=4pt] (0,0) -- ++(0,1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (4,-0.5) rectangle ++(2,-2); % signal screen \draw[line width=4pt,fill=base1!50] (4,0.5) rectangle ++(2,2); % signal screen
\draw[fill=#1] (5,-1.5) circle (0.5); % signal aspect \draw[fill=#1] (5,1.5) circle (0.5); % signal aspect
\draw[double] (5,-1) -- ++(0,-1); % signal aspect \draw[double] (5,1) -- ++(0,1); % signal aspect
\node[right] at (0.2,-1) { \node[right] at (0.2,1) {
\IfLanguage{english}{\Large block signal} \IfLanguage{english}{\Large block signal}
\IfLanguage{ngerman}{\Large Blocksignal} \IfLanguage{ngerman}{\Large Blocksignal}
}; % label }; % label
}{
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (4,-0.5) rectangle ++(2,-2); % signal screen
\draw[fill=#1] (5,-1.5) circle (0.5); % signal aspect
\draw[double] (5,-1) -- ++(0,-1); % signal aspect
\node[right] at (0.2,-1) {
\IfLanguage{english}{\Large block signal}
\IfLanguage{ngerman}{\Large Blocksignal}
}; % label
}
} }
}, },
pics/block_signal_stop/.default=signalred, pics/block_signal_stop/.default=signalred,
@ -85,6 +137,7 @@
\begin{document} \begin{document}
\selectlanguage{english} % currently supported: english, ngerman \selectlanguage{english} % currently supported: english, ngerman
\settoggle{LeftHandTraffic}{true}
\tikzset{every path/.style={ultra thick}} \tikzset{every path/.style={ultra thick}}
\begin{frame} \begin{frame}
\vfill \vfill

Binary file not shown.

View File

@ -17,16 +17,29 @@
\tikzset{ \tikzset{
pics/route_signal_stop/.style args={#1}{ pics/route_signal_stop/.style args={#1}{
code={ code={
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1); \iftoggle{LeftHandTraffic}{
\draw[loosely dashdotted] (0,-1) -- ( 0,0) -- ++(8,0) -- ++(0,-1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (5,-1.5) circle (1); % signal screen \draw[line width=4pt] (0,0) -- ++(0,1.5) -- ++(4, 0); % signal pole
\draw[fill=#1] (5,-1.5) circle (0.5); % signal aspect \draw[line width=4pt,fill=base1!50] (5,1.5) circle (1); % signal screen
\draw[double] (5,-1) -- ++(0,-1); % signal aspect \draw[fill=#1] (5,1.5) circle (0.5); % signal aspect
\node[right] at (0.2,-1) { \draw[double] (5,1) -- ++(0,1); % signal aspect
\IfLanguage{english}{\Large route signal} \node[right] at (0.2,1) {
\IfLanguage{ngerman}{\Large Fahrstraßensignal} \IfLanguage{english}{\Large route signal}
}; % label \IfLanguage{ngerman}{\Large Fahrstraßensignal}
}; % label
}{
\draw[loosely dashdotted] (0,1) -- ( 0,0) -- ++(8,0) -- ++(0,1);
\draw[line width=4pt] (0,0) -- ++(0,-1.5) -- ++(4, 0); % signal pole
\draw[line width=4pt,fill=base1!50] (5,-1.5) circle (1); % signal screen
\draw[fill=#1] (5,-1.5) circle (0.5); % signal aspect
\draw[double] (5,-1) -- ++(0,-1); % signal aspect
\node[right] at (0.2,-1) {
\IfLanguage{english}{\Large route signal}
\IfLanguage{ngerman}{\Large Fahrstraßensignal}
}; % label
}
} }
}, },
pics/route_signal_stop/.default=signalred, pics/route_signal_stop/.default=signalred,
@ -34,6 +47,7 @@
\begin{document} \begin{document}
\selectlanguage{english} % currently supported: english, ngerman \selectlanguage{english} % currently supported: english, ngerman
\settoggle{LeftHandTraffic}{true}
\tikzset{every path/.style={ultra thick}} \tikzset{every path/.style={ultra thick}}
\begin{frame} \begin{frame}
\vfill \vfill

View File

@ -31,3 +31,5 @@
\usepackage{tikz,adjustbox} \usepackage{tikz,adjustbox}
\usepackage{etoolbox}
\newtoggle{LeftHandTraffic}