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.CreateSectorTagIteratorinstead.Creates a new iterator over sectors with the tag
tag, starting at the back-sector ofdefLine, if it's notnullandtagis 0.
Overview of class methods
Instance Methods
-
int Next()
-
Returns the index of the current sector and advances the iterator. Returns
-1when the list is exhausted.
-
int NextCompat(bool compat, int secnum)
-
If
compatisfalse, acts exactly asNext. Otherwise, returns the index of the current sector and advances the iterator in a manner compatible with Doom's stair builders.