SectorTagIterator
Show declaration
class SectorTagIterator : Object clearScope;
Iterates over sector indices with a specified tag.
Class Methods
-
deprecated("3.8") static SectorTagIterator Create(int tag, Line defLine = null)
-
Legacy — Do not use Use
LevelLocals.CreateSectorTagIterator
instead.Creates a new iterator over sectors with the tag
tag
, starting at the back-sector ofdefLine
, if it's notnull
andtag
is 0.
Overview of class methods
Instance Methods
-
int Next()
-
Returns the index of the current sector and advances the iterator. Returns
-1
when the list is exhausted.
-
int NextCompat(bool compat, int secnum)
-
If
compat
isfalse
, acts exactly asNext
. Otherwise, returns the index of the current sector and advances the iterator in a manner compatible with Doom's stair builders.