| 1498 | void TileMap::onMapLoaded() {} |
| 1499 | |
| 1500 | GameObject* TileMap::IsTypeInTilePos( const Uint32& Type, const Vector2i& TilePos ) { |
| 1501 | for ( Uint32 i = 0; i < mLayerCount; i++ ) { |
| 1502 | if ( mLayers[i]->getType() == MAP_LAYER_TILED ) { |
| 1503 | TileMapLayer* tLayer = reinterpret_cast<TileMapLayer*>( mLayers[i] ); |
| 1504 | GameObject* tObj = NULL; |
| 1505 | |
| 1506 | if ( ( tObj = tLayer->getGameObject( TilePos ) ) ) { |
| 1507 | if ( tObj->isType( Type ) ) { |
| 1508 | return tObj; |
| 1509 | } |
| 1510 | } |
| 1511 | } |
| 1512 | } |
| 1513 | |
| 1514 | return NULL; |
| 1515 | } |
| 1516 | |
| 1517 | const Uint8& TileMap::getBackAlpha() const { |
| 1518 | return mBackAlpha; |
nothing calls this directly
no test coverage detected