Created a roughed out class for Conflict Results. We will need to talk about this one as a team.

This commit is contained in:
PersonGuyGit 2023-12-03 12:56:12 -07:00
parent 4edacc0a95
commit d728383a30
3 changed files with 38 additions and 1 deletions

View File

@ -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

View File

@ -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 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. #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 var Name: String

View File

@ -10,11 +10,17 @@ config_version=4
_global_script_classes=[ { _global_script_classes=[ {
"base": "Object", "base": "Object",
"class": "ConflictResultsProcess",
"language": "GDScript",
"path": "res://middleware/conflictResults/conflictResults.gd"
}, {
"base": "Object",
"class": "SpecialAbility", "class": "SpecialAbility",
"language": "GDScript", "language": "GDScript",
"path": "res://middleware/specialabliities/specialabilities.gd" "path": "res://middleware/specialabliities/specialabilities.gd"
} ] } ]
_global_script_class_icons={ _global_script_class_icons={
"ConflictResultsProcess": "",
"SpecialAbility": "" "SpecialAbility": ""
} }