MCPcopy
hub / github.com/SylarLong/iztro / IFunctionalPalace

Interface IFunctionalPalace

src/astro/FunctionalPalace.ts:18–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 * 文档地址:https://docs.iztro.com/posts/palace.html#functionalastrolabe
17 */
18export interface IFunctionalPalace extends Palace {
19 /**
20 * 判断某个宫位内是否有传入的星耀,要所有星耀都在宫位内才会返回true
21 *
22 * @version v1.0.0
23 *
24 * @param stars 星耀名称,可以包含主星、辅星、杂耀
25 * @returns true | false
26 */
27 has: (stars: StarName[]) => boolean;
28
29 /**
30 * 判断某个宫位内是否有传入的星耀,要所有星耀都不在宫位内才会返回true
31 *
32 * @version v1.0.0
33 *
34 * @param stars 星耀名称,可以包含主星、辅星、杂耀
35 * @returnstrue | false
36 */
37 notHave: (stars: StarName[]) => boolean;
38
39 /**
40 * 判断某个宫位内是否有传入星耀的其中一个,只要命中一个就会返回true
41 *
42 * @version v1.0.0
43 *
44 * @param stars 星耀名称,可以包含主星、辅星、杂耀
45 * @returns true | false
46 */
47 hasOneOf: (stars: StarName[]) => boolean;
48
49 /**
50 * 判断宫位内是否有生年四化
51 *
52 * @version v1.2.0
53 *
54 * @param mutagen 四化名称【禄|权|科|忌】
55 * @returns true | false
56 */
57 hasMutagen: (mutagen: Mutagen) => boolean;
58
59 /**
60 * 判断宫位内是否没有生年四化
61 *
62 * @version v1.2.0
63 *
64 * @param mutagen 四化名称【禄|权|科|忌】
65 * @returns true | false
66 */
67 notHaveMutagen: (mutagen: Mutagen) => boolean;
68
69 /**
70 * 判断一个宫位是否为空宫(没有主星),
71 * 有些派别在宫位内有某些星耀的情况下,
72 * 是不会将该宫位判断为空宫的。
73 * 所以加入一个参数来传入星耀。
74 *
75 * @version v2.0.6

Callers

nothing calls this directly

Implementers 1

FunctionalPalacesrc/astro/FunctionalPalace.ts

Calls

no outgoing calls

Tested by

no test coverage detected