(pos: Pos)
| 93 | } |
| 94 | |
| 95 | public addMiniShark(pos: Pos): MiniShark{ |
| 96 | var miniShark: MiniShark = new MiniShark(this, pos); |
| 97 | miniShark.setHealthBar(new QuestEntityHealthBar(miniShark, new Pos(19, 1))); |
| 98 | if(this.addEntity(miniShark)) // If we manage to add the entity |
| 99 | return miniShark; // We return it |
| 100 | return null; // Else, we return null |
| 101 | } |
| 102 | |
| 103 | public addSeahorse(pos: Pos, intendedXPosition: number): Seahorse{ |
| 104 | var seahorse: Seahorse = new Seahorse(this, pos, intendedXPosition); |
no test coverage detected