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

Method thePlayerWon

code/main/Bridge.ts:105–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 private thePlayerWon(): boolean{
106 // If the player is at the right of the desert, we return true
107 if(this.getGame().getPlayer().getGlobalPosition().x >= 138)
108 return true;
109
110 // Else we return false
111 return false;
112 }
113}

Callers 1

updateMethod · 0.95

Calls 3

getGlobalPositionMethod · 0.80
getPlayerMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected