MCPcopy Create free account
hub / github.com/dabing1022/Blog / canSee

Method canSee

Processing/game2dai/entities/MovingEntity.java:522–551  ·  view source on GitHub ↗

This method determines whether this entity can see a particular location in the world. It first checks to see if it is within this entity's view distance and field of view (FOV). If it is then it checks to see if there are any walls or obstacles between them. @param world the world responsible

(World world, double x0, double y0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 8

lengthMethod · 0.95
divMethod · 0.95
cosMethod · 0.95
dotMethod · 0.80
getWallsMethod · 0.80
isEmptyMethod · 0.80
getObstaclesMethod · 0.80
isEitherSideMethod · 0.45

Tested by

no test coverage detected