zombie.iso
Class LosUtil

java.lang.Object
  extended by zombie.iso.LosUtil

public class LosUtil
extends java.lang.Object

Author:
LEMMY

Nested Class Summary
static class LosUtil.TestResults
           
 
Field Summary
static boolean[] cachecleared
           
static byte[][][][] cachedresults
           
 
Constructor Summary
LosUtil()
           
 
Method Summary
static int DistToWindow(IsoCell cell, int x1, int y1, int z1, int x0, int y0, int z0)
          Compute and return the list of RLPoints in line-of-sight to the given region.
static LosUtil.TestResults lineClear(IsoCell cell, int x0, int y0, int z0, int x1, int y1, int z1, boolean bIgnoreDoors)
           
static LosUtil.TestResults lineClear(IsoCell cell, int x0, int y0, int z0, int x1, int y1, int z1, boolean bIgnoreDoors, int RangeTillWindows)
           
static LosUtil.TestResults lineClearCached(IsoCell cell, int x1, int y1, int z1, int x0, int y0, int z0, boolean bIgnoreDoors)
           
static LosUtil.TestResults lineClearCached(IsoCell cell, int x1, int y1, int z1, int x0, int y0, int z0, boolean bIgnoreDoors, int RangeTillWindows)
           
static boolean lineClearCollide(int x1, int y1, int z1, int x0, int y0, int z0, boolean bIgnoreDoors)
           
static boolean lineClearCollide(IsoMovingObject chr, IsoCell cell, int x1, int y1, int z1, int x0, int y0, int z0)
           
static int lineClearCollideCount(IsoGameCharacter chr, IsoCell cell, int x1, int y1, int z1, int x0, int y0, int z0)
           
static int lineClearCollideCount(IsoMovingObject chr, IsoCell cell, int x1, int y1, int z1, int x0, int y0, int z0, int returnMin)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cachedresults

public static byte[][][][] cachedresults

cachecleared

public static boolean[] cachecleared
Constructor Detail

LosUtil

public LosUtil()
Method Detail

DistToWindow

public static int DistToWindow(IsoCell cell,
                               int x1,
                               int y1,
                               int z1,
                               int x0,
                               int y0,
                               int z0)
Compute and return the list of RLPoints in line-of-sight to the given region. In general, this method should be very fast.


lineClear

public static LosUtil.TestResults lineClear(IsoCell cell,
                                            int x0,
                                            int y0,
                                            int z0,
                                            int x1,
                                            int y1,
                                            int z1,
                                            boolean bIgnoreDoors)

lineClearCached

public static LosUtil.TestResults lineClearCached(IsoCell cell,
                                                  int x1,
                                                  int y1,
                                                  int z1,
                                                  int x0,
                                                  int y0,
                                                  int z0,
                                                  boolean bIgnoreDoors,
                                                  int RangeTillWindows)

lineClear

public static LosUtil.TestResults lineClear(IsoCell cell,
                                            int x0,
                                            int y0,
                                            int z0,
                                            int x1,
                                            int y1,
                                            int z1,
                                            boolean bIgnoreDoors,
                                            int RangeTillWindows)

lineClearCollide

public static boolean lineClearCollide(int x1,
                                       int y1,
                                       int z1,
                                       int x0,
                                       int y0,
                                       int z0,
                                       boolean bIgnoreDoors)

lineClearCollideCount

public static int lineClearCollideCount(IsoGameCharacter chr,
                                        IsoCell cell,
                                        int x1,
                                        int y1,
                                        int z1,
                                        int x0,
                                        int y0,
                                        int z0)

lineClearCollideCount

public static int lineClearCollideCount(IsoMovingObject chr,
                                        IsoCell cell,
                                        int x1,
                                        int y1,
                                        int z1,
                                        int x0,
                                        int y0,
                                        int z0,
                                        int returnMin)

lineClearCollide

public static boolean lineClearCollide(IsoMovingObject chr,
                                       IsoCell cell,
                                       int x1,
                                       int y1,
                                       int z1,
                                       int x0,
                                       int y0,
                                       int z0)

lineClearCached

public static LosUtil.TestResults lineClearCached(IsoCell cell,
                                                  int x1,
                                                  int y1,
                                                  int z1,
                                                  int x0,
                                                  int y0,
                                                  int z0,
                                                  boolean bIgnoreDoors)