Manual:DIL Manual/zone head()
Jump to navigation
Jump to search
zone_head()
Function (zoneptr). Another name for zhead(): the first zone in the game.
zone_head()
Exactly the same as zhead(): vmc compiles both to the same call. It returns the first zone in alphabetical order of zone name; each zone's next is the one after it, and null after the last.
Returns
Zoneptr: the first zone.
Notes
- The public zones use
zhead(); see that page for the details.
Example
dilbegin integer zone_count();
var
z : zoneptr;
n : integer;
code
{
z := zone_head();
while (z)
{
n := n + 1;
z := z.next;
}
return (n);
}
dilend
Counts the zones in the game.