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

Method constructor

code/main/QuestEntity.ts:88–106  ·  view source on GitHub ↗
(quest: Quest,
                globalPosition: Pos,
                naming: Naming = new Naming("???", "???"),
                renderArea: RenderArea = null,
                renderAreaPosition: Pos = new Pos(0, 0),
                cbc: CollisionBoxCollection = null,
                questEntityMovement: QuestEntityMovement = null,
                questEntityAnimation: QuestEntityAnimation = null
               )

Source from the content-addressed store, hash-verified

86
87 // Constructor
88 constructor(quest: Quest,
89 globalPosition: Pos,
90 naming: Naming = new Naming("???", "???"),
91 renderArea: RenderArea = null,
92 renderAreaPosition: Pos = new Pos(0, 0),
93 cbc: CollisionBoxCollection = null,
94 questEntityMovement: QuestEntityMovement = null,
95 questEntityAnimation: QuestEntityAnimation = null
96 ){
97 // Apply parameters
98 this.quest = quest;
99 this.globalPosition = globalPosition;
100 this.naming = naming;
101 this.setRenderArea(renderArea);
102 this.renderAreaPosition = renderAreaPosition;
103 this.setCbc(cbc);
104 this.setQuestEntityMovement(questEntityMovement);
105 this.setQuestEntityAnimation(questEntityAnimation);
106 }
107
108 // Public methods
109 public addQuestEntitySpellCaster(questEntitySpellCaster: QuestEntitySpellCaster): void{

Callers

nothing calls this directly

Calls 4

setRenderAreaMethod · 0.95
setCbcMethod · 0.95

Tested by

no test coverage detected