(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
)
| 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{ |
nothing calls this directly
no test coverage detected