TABLE OF CONTENTS
- 1. Statistics/Statistics
- 1.1. Statistics/SUI
- 1.1.1. SUI/SUI.Lists_Sort_Orders
- 1.1.2. SUI/SUI.Sorting_Array
- 1.1.3. SUI/SUI.Sorting_Data
- 1.1.4. SUI/SUI.Default_List_Sort_Order
- 1.1.5. SUI/SUI.Crafting_Indexes
- 1.1.6. SUI/SUI.Crafting_Sort_Order
- 1.1.7. SUI/SUI.Destroyed_Indexes
- 1.1.8. SUI/SUI.Destroyed_Sort_Order
- 1.1.9. SUI/SUI.Goals_Indexes
- 1.1.10. SUI/SUI.Goals_Sort_Order
- 1.1.11. SUI/SUI.Killed_Indexes
- 1.1.12. SUI/SUI.Killed_Sort_Order
- 1.1.13. SUI/SUI.Missions_Indexes
- 1.1.14. SUI/SUI.Missions_Sort_Order
- 1.1.15. SUI/SUI.Add_Commands
- 1.1.16. SUI/SUI.Set_Sorting_Order
- 1.1.17. SUI/SUI.Show_Statistics
- 1.1.18. SUI/SUI.Sort_Crafting_Command
- 1.1.19. SUI/SUI.Sort_Destroyed_Command
- 1.1.20. SUI/SUI.Sort_Goals_Command
- 1.1.21. SUI/SUI.Sort_Killed_Command
- 1.1.22. SUI/SUI.Sort_Missions_Command
- 1.2. Statistics/Statistics.Statistics_Container
- 1.3. Statistics/Statistics.Statistics_Data
- 1.4. Statistics/Statistics.Empty_Statistics_Data
- 1.5. Statistics/Statistics.Clear_Game_Stats
- 1.6. Statistics/Statistics.Get_Game_Points
Statistics/Statistics [ Packages ]
FUNCTION
Provides code for manipulate the game statistic
SOURCE
package Statistics is
Statistics/Statistics.Statistics_Container [ Types ]
[ Top ] [ Statistics ] [ Types ]
FUNCTION
Used to store game statistics data
SOURCE
package Statistics_Container is new Vectors (Index_Type => Positive, Element_Type => Statistics_Data);
Statistics/Statistics.Statistics_Data [ Records ]
[ Top ] [ Statistics ] [ Records ]
FUNCTION
Data for finished goals, destroyed ships and killed mobs
SOURCE
type Statistics_Data is record Index: Unbounded_String; Amount: Positive := 1; end record;
PARAMETERS
Index - Index of goal or ship name or name of fraction of killed mobs Amount - Amount of finished goals or ships or mobs of that type
Statistics/Statistics.Empty_Statistics_Data [ Constants ]
[ Top ] [ Statistics ] [ Constants ]
FUNCTION
Empty statistic data
SOURCE
Empty_Statistics_Data: constant Statistics_Data := (others => <>);
Statistics/Statistics.Clear_Game_Stats [ Subprograms ]
[ Top ] [ Statistics ] [ Subprograms ]
FUNCTION
Clear game statistics
SOURCE
procedure Clear_Game_Stats with Post => Get_Game_Points = 0;
Statistics/Statistics.Get_Game_Points [ Subprograms ]
[ Top ] [ Statistics ] [ Subprograms ]
FUNCTION
Get amount of gained points multiplied by difficulty bonus
SOURCE
function Get_Game_Points return Natural;
RESULT
Amount of gained points by player in this game