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

Method constructor

Brain.js:2–7  ·  view source on GitHub ↗
(isJump, holdTime, xDirection)

Source from the content-addressed store, hash-verified

1class AIAction {
2 constructor(isJump, holdTime, xDirection) {
3 this.isJump = isJump;
4 this.holdTime = holdTime;//number between 0 and 1
5 this.xDirection = xDirection;
6
7 }
8
9 clone() {
10 return new AIAction(this.isJump, this.holdTime, this.xDirection);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected