MCPcopy Create free account
hub / github.com/catabriga/graphwar / collidePoint

Method collidePoint

src/Graphwar/Obstacle.java:97–109  ·  view source on GitHub ↗
(int x, int y)

Source from the content-addressed store, hash-verified

95 }
96
97 public boolean collidePoint(int x, int y)
98 {
99 if(x<0 || x>=Constants.PLANE_LENGTH)
100 return true;
101
102 if(y<0 || y>=Constants.PLANE_HEIGHT)
103 return true;
104
105 if(terrain.getRGB(x, y) != -1)
106 return true;
107
108 return false;
109 }
110
111 public void setExplosion(int x, int y, int radius)
112 {

Callers 3

processFunctionRangeMethod · 0.80
processRK4RangeMethod · 0.80
processRK42RangeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected