MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / thePlayerWon

Method thePlayerWon

code/main/Forest.ts:150–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 }
149
150 private thePlayerWon(): boolean{
151 // If the player is at the right of the desert, we return true
152 if(this.getGame().getPlayer().getGlobalPosition().x >= 294)
153 return true;
154
155 // Else we return false
156 return false;
157 }
158}

Callers 1

updateMethod · 0.95

Calls 3

getGlobalPositionMethod · 0.80
getPlayerMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected