FalloutStrategy/FalloutEngine/FoWManager.cpp
bool FoWManager::CheckTileVisibility(iPoint mapPos)const
{
	bool ret = false;
	//First check if the entity is inside the map
	//& get the tile fog information,its state, to check if is visible. 
	//Note that the function that you need does both things for you, it is recommended to check and understand what the needed function does

	FoWDataStruct* tileState = GetFoWTileState(mapPos);

	if (tileState != nullptr)
	{
		//Entity will only be visible in visible areas (no fog nor shroud)
		//Think about what happens with the smooth borders, are the considered visble or fogged?
		//Also, do you need to check both the fog and shroud states?
		if (tileState->tileFogBits != fow_ALL)
			ret = true;
	}

	return ret;
}
// Complete the following function: it shoud return the tile visibility (true if visible, otherwise false)
//This function will be used to check if we need to draw a certain entity
Complete the following function: it shoud return the tile visibility (true if visible, otherwise false)
This function will be used to check if we need to draw a certain entity
Complete the following function : it shoud return the tile visibility ( true if visible otherwise false ) This function will be used to check if we need to draw a certain entity
bool FoWManager::CheckTileVisibility(iPoint mapPos)const
{
	bool ret = false;
	FoWDataStruct* tileState = GetFoWTileState(mapPos);
	if (tileState != nullptr)
	{
		if (tileState->tileFogBits != fow_ALL)
			ret = true;
	}
	return ret;
}
bool FoWManager :: CheckTileVisibility ( iPoint mapPos ) const { bool ret = false ; FoWDataStruct * tileState = GetFoWTileState ( mapPos ) ; if ( tileState != nullptr ) { if ( tileState -> tileFogBits != fow_ALL ) ret = true ; } return ret ; }
Complete the following function: it shoud return the tile visibility (true if visible, otherwise false)
This function will be used to check if we need to draw a certain entity
Complete the following function : it shoud return the tile visibility ( true if visible otherwise false ) This function will be used to check if we need to draw a certain entity
//First check if the entity is inside the map //& get the tile fog information,its state, to check if is visible.  //Note that the function that you need does both things for you, it is recommended to check and understand what the needed function does //Entity will only be visible in visible areas (no fog nor shroud) //Think about what happens with the smooth borders, are the considered visble or fogged? //Also, do you need to check both the fog and shroud states?