* Gets the amount of light the object is emitting. * @return The amount of light emitted. */
| 371 | * @return The amount of light emitted. |
| 372 | */ |
| 373 | int MapData::getLightSource() const |
| 374 | { |
| 375 | // lamp posts have 1, but they should emit more light |
| 376 | if (_lightSource == 1) |
| 377 | return 15; |
| 378 | else |
| 379 | return _lightSource - 1; |
| 380 | } |
| 381 | |
| 382 | /** |
| 383 | * Sets the amount of light the object is emitting. |
no outgoing calls
no test coverage detected