コード例 #1
0
 //Check Pixel
 public bool isAirPixel(generic.util.math.PixelPos pos)
 {
     if (getPixelState(pos).getPixel() == generic.init.Pixels.AIR)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #2
0
 public virtual bool generate(World world, Random rand, generic.util.math.PixelPos pos)
 {
     return(false);
 }
コード例 #3
0
 //Temporary for now, will implement a way to manipulate the pond size so as to make lakes larger.
 public new bool generate(World world, Random rand, generic.util.math.PixelPos pos)
 {
     return(base.generate(world, rand, pos));
 }
コード例 #4
0
 public void setPixelState(generic.util.math.PixelPos pos, float pixel, float state)
 {
     worldFile[pos.getX(), pos.getZ()] = new pixelData(pos.getY(), (int)pixel, (int)state);
 }
コード例 #5
0
 public void setPixelState(generic.util.math.PixelPos pos, generic.pixel.Pixel pixel)
 {
     worldFile[pos.getX(), pos.getZ()] = new pixelData(pos.getY(), pixel.getPixelID(), pixel.getState());
 }
コード例 #6
0
 public void setPixelState(generic.util.math.PixelPos pos, float pixel)
 {
     setPixelState(pos, pixel, 0);
 }
コード例 #7
0
 //Get / Set Pixel
 public generic.pixel.Pixel getPixelState(generic.util.math.PixelPos pos)
 {
     return(new pixel.Pixel(worldFile[pos.getX(), pos.getZ()].getPixel, worldFile[pos.getX(), pos.getZ()].getState));
 }
コード例 #8
0
 public int getHeight(generic.util.math.PixelPos pos)
 {
     return(worldFile[pos.getX(), pos.getZ()].getHeight);
 }