(quest: Quest, pos: Pos, hp: number)
| 3 | class ObsidianBrick extends QuestEntitySpell{ |
| 4 | // Constructor |
| 5 | constructor(quest: Quest, pos: Pos, hp: number){ |
| 6 | super(quest, |
| 7 | pos, |
| 8 | new Naming("An obsidian brick", "an obsidian brick"), |
| 9 | null, |
| 10 | new Pos(0, 0), |
| 11 | new CollisionBoxCollection(new CollisionBox(this, new Pos(0, 0), new Pos(2, 1))), |
| 12 | new QuestEntityMovement() |
| 13 | ); |
| 14 | |
| 15 | // Set gravity |
| 16 | this.getQuestEntityMovement().setGravity(true); |
| 17 | |
| 18 | // Set destructible |
| 19 | this.setDestructible(true); |
| 20 | this.setMaxHp(hp); |
| 21 | this.setHp(hp); |
| 22 | |
| 23 | // Add the color |
| 24 | this.addColor(new QuestEntitySpellColor(this.getQuest(), new Pos(0, 0), new Pos(2, 1), new Color(ColorType.PLAYER_OBSIDIAN_BRICK))); |
| 25 | } |
| 26 | } |
nothing calls this directly
no test coverage detected