com.robrohan.ruin.doom
Class Ssector

java.lang.Object
  |
  +--com.robrohan.ruin.doom.BspElement
        |
        +--com.robrohan.ruin.doom.Ssector
All Implemented Interfaces:
java.io.Serializable

public class Ssector
extends BspElement
implements java.io.Serializable

SSECTOR stands for sub-sector. These divide up all the SECTORS into convex polygons. They are then referenced through the NODES resources. There will be (number of nodes + 1) ssectors. The segs in ssector 0 should be segs 0 through x, then ssector 1 contains segs x+1 through y, ssector 2 containg segs y+1 to z, etc.

See Also:
Serialized Form

Constructor Summary
Ssector(int segCount, int segStart)
           
 
Method Summary
 void addThing(Thing thing)
          add a thing to this sub sector
 void clear(int xSize, int ySize)
           
 void clearThings(Thing thing)
          remove all the things in this sub sector
 void compile(DoomLevel level)
           
 int[] getMaxY()
           
 int[] getMinY()
           
 Sector getSector()
          get the sector this subsector belong to
 Seg[] getSegs()
          get the segments in this Sub sector
 java.util.ArrayList getThings()
          gets all the things in this sub sector
 boolean synchTo(Ssector ssector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ssector

public Ssector(int segCount,
               int segStart)
Method Detail

getSegs

public Seg[] getSegs()
get the segments in this Sub sector


getMinY

public final int[] getMinY()

getMaxY

public final int[] getMaxY()

synchTo

public boolean synchTo(Ssector ssector)

clear

public void clear(int xSize,
                  int ySize)

getSector

public Sector getSector()
get the sector this subsector belong to


getThings

public java.util.ArrayList getThings()
gets all the things in this sub sector


addThing

public void addThing(Thing thing)
add a thing to this sub sector


clearThings

public void clearThings(Thing thing)
remove all the things in this sub sector


compile

public void compile(DoomLevel level)