From d728383a303638e7b672247beb4ae0c5dc3f1820 Mon Sep 17 00:00:00 2001 From: PersonGuyGit Date: Sun, 3 Dec 2023 12:56:12 -0700 Subject: [PATCH] Created a roughed out class for Conflict Results. We will need to talk about this one as a team. --- .../conflictResults/conflictResults.gd | 31 +++++++++++++++++++ .../specialabliities/specialabilities.gd | 2 +- Phase2/Godot_Toolset/Main/project.godot | 6 ++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 Phase2/Godot_Toolset/Main/middleware/conflictResults/conflictResults.gd diff --git a/Phase2/Godot_Toolset/Main/middleware/conflictResults/conflictResults.gd b/Phase2/Godot_Toolset/Main/middleware/conflictResults/conflictResults.gd new file mode 100644 index 0000000..74d2986 --- /dev/null +++ b/Phase2/Godot_Toolset/Main/middleware/conflictResults/conflictResults.gd @@ -0,0 +1,31 @@ +extends Object + +class_name ConflictResultsProcess + +#This class is used to define the player and NPC order in combat. Also called Initiative in some game systems. +#Rough Draft: 12/3/2023: Luke, Godot 3.5 + + +#How are we calculating initiatve. Are we going to pull the formula from the GSAL? +var Initiative_Order : Array + + +#What do these two variables do? That was not clearly defined in the UML... +var Action_Declared : Array + +var Situation_Mod : int + +# What is the desired data that we want from these two Int values below +var Defender_Results_Calculation : int + +var Opponent_Results_Calclation: int + +func _init(): + pass + +#func _Defender_VS_Opponent_Results(int): Matrix +#Matrix is not a built in datatype in Godot. How I am imagining us doing this is with a 2D or 3D array. +#Example Structure [[DefenderResults], [OpponentResults]] + + +#func _Outcome_Options(Matrix): List diff --git a/Phase2/Godot_Toolset/Main/middleware/specialabliities/specialabilities.gd b/Phase2/Godot_Toolset/Main/middleware/specialabliities/specialabilities.gd index 303417e..baad14b 100644 --- a/Phase2/Godot_Toolset/Main/middleware/specialabliities/specialabilities.gd +++ b/Phase2/Godot_Toolset/Main/middleware/specialabliities/specialabilities.gd @@ -5,7 +5,7 @@ class_name SpecialAbility #This is the middle ware, to define the structure of the data, before it is accesable by the character sheet. #This class is also used to define the structure, as to make it normalized for the database / XML layers. -# Luke, 12/9/2023, Godot 3.5 +# Luke, 12/9/2023, Godot 3.5+ var Name: String diff --git a/Phase2/Godot_Toolset/Main/project.godot b/Phase2/Godot_Toolset/Main/project.godot index 67d7808..ef2e30a 100644 --- a/Phase2/Godot_Toolset/Main/project.godot +++ b/Phase2/Godot_Toolset/Main/project.godot @@ -10,11 +10,17 @@ config_version=4 _global_script_classes=[ { "base": "Object", +"class": "ConflictResultsProcess", +"language": "GDScript", +"path": "res://middleware/conflictResults/conflictResults.gd" +}, { +"base": "Object", "class": "SpecialAbility", "language": "GDScript", "path": "res://middleware/specialabliities/specialabilities.gd" } ] _global_script_class_icons={ +"ConflictResultsProcess": "", "SpecialAbility": "" }