1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-26 03:02:15 -05:00

Hopefully this is better

git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@516 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
Wizzup? 2010-02-03 23:45:23 +00:00
parent 1aee1fb8ee
commit 7fb428ffa3

View File

@ -13,8 +13,9 @@
% Most func/proc definitions still don't use this... % Most func/proc definitions still don't use this...
\def\pproc{\textbf{procedure}} \def\pproc{\textbf{procedure}}
\def\pfunc{\textbf{function}} \def\pfunc{\textbf{function}}
\newcommand{\pvtype}[1]{{\color{typeGreen}{#1}}} \newcommand{\pvtype}[1]{{\color{typeGreen}{#1}};}
\newcommand{\pvname}[1]{{\color{typeRed}{#1}}} \newcommand{\pvtypel}[1]{{\color{typeGreen}{#1}};}
\newcommand{\pvname}[1]{{\color{typeRed}{#1}}:}
\newcommand{\mname}[1]{{\color{blue}{#1}}} \newcommand{\mname}[1]{{\color{blue}{#1}}}
@ -147,8 +148,8 @@ GetMousePos returns the current position of the mouse in \textbf{x} and
\textbf{y}. \textbf{y}.
\subsection{HoldMouse} \subsection{HoldMouse}
\pproc \mname{HoldMouse}(\pvname{x, y:} \pvtype{Integer} \pvname{clickType :} \pproc \mname{HoldMouse}(\pvname{x, y} \pvtype{Integer} \pvname{clickType}
\pvtype{TClickType}) \pvtypel{TClickType})
HoldMouse holds the given mouse button (clickType) down at the specified \textbf{x}, \textbf{y} HoldMouse holds the given mouse button (clickType) down at the specified \textbf{x}, \textbf{y}
coordinate. If the mouse if not at the given \textbf{x}, \textbf{y} yet, the mouse position coordinate. If the mouse if not at the given \textbf{x}, \textbf{y} yet, the mouse position
@ -491,10 +492,10 @@ Deprecated DTM type:
\subsection{FindDTM} \subsection{FindDTM}
\textbf{function} {\color{blue}{FindDTM}}({\color{typeRed}{DTM: }}
{\color{typeGreen}{Integer}}; {\color{typeRed}{out x, y: }} \pfunc \mname{FindDTM}(\pvname{DTM: }\pvtype{Integer} \textbf{var}
{\color{typeGreen}{Integer}}; {\color{typeRed}{x1, y1, x2, y2: }}{\color{typeGreen} \pvname{x, y} \pvtype{Integer} \pvname{x1, y1, x2, y2} \pvtypel{Integer}):
{Integer}) {\color{typeGreen}{: Boolean}}; \\ \pvtype{Boolean}
FindDTM is the most basic DTM finding function. It takes a box to search in, FindDTM is the most basic DTM finding function. It takes a box to search in,
defined by x1, y1, x2, y2; and if the DTM is found, it will set \textbf{x} and defined by x1, y1, x2, y2; and if the DTM is found, it will set \textbf{x} and
@ -504,29 +505,28 @@ the first found DTM.
\subsection{FindDTMs} \subsection{FindDTMs}
\pfunc \mname{FindDTMs}(\pvname{DTM: }\pvtype{Integer}; \pvname{Points} \pfunc \mname{FindDTMs}(\pvname{DTM}\pvtype{Integer} \pvname{Points}
\pvtype{TPointArray}; \pvname{x1, y1, x2, y2: } \pvtype{Integer} \pvtype{TPointArray} \pvname{x1, y1, x2, y2} \pvtypel{Integer}):
\pvtype{Boolean}
FindDTMs is like FindDTM, but it returns an array of \textbf{x} and \textbf{y}, as the FindDTMs is like FindDTM, but it returns an array of \textbf{x} and \textbf{y}, as the
\textbf{TPointArray} type. \textbf{TPointArray} type.
\subsection{FindDTMRotated} \subsection{FindDTMRotated}
\textbf{function} {\color{blue}{FindDTMRotated}}({\color{typeRed}{DTM: }} \pfunc \mname{FindDTMRotated}(\pvname{DTM}\pvtype{Integer} \textbf{var}
{\color{typeGreen}{Integer}}; {\color{typeRed}{out x, y: }} \pvname{x, y} \pvtype{Integer} \pvname{x1, y1, x2, y2} \pvtype{Integer}
{\color{typeGreen}{Integer}}; {\color{typeRed}{x1, y1, x2, y2: }}{\color{typeGreen} \pvname{sAngle, eAngle, aStep} \pvtype{Extended} \textbf{var}
{Integer}}; {\color{typeRed}{sAngle, eAngle, aStep: }}{\color{typeGreen}{Extended}}; \pvname{aFound} \pvtypel{Extended}): \pvtype{Boolean}
{\color{typeRed}{out aFound: }}{\color{typeGreen}{Extended}}){\color{typeGreen}{: Boolean}}; \\
FindDTMRotated is behaves like FindDTM. Only, it will turn the DTM between FindDTMRotated is behaves like FindDTM. Only, it will turn the DTM between
sAngle and eAngle by aStep each time. It will also return the angle which the DTM was found sAngle and eAngle by aStep each time. It will also return the angle which the DTM was found
at. at.
\subsection{FindDTMsRotated} \subsection{FindDTMsRotated}
\textbf{function} {\color{blue}{FindDTMsRotated}}({\color{typeRed}{DTM: }} \pfunc \mname{FindDTMRotated}(\pvname{DTM}\pvtype{Integer} \textbf{var}
{\color{typeGreen}{Integer}}; {\color{typeRed}{out Points: }} \pvname{Points} \pvtype{TPointArray} \pvname{x1, y1, x2, y2} \pvtype{Integer}
{\color{typeGreen}{TPointArray}}; {\color{typeRed}{x1, y1, x2, y2: }}{\color{typeGreen} \pvname{sAngle, eAngle, aStep} \pvtype{Extended} \textbf{var}
{Integer}}; {\color{typeRed}{sAngle, eAngle, aStep: }}{\color{typeGreen}{Extended}}; \pvname{aFound} \pvtypel{T2DExtendedArray}): \pvtype{Boolean}
{\color{typeRed}{out aFound: }}{\color{typeGreen}{T2DExtendedArray}}){\color{typeGreen}{: Boolean}}; \\
FindDTMRotated is behaves like FindDTMs. Only, it will turn the DTM between FindDTMRotated is behaves like FindDTMs. Only, it will turn the DTM between
sAngle and eAngle by aStep each time. It will also return the angles which each DTM Main Point sAngle and eAngle by aStep each time. It will also return the angles which each DTM Main Point