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

Method updateQuestEntityMovementOffset

code/main/Wolf.ts:126–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }
125
126 private updateQuestEntityMovementOffset(): void{
127 // If we're standing
128 if(this.isStanding){
129 // No movement
130 this.getQuestEntityMovement().setOffset(new Pos(0, 0));
131 }
132 // Else, we're running
133 else{
134 // Set the movement depending on our orientation
135 this.getQuestEntityMovement().setOffset(new Pos(this.getRunningSpeed(), 0));
136 }
137 }
138}

Callers 2

setIsLookingLeftMethod · 0.95
setIsStandingMethod · 0.95

Calls 3

getRunningSpeedMethod · 0.95
setOffsetMethod · 0.80

Tested by

no test coverage detected