File: entrys.html

package info (click to toggle)
bzflag 2.0.8.20060605
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 29,168 kB
  • ctags: 33,169
  • sloc: cpp: 132,719; ansic: 14,122; sh: 13,441; makefile: 2,330; php: 428; python: 334; perl: 287; objc: 243; xml: 180
file content (207 lines) | stat: -rw-r--r-- 7,464 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>BZFS API Documentation: Entry Points</title>
  <meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">
  <link rel="stylesheet" type="text/css"
 href="http://www.bzflag.org/general.css">
  <link href="http://www.bzflag.or/favicon.ico" rel="shortcut icon">
  <style type="text/css">
<!--
.style1 {
	font-size: 16px;
	font-weight: bold;
}
.style2 {font-size: 36px}
.style4 {font-size: 18px; font-weight: bold; }
.style5 {color: #999999}
-->
  </style>
</head>
<body>
<table bgcolor="#dddddd" border="0" cellpadding="0" cellspacing="1"
 width="100%">
  <tbody>
    <tr height="50" valign="top">
      <td colspan="2">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tbody>
          <tr>
            <td align="right" bgcolor="#013571"><img
 src="http://www.bzflag.org/images/logo2-1.jpg" alt="logo"></td>
            <td align="left" bgcolor="#818181"><img
 src="http://www.bzflag.org/images/logo2-2.jpg" alt=""></td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
    <tr valign="top">
      <td>
      <table width="100%">
        <tbody>
          <tr>
            <td align="center" valign="top" width="14%">
            <table align="center" bgcolor="#ffffff" border="1"
 bordercolor="#000000" width="179">
              <tbody>
                <tr>
                  <td align="center"><span class="style4">Contents</span></td>
                </tr>
                <tr>
                  <td align="center"> <strong>Overview</strong> </td>
                </tr>
                <tr>
                  <td align="center"> <a href="index.html">Introduction
                  </a> </td>
                </tr>
                <tr>
                  <td align="center"> <a href="general.html">General
Info </a> </td>
                </tr>
                <tr>
                  <td align="center"> <strong>Reference</strong> </td>
                </tr>
                <tr>
                  <td align="center"> <a href="entrys.html">Entries</a>
                  </td>
                </tr>
                <tr>
                </tr>
                <tr>
                  <td align="center"> <a href="types.html">Types</a> </td>
                </tr>
                <tr>
                </tr>
                <tr>
                  <td align="center"> <a href="events.html">Events</a>
                  </td>
                </tr>
                <tr>
                </tr>
                <tr>
                  <td align="center"> <a href="functions.html">Functions</a> </td>
                </tr>
                <tr>
                </tr>
                <tr>
                  <td align="center"> <strong>Examples</strong> </td>
                </tr>
                <tr>
                  <td align="center"> shockwaveDeath </td>
                </tr>
                <tr>
                </tr>
                <tr>
                  <td align="center"> scoreReset </td>
                </tr>
                <tr>
                </tr>
              </tbody>
            </table>
            </td>
            <td width="86%">
            <table align="left" bgcolor="#ffffff" border="0"
 cellpadding="2" cellspacing="2" width="100%">
              <tbody>
                <tr>
                  <td valign="top">
                  <center><b>BZFS API Documentation</b></center>
                  </td>
                </tr>
                <tr>
                  <td align="left">
                  <p class="style1 style2" align="center">Entry
Points</p>
                  <p>There are 3 primary entry points into the plugin.
These are the 3 core functions that the plugin must implement. The
first 2 are the main functions used by the plugin, these are defined as:
</p>
                  <p class="style3">BZF_PLUGIN_CALL int bz_Load (
const char* command ); </p>
                  <p class="style3">BZF_PLUGIN_CALL int bz_Unload (
void );</p>
                  <p>bz_Load is called when the plugin is first
initialized. This is when the plugin should register any event
handlers that it wishes to use and initialize any "one time" startup
data.</p>
                  <p>bz_Unload is called when a plugin is no longer
needed and will be shut down. This is most commonly called when bzfs is
quiting. A plugin should do any clean up in this callback.</p>
                  <p>The last function is defined as: </p>
                  <p class="style3">BZF_PLUGIN_CALL int bz_GetVersion (
void );</p>
                  <p>bz_GetVersion is called buy bzfs before any other
functions are called. The function should return the version of the API
that it is written for. This is to prevent bzfs from attempting to load
incompatible plugins.</p>
                  <p>There is a C++ MACRO defined to ease the
implementation of this function. All a plugin must do is put the macro;</p>
                  <p class="style3"> BZ_GET_PLUGIN_VERSION </p>
                  <p>somewhere in its sources, and then export the
function. This will automatically return the API version of the current
API you are using. See the sample plugins for examples. These will be
the only 3 functions called by bzfs for non-event actions. </p>
                  <p>All functions should be preceded with the
BZF_PLUGIN_CALL macro. This macro will tell your compiler to export
these functions so bzfs can call them.</p>
                  </td>
                </tr>
                <tr>
                  <td>
                  <div align="left"><a href="general.html">Previous</a></div>
                  <div align="right"><a href="types.html">Next</a></div>
                  </td>
                </tr>
              </tbody>
            </table>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
    <tr valign="bottom">
      <td cellpadding="2" bgcolor="#000000">
      <table bgcolor="#ffffff" border="0" cellpadding="2" width="100%">
        <tbody>
          <tr>
            <td align="right"> <span class="copyright">copyright
&copy; <a href="http://www.bzflag.org/wiki/CurrentMaintainer">CurrentMaintainer</a>
1993-2006&nbsp;</span> </td>
          </tr>
          <tr>
            <td>
            <table bgcolor="#ffffff" border="0" cellpadding="2"
 width="100%">
              <tbody>
                <tr>
                  <td align="center"> <a href="http://www.opengl.org/"><img
 src="http://www.bzflag.org//images/opengl.gif" alt="opengl" border="0"
 height="31" width="88"></a> <a
 href="http://sourceforge.net/project/?group_id=3248"><img
 src="http://sourceforge.net/sflogo.php?group_id=3248&amp;type=1"
 alt="sourceforge" border="0" height="31" width="88"></a> <a
 href="http://sourceforge.net/donate/index.php?group_id=3248"><img
 src="http://images.sourceforge.net/images/project-support.jpg"
 alt="Support This Project" border="0" height="32" width="88"> </a> <a
 href="http://www.linuxgames.com/"><img
 src="http://www.bzflag.org/images/linuxgames.gif" alt="linuxgames"
 border="0" height="31" width="88"></a> <a
 href="http://www.telefragged.com/"><img
 src="http://www.bzflag.org//images/telefragged.gif" alt="telefragged"
 border="0" height="31" width="88"></a> </td>
                </tr>
              </tbody>
            </table>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
</body>
</html>