-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.js
95 lines (83 loc) · 3.72 KB
/
stats.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import './importAll';
import { overmind } from './overMind';
export function stats() {
let mySpawn = getObjectsByPrototype(StructureSpawn).find(s => s.my);
switch (mySpawn.fightMode) {
case 1: run1Mode();
break;
case 2: run2Mode();
break;
case 3: run3Mode();
break;
case 4: run4Mode();
break;
case 5: run5Mode();
break;
}
}
function run1Mode() {
let mySpawn = getObjectsByPrototype(StructureSpawn).filter(s => s.my)[0];
let enemyCreeps = getObjectsByPrototype(Creep).filter(s => !s.my);
let myCreeps = getObjectsByPrototype(Creep).filter(s => s.my);
//负责显示状态,具体实现在各个模块里面
console.log("马作的卢飞快")
console.log("游戏时间:", getTicks(), "ticks")
console.log("战术模式:", mySpawn.fightMode)
console.log("基地位置:", mySpawn.ramPos)
console.log("战争状态:", mySpawn.warStats)
console.log("敌人接近:", mySpawn.isCloseCreeps)
console.log("我方数量:", myCreeps.length)
console.log("敌人数量:", enemyCreeps.length)
}
function run2Mode() {
let mySpawn = getObjectsByPrototype(StructureSpawn).filter(s => s.my)[0];
let enemyCreeps = getObjectsByPrototype(Creep).filter(s => !s.my);
let myCreeps = getObjectsByPrototype(Creep).filter(s => s.my);
//负责显示状态,具体实现在各个模块里面
console.log("马作的卢飞快")
console.log("游戏时间:", getTicks(), "ticks");
console.log("战术模式:", mySpawn.fightMode)
console.log("基地位置:", mySpawn.ramPos)
console.log("战争状态:", mySpawn.warStats)
console.log("敌人接近:", mySpawn.isCloseCreeps)
console.log("我方数量:", myCreeps.length)
console.log("敌人数量:", enemyCreeps.length)
}
function run3Mode() {
let mySpawn = getObjectsByPrototype(StructureSpawn).filter(s => s.my)[0];
let enemyCreeps = getObjectsByPrototype(Creep).filter(s => !s.my);
let myCreeps = getObjectsByPrototype(Creep).filter(s => s.my);
//负责显示状态,具体实现在各个模块里面
console.log("马作的卢飞快")
console.log("游戏时间:", getTicks(), "ticks");
console.log("战术模式:", mySpawn.fightMode)
console.log("基地位置:", mySpawn.ramPos)
console.log("长城位置:", mySpawn.buildGreatWallLine)
console.log("战争状态:", mySpawn.warStats)
console.log("敌人接近:", mySpawn.isCloseCreeps)
console.log("我方数量:", myCreeps.length)
console.log("敌人数量:", enemyCreeps.length)
}
function run4Mode() {
let mySpawn = getObjectsByPrototype(StructureSpawn).filter(s => s.my)[0];
let enemyCreeps = getObjectsByPrototype(Creep).filter(s => !s.my);
let myCreeps = getObjectsByPrototype(Creep).filter(s => s.my);
//负责显示状态,具体实现在各个模块里面
console.log("马作的卢飞快")
console.log("游戏时间:", getTicks(), "ticks");
console.log("战术模式:", mySpawn.fightMode)
console.log("基地位置:", mySpawn.ramPos)
console.log("战争状态:", mySpawn.warStats)
console.log("我方数量:", myCreeps.length)
console.log("敌人数量:", enemyCreeps.length)
}
function run5Mode() {
let mySpawn = getObjectsByPrototype(StructureSpawn).filter(s => s.my)[0];
//负责显示状态,具体实现在各个模块里面
console.log("马作的卢飞快")
console.log("游戏时间:", getTicks(), "ticks")
console.log("代码版本:", mySpawn.fightMode)
console.log("敌方战术:", overmind.enemyTactics)
console.log("针对策略:", overmind.fightMode)
console.log("战争状态:", overmind.warStats)
}