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

Method setTargetTypeTargetPosition

code/main/Fireball.ts:69–73  ·  view source on GitHub ↗
(pos: Pos, speed: Pos = new Pos(1, 1))

Source from the content-addressed store, hash-verified

67 }
68
69 public setTargetTypeTargetPosition(pos: Pos, speed: Pos = new Pos(1, 1)): void{
70 this.targetType = FireballTargetType.TARGET_POSITION;
71 this.targetPosition = pos;
72 this.speed = speed;
73 }
74
75 public setTargetTypeTargetStickOnEntity(entity: QuestEntity, specialTargetPosition: Pos = new Pos(0, 0)): void{
76 this.targetType = FireballTargetType.TARGET_STICK_ON_ENTITY;

Callers 2

castSpellMethod · 0.80
addMagicBallMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected