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

Method thePlayerWon

code/main/Cellar.ts:107–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

updateMethod · 0.95

Calls 3

getGlobalPositionMethod · 0.80
getPlayerMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected