(pos: Pos = new Pos(0, 0))
| 57 | } |
| 58 | |
| 59 | public checkCollision(pos: Pos = new Pos(0, 0)): boolean{ |
| 60 | // If our mother class detects a collision, we return true |
| 61 | if(super.checkCollision(pos) == true) |
| 62 | return true; |
| 63 | |
| 64 | // We also try collisions with the special player collision boxes |
| 65 | if(this.collidesWith(this.getQuest().getPlayerCollisionBoxes(), pos)) |
| 66 | return true; |
| 67 | |
| 68 | return false; |
| 69 | } |
| 70 | |
| 71 | public getCharacterType(): PlayerCharacterType{ |
| 72 | return this.characterType; |
no test coverage detected