Difference between revisions of "Bonus system"

From VCMI Project Wiki
Jump to: navigation, search
(Created page with 'The bonus system of VCMI is a set of mechanisms that make handling of different bonuses for heroes, towns, players and units easier. The system consists of a set of nodes represe…')
 
(Replaced content with "{{Template:MovedToWebpage|https://vcmi.eu/developers/Bonus_System/}}")
 
(26 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The bonus system of VCMI is a set of mechanisms that make handling of different bonuses for heroes, towns, players and units easier. The system consists of a set of nodes representing objects that can be a source or a subject of a bonus and two directed acyclic graphs (DAGs) representing inheritance and propagation of bonuses.
+
{{Template:MovedToWebpage|https://vcmi.eu/developers/Bonus_System/}}
 
 
Here is a brief sketch of the system (black arrows indicate the direction of inheritance and red arrows the direction of propagation):
 
 
 
[[File:Bonus system.png]]
 
 
 
 
 
== Propagation and inheritance ==
 
 
 
TBD
 
 
 
== Operations on the graph ==
 
 
 
There are two basic types of operations that can be performed on the graph:
 
 
 
=== Adding a new node ===
 
 
 
TBD
 
 
 
=== Deleting an existing node ===
 
 
 
TBD
 
 
 
== Calculating the total value of a bonus ==
 
 
 
TBD
 

Latest revision as of 16:04, 16 July 2024

Logo256.png    Page moved to VCMI-Homepage