Applied docspak188.

This commit is contained in:
blitz-research
2014-12-08 12:43:20 +13:00
parent ff8bad7a2d
commit bb0f822db3
649 changed files with 33093 additions and 23947 deletions
+50 -14
View File
@@ -1,15 +1,51 @@
<html><head><title>Command: Delete </title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' href='../css/commands.css' type='text/css'></head><body><span class='Command'>&nbsp;&nbsp;Delete custom_type_name&nbsp;&nbsp;</span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Delete an object from a custom TYPE collection.</td></tr></table><span class='header'><br>Parameter Description:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>custom_type_name = the custom name of an existing object</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>If you haven't read up on the <a href='TYPE.htm'>TYPE</a>
command, you might want to do so before continuing.</p>
<p>Use the Delete command to remove an object from the Type collection. Use the
commands FIRST, LAST, BEFORE, and NEXT to move the object pointer to the object
you want to delete, then issue the Delete command with the custom Type name.</p>
<p>This is often used in a FOR ... EACH loop when a collision happens and you
wish to remove the object (an alien ship object for example) from the collection.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>; Move them all over 1 (like the description example from TYPE command)<br>
; If the chair isn't on the screen anymore, delete that chair object from the<br>
; collection.</p>
<p>For room.chair = Each chair<br>
room\x = room\x + 1<br>
if room\x > 640 then<br>
Delete room<br>
Next<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
<html>
<head>
<title>Blitz3D Docs</title>
<link rel=stylesheet href=../css/commands.css type=text/css>
</head>
<body>
<h1>Delete custom_type_name</h1>
<h1>Parameters</h1>
<table>
<tr>
<td>
custom_type_name = the custom name of an existing object
</td>
</tr>
</table>
<h1>Description</h1>
<table>
<tr>
<td>
If you haven't read up on the TYPE command, you might want to do so before continuing.
<br />
<br />
Use the Delete command to remove an object from the Type collection. Use the commands FIRST, LAST, BEFORE, and NEXT to move the object pointer to the object you want to delete, then issue the Delete command with the custom Type name. If you wish to delete all objects of a certain type, you can use DELETE EACH <TYPE>.
<br />
<br />
This is often used in a FOR ... EACH loop when a collision happens and you wish to remove the object (an alien ship object for example) from the collection.
<br>
<br>
See also: <a class=small href=Type.htm>Type</a>, <a class=small href=New.htm>New</a>, <a class=small href=Before.htm>Before</a>, <a class=small href=After.htm>After</a>, <a class=small href=First.htm>First</a>, <a class=small href=Last.htm>Last</a>, <a class=small href=Each.htm>Each</a>, <a class=small href=Insert.htm>Insert</a>.
</td>
</tr>
</table>
<h1><a href=../2d_examples/Delete.bb>Example</a></h1>
<table>
<tr>
<td>
; Move them all over 1 (like the description example from TYPE command)
<br />
; If the chair isn't on the screen anymore, delete that chair object from the
<br />
; collection.
<br />
<br />
For room.chair = Each chair
<br />
room\x = room\x + 1