(questEntity: QuestEntity, pos: Pos = new Pos(0, 0))
| 169 | } |
| 170 | |
| 171 | public collidesWith(questEntity: QuestEntity, pos: Pos = new Pos(0, 0)): boolean{ |
| 172 | // If we both have a collision box collection, we return the result of the collision test |
| 173 | if(this.cbc != null && questEntity.getCbc() != null) |
| 174 | return this.cbc.collidesWith(questEntity.getCbc(), pos); |
| 175 | |
| 176 | // Else, we return false, there can't be any collision |
| 177 | return false; |
| 178 | } |
| 179 | |
| 180 | public draw(renderArea: RenderArea): void{ |
| 181 | if(this.renderArea != null){ |
no test coverage detected