Debian Codegraph @

terps/frankendrift/FrankenDrift.Adrift/_FrankenDrift_Pronouns.vb

raw
1 
2 ' Subjective Pronoun Objective Pronoun Reflective Pronoun Possesive Pronoun
3 '
4 ' First Person I (am) Me Myself Mine
5 ' Second Person You (are) You Yourself Yours
6 ' Third Person He/She (is) Him/Her Himself/Herself His/Hers
7 ' It (is) It Itself Its
8 ' We (are) Us Ourselves Our
9 ' They (are) Them Themselves Theirs
10
11
12 Friend Enum PronounEnum As Integer
13 None = -1
14 Subjective = 0 ' I/You/He/She/It/We/They
15 Objective = 1 ' Me/You/Him/Her/It/Us/Them
16 Reflective = 2 ' Myself/Yourself/Himself/Herself/Itself/Ourselves/Themselves
17 Possessive = 3 ' Mine/Yours/His/Hers/Its/Ours/Theirs
18 End Enum
19
20 Friend Class PronounInfo
21 Public Key As String ' What is the pronoun applying to?
22 Public Pronoun As PronounEnum
23 Public Offset As Integer ' Where in the command does this substitution take place
24 Public Gender As clsCharacter.GenderEnum
25 End Class
26
27 Friend Class PronounInfoList
28 Inherits List(Of PronounInfo)
29
30 Shadows Sub Add(ByVal sKey As String, ByVal ePronoun As PronounEnum, ByVal Gender As clsCharacter.GenderEnum, ByVal iOffset As Integer)
31 Dim pi As New PronounInfo
32 pi.Key = sKey
33 pi.Pronoun = ePronoun
34 pi.Offset = iOffset
35 pi.Gender = Gender
36 MyBase.Add(pi)
37
38 ' Ensure the list is sorted by offset, for checking previous pronouns
39 MyBase.Sort(Function(x, y) x.Offset.CompareTo(y.Offset))
40 End Sub
41
42 End Class