MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / clone

Method clone

Player.js:269–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 }
268
269 clone() {
270 let clone = new Player();
271 clone.brain = this.brain.clone();
272 clone.playerStateAtStartOfBestLevel = this.playerStateAtStartOfBestLevel.clone();
273 clone.brain.parentReachedBestLevelAtActionNo = this.bestLevelReachedOnActionNo;
274 return clone;
275 }
276
277
278 loadStartOfBestLevelPlayerState() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected