← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/bug-1810062-territorial-calculations into lp:widelands

 


Diff comments:

> 
> === modified file 'src/logic/map.h'
> --- src/logic/map.h	2018-12-13 07:24:01 +0000
> +++ src/logic/map.h	2019-02-21 09:14:58 +0000
> @@ -165,6 +165,9 @@
>  	void recalc_whole_map(const World& world);
>  	void recalc_for_field_area(const World& world, Area<FCoords>);
>  
> +	/// Calculates and returns a list of the fields that could be conquered by a player thoughought a game. Useful for territorial win conditions.

thoughought -> throughout ?

> +	std::set<FCoords> calculate_valuable_fields() const;
> +
>  	/***
>  	 * Ensures that resources match their adjacent terrains.
>  	 */


-- 
https://code.launchpad.net/~widelands-dev/widelands/bug-1810062-territorial-calculations/+merge/361366
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1810062-territorial-calculations.


References