Documentation ¶
Index ¶
- func CharacterFromName(s string) *model.Character
- func FilterBest(name Name)
- func GenerateAttribute(i int) string
- func GenerateYinYang(i int) string
- func InitAll()
- func ScienceUpdate(index int, s string)
- func SetProperty(p Property)
- func Start(last string) stdFate
- type Charset
- type Fate
- type FiveGrid
- type Name
- type Property
- type ThreeTalent
- type ThreeTalentComposite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CharacterFromName ¶
func FilterBest ¶
func FilterBest(name Name)
func GenerateAttribute ¶
GenerateThreeTalent 计算字符的三才属性 1-2木:1为阳木,2为阴木 3-4火:3为阳火,4为阴火 5-6土:5为阳土,6为阴土 7-8金:7为阳金,8为阴金 9-10水:9为阳水,10为阴水
func GenerateYinYang ¶
func ScienceUpdate ¶
func SetProperty ¶
func SetProperty(p Property)
Types ¶
type FiveGrid ¶
type FiveGrid struct { SkyGrid int //天格 LandGrid int //地格 PersonGrid int //人格 OutGrid int //外格 AllGrid int //总格 }
func MakeFiveGridFromStrokes ¶
MakeFiveGridFromStrokes 按照姓名笔画创建一个五格属性 五格是进行大衍计算的基础
func (*FiveGrid) ContainBest ¶
func (*FiveGrid) PrintBigYan ¶
type Property ¶
type Property interface { UseThreeTalent() bool UseFiveGrid() bool UseFivePhase() bool UseZodiac() bool }
func DefaultProperty ¶
func DefaultProperty() Property
func GetProperty ¶
func GetProperty() Property
type ThreeTalent ¶
type ThreeTalent struct { SkyTalent ThreeTalentComposite LandTalent ThreeTalentComposite PersonTalent ThreeTalentComposite }
func (*ThreeTalent) PrintThreeTalent ¶
func (t *ThreeTalent) PrintThreeTalent()
type ThreeTalentComposite ¶
func NewThreeTalentComposite ¶
func NewThreeTalentComposite(i int) ThreeTalentComposite
Source Files ¶
Click to show internal directories.
Click to hide internal directories.