File: RPGEdCharacter.tex

package info (click to toggle)
roleplaying 2.0-8
  • links: PTS
  • area: main
  • in suites: woody
  • size: 16,620 kB
  • ctags: 1,039
  • sloc: tcl: 7,155; cpp: 2,709; ansic: 2,227; makefile: 559; sh: 330; csh: 3
file content (121 lines) | stat: -rw-r--r-- 3,784 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
% Begin of input file ../../Scripts/RPGEdCharacter.tcl
\chapter{RPGEdCharacter.tcl -- The characters in the game.}
\label{RPGEdCharacter.tcl}
\typeout{Generated from $Id: RPGEdCharacter.tcl,v 1.8 2000/02/11 00:30:25 heller Rel $}
This file deals with editing data objects that describe both player and
non-player characters -- intelligent persons that are involved in the
adventure.



\noindent\rule{\textwidth}{0.4pt}
\section[proc RPGEdCharacter]{proc RPGEdCharacter \emph{\{filename \{\}\}}}

This procedure creates or edits a character object file.
\begin{description}
\item [in]  filename -- the file to load a character object from.
\index{RPGEdCharacter!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc UpdateCharacterPicture]{proc UpdateCharacterPicture \emph{tl obj img}}

This procedure re-draws the character's picture, which is a GIF file.
\begin{description}
\item [in]  tl -- the toplevel.
\item [in]  obj -- the data object.
\item [in]  img -- the new image file name.
\index{UpdateCharacterPicture!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc CheckWriteDirtyRecordCharacter]{proc CheckWriteDirtyRecordCharacter \emph{tl}}

This procedure is called when the toplevel is closed and the toplevel's dirty
flag is set.  The user is asked if the data should be saved or not.
\begin{description}
\item [in]  tl - the toplevel.
\index{CheckWriteDirtyRecordCharacter!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc RollChar]{proc RollChar \emph{tl}}

This procedure ``rolls'' a new character.  This procedure uses pseudo dice
rolls to generate new character attribute statistics and the initial hit
points.
\begin{description}
\item [in]  tl -- the toplevel.
\index{RollChar!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc ChRollExceptionalStrength]{proc ChRollExceptionalStrength \emph{tl}}

This procedure is for rolling the exceptional strength (fighters only)
character attribute.
\begin{description}
\item [in]  tl -- the toplevel.
\index{ChRollExceptionalStrength!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc AdvanceChLevel]{proc AdvanceChLevel \emph{tl}}

This procedure advances a character level.  It is just a hook to the data
object's AdvanceLevel method.  The character's level is advanced and the
character gains another die's worth of hit points.
\begin{description}
\item [in]  tl -- the toplevel.
\index{AdvanceChLevel!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc SaveAsCharacter]{proc SaveAsCharacter \emph{tl}}

Procedure hooked to character ``SaveAs...'' menu item.
\begin{description}
\item [in]  tl -- the toplevel.
\index{SaveAsCharacter!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc SaveCharacter]{proc SaveCharacter \emph{tl \{forceNew 0\}}}

Procedure hooked to character ``Save'' menu item.
\begin{description}
\item [in]  tl -- the toplevel.
\item [in]  forceNew -- flag that indicates if we should force a new filename or
not.
\index{SaveCharacter!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc LoadCharacter]{proc LoadCharacter \emph{tl}}

Procedure to load a character into the GUI from a disk file.
Bound to the ``Load'' button.
\begin{description}
\item [in]  tl -- the toplevel.
\index{LoadCharacter!procedure}
\end{description}


\noindent\rule{\textwidth}{0.4pt}
\section[proc OpenCharacter]{proc OpenCharacter \emph{tl}}

This procedure opens a character object file in a new GUI toplevel.
Bound to the ``Open...'' menu item.
\begin{description}
\item [in]  tl -- the toplevel.
\index{OpenCharacter!procedure}
\end{description}
% End of input file ../../Scripts/RPGEdCharacter.tcl