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

Interface IFunctionalSurpalaces

src/astro/FunctionalSurpalaces.ts:5–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { isSurroundedByOneOfStars, isSurroundedByStars, notSurroundedByStars } from './analyzer';
4
5export interface IFunctionalSurpalaces extends SurroundedPalaces {
6 /**
7 * 判断某一个宫位三方四正是否包含目标星耀,必须要全部包含才会返回true
8 *
9 * @version v1.2.0
10 *
11 * @param stars 星耀名称,可以包含主星、辅星、杂耀
12 * @returns true | false
13 */
14 have: (stars: StarName[]) => boolean;
15
16 /**
17 * 判断某一个宫位三方四正是否不含目标星耀,必须要全部都不在三方四正内含才会返回true
18 *
19 * @version v1.2.0
20 *
21 * @param stars 星耀名称,可以包含主星、辅星、杂耀
22 * @returnstrue | false
23 */
24 notHave: (stars: StarName[]) => boolean;
25
26 /**
27 * 判断三方四正内是否有传入星耀的其中一个,只要命中一个就会返回true
28 *
29 * @version v1.2.0
30 *
31 * @param stars 星耀名称,可以包含主星、辅星、杂耀
32 * @returns true | false
33 */
34 haveOneOf: (stars: StarName[]) => boolean;
35
36 /**
37 * 判断某一个宫位三方四正是否有四化
38 *
39 * @version v1.2.0
40 *
41 * @param mutagen 四化名称【禄|权|科|忌】
42 * @returns true | false
43 */
44 haveMutagen: (mutagen: Mutagen) => boolean;
45
46 /**
47 * 判断某一个宫位三方四正是否没有四化
48 *
49 * @version v1.2.0
50 *
51 * @param mutagen 四化名称【禄|权|科|忌】
52 * @returns true | false
53 */
54 notHaveMutagen: (mutagen: Mutagen) => boolean;
55}
56
57export class FunctionalSurpalaces implements IFunctionalSurpalaces {
58 target;

Callers

nothing calls this directly

Implementers 1

FunctionalSurpalacessrc/astro/FunctionalSurpalaces.ts

Calls

no outgoing calls

Tested by

no test coverage detected