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

Method resizeQuest

code/main/Quest.ts:639–651  ·  view source on GitHub ↗
(width: number, height: number, forcedRealQuestSize: Pos = null)

Source from the content-addressed store, hash-verified

637 }
638
639 public resizeQuest(width: number, height: number, forcedRealQuestSize: Pos = null): void{
640 // Set the real quest drawing size
641 this.realQuestDrawingSize = new Pos(width, height);
642
643 // Set the real quest size
644 if(forcedRealQuestSize == null)
645 this.realQuestSize = new Pos(width, height);
646 else
647 this.realQuestSize = forcedRealQuestSize;
648
649 // Resize the area
650 this.renderArea.resize(this.realQuestPosition.x + width + this.sizeToAddToTheRealQuestSize.x, this.realQuestPosition.y + height + this.sizeToAddToTheRealQuestSize.y); // We add ten for the quest log !
651 }
652
653 public update(): void{}
654

Callers 15

constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls 1

resizeMethod · 0.65

Tested by

no test coverage detected