You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
969 B

extends Resource
class_name MajorityJudgmentJudgment
export(Resource) var participant setget set_participant, get_participant
export(Resource) var candidate setget set_candidate, get_candidate
export(Resource) var grade setget set_grade, get_grade
func set_participant(__participant:MajorityJudgmentParticipant) -> void:
participant = __participant
func get_participant() -> MajorityJudgmentParticipant:
assert(participant, "Judgment has no participant. Something went horribly WRONG.")
return participant
func set_candidate(__candidate:MajorityJudgmentCandidate) -> void:
candidate = __candidate
func get_candidate() -> MajorityJudgmentCandidate:
assert(candidate, "Judgment has no candidate. Something went horribly WRONG.")
return candidate
func set_grade(__grade:MajorityJudgmentGrade) -> void:
grade = __grade
func get_grade() -> MajorityJudgmentGrade:
assert(grade, "Judgment has no grade. Something went horribly WRONG.")
return grade