com.robrohan.ruin.doom
Class Node

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

public class Node
extends BspElement
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Node(float x, float z, float xa, float za, int rightNodeNum, int leftNodeNum, NodeContainerBox leftBox, NodeContainerBox rightBox)
          creates a new node
 
Method Summary
 void compile(DoomLevel level)
           
 Sector getSectorAt(float xPos, float zPos)
          gets a Sector from an x,z pair
 Ssector getSsectorAt(float xPos, float zPos)
          gets a Sub Sector from an x,z pair
 boolean isRight(float xPos, float zPos)
           
 void sortSsectors(java.util.List list, Pos pos, int xScreenSize, float xFovCalc)
          Sort sub sector importance based on position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node(float x,
            float z,
            float xa,
            float za,
            int rightNodeNum,
            int leftNodeNum,
            NodeContainerBox leftBox,
            NodeContainerBox rightBox)
creates a new node

Method Detail

compile

public void compile(DoomLevel level)

isRight

public boolean isRight(float xPos,
                       float zPos)

sortSsectors

public void sortSsectors(java.util.List list,
                         Pos pos,
                         int xScreenSize,
                         float xFovCalc)
Sort sub sector importance based on position. Pass in a list object to get the Subsector list


getSectorAt

public Sector getSectorAt(float xPos,
                          float zPos)
gets a Sector from an x,z pair


getSsectorAt

public Ssector getSsectorAt(float xPos,
                            float zPos)
gets a Sub Sector from an x,z pair