Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaoye
windbot
Commits
4bd3a76f
Commit
4bd3a76f
authored
Nov 04, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change CardId enum to class
parent
1129131c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
246 additions
and
246 deletions
+246
-246
Game/AI/Decks/BlueEyesExecutor.cs
Game/AI/Decks/BlueEyesExecutor.cs
+207
-207
Game/AI/DefaultExecutor.cs
Game/AI/DefaultExecutor.cs
+39
-39
No files found.
Game/AI/Decks/BlueEyesExecutor.cs
View file @
4bd3a76f
This diff is collapsed.
Click to expand it.
Game/AI/DefaultExecutor.cs
View file @
4bd3a76f
...
...
@@ -9,28 +9,28 @@ namespace WindBot.Game.AI
{
public
abstract
class
DefaultExecutor
:
Executor
{
pr
ivate
enum
CardId
pr
otected
class
_
CardId
{
JizukirutheStarDestroyingKaiju
=
63941210
,
GadarlatheMysteryDustKaiju
=
36956512
,
GamecieltheSeaTurtleKaiju
=
55063751
,
RadiantheMultidimensionalKaiju
=
28674152
,
KumongoustheStickyStringKaiju
=
29726552
,
ThunderKingtheLightningstrikeKaiju
=
48770333
,
DogorantheMadFlameKaiju
=
93332803
,
SuperAntiKaijuWarMachineMechaDogoran
=
84769941
,
public
static
int
JizukirutheStarDestroyingKaiju
=
63941210
;
public
static
int
GadarlatheMysteryDustKaiju
=
36956512
;
public
static
int
GamecieltheSeaTurtleKaiju
=
55063751
;
public
static
int
RadiantheMultidimensionalKaiju
=
28674152
;
public
static
int
KumongoustheStickyStringKaiju
=
29726552
;
public
static
int
ThunderKingtheLightningstrikeKaiju
=
48770333
;
public
static
int
DogorantheMadFlameKaiju
=
93332803
;
public
static
int
SuperAntiKaijuWarMachineMechaDogoran
=
84769941
;
MysticalSpaceTyphoon
=
5318639
,
CosmicCyclone
=
8267140
,
ChickenGame
=
67616300
,
public
static
int
MysticalSpaceTyphoon
=
5318639
;
public
static
int
CosmicCyclone
=
8267140
;
public
static
int
ChickenGame
=
67616300
;
CastelTheSkyblasterMusketeer
=
82633039
public
static
int
CastelTheSkyblasterMusketeer
=
82633039
;
}
protected
DefaultExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
{
AddExecutor
(
ExecutorType
.
Activate
,
(
int
)
CardId
.
ChickenGame
,
DefaultChickenGame
);
AddExecutor
(
ExecutorType
.
Activate
,
_
CardId
.
ChickenGame
,
DefaultChickenGame
);
}
/// <summary>
...
...
@@ -39,7 +39,7 @@ namespace WindBot.Game.AI
protected
bool
DefaultMysticalSpaceTyphoon
()
{
foreach
(
ClientCard
card
in
CurrentChain
)
if
(
card
.
Id
==
(
int
)
CardId
.
MysticalSpaceTyphoon
)
if
(
card
.
Id
==
_
CardId
.
MysticalSpaceTyphoon
)
return
false
;
List
<
ClientCard
>
spells
=
Enemy
.
GetSpells
();
...
...
@@ -72,7 +72,7 @@ namespace WindBot.Game.AI
protected
bool
DefaultCosmicCyclone
()
{
foreach
(
ClientCard
card
in
CurrentChain
)
if
(
card
.
Id
==
(
int
)
CardId
.
CosmicCyclone
)
if
(
card
.
Id
==
_
CardId
.
CosmicCyclone
)
return
false
;
return
(
Duel
.
LifePoints
[
0
]
>
1000
)
&&
DefaultMysticalSpaceTyphoon
();
}
...
...
@@ -390,9 +390,9 @@ namespace WindBot.Game.AI
}
if
(
count
>
1
||
Duel
.
LifePoints
[
0
]
<=
1000
)
return
false
;
if
(
Duel
.
LifePoints
[
0
]
<=
Duel
.
LifePoints
[
1
]
&&
ActivateDescription
==
AI
.
Utils
.
GetStringId
(
(
int
)
CardId
.
ChickenGame
,
0
))
if
(
Duel
.
LifePoints
[
0
]
<=
Duel
.
LifePoints
[
1
]
&&
ActivateDescription
==
AI
.
Utils
.
GetStringId
(
_
CardId
.
ChickenGame
,
0
))
return
true
;
if
(
Duel
.
LifePoints
[
0
]
>
Duel
.
LifePoints
[
1
]
&&
ActivateDescription
==
AI
.
Utils
.
GetStringId
(
(
int
)
CardId
.
ChickenGame
,
1
))
if
(
Duel
.
LifePoints
[
0
]
>
Duel
.
LifePoints
[
1
]
&&
ActivateDescription
==
AI
.
Utils
.
GetStringId
(
_
CardId
.
ChickenGame
,
1
))
return
true
;
return
false
;
}
...
...
@@ -493,26 +493,26 @@ namespace WindBot.Game.AI
{
AI
.
SelectCard
(
new
[]
{
(
int
)
CardId
.
GamecieltheSeaTurtleKaiju
,
(
int
)
CardId
.
KumongoustheStickyStringKaiju
,
(
int
)
CardId
.
RadiantheMultidimensionalKaiju
,
(
int
)
CardId
.
GadarlatheMysteryDustKaiju
_
CardId
.
GamecieltheSeaTurtleKaiju
,
_
CardId
.
KumongoustheStickyStringKaiju
,
_
CardId
.
RadiantheMultidimensionalKaiju
,
_
CardId
.
GadarlatheMysteryDustKaiju
});
return
true
;
}
AI
.
SelectCard
(
new
[]
{
(
int
)
CardId
.
JizukirutheStarDestroyingKaiju
,
(
int
)
CardId
.
RadiantheMultidimensionalKaiju
,
(
int
)
CardId
.
GadarlatheMysteryDustKaiju
,
(
int
)
CardId
.
KumongoustheStickyStringKaiju
_
CardId
.
JizukirutheStarDestroyingKaiju
,
_
CardId
.
RadiantheMultidimensionalKaiju
,
_
CardId
.
GadarlatheMysteryDustKaiju
,
_
CardId
.
KumongoustheStickyStringKaiju
});
AI
.
SelectNextCard
(
new
[]
{
(
int
)
CardId
.
GamecieltheSeaTurtleKaiju
,
(
int
)
CardId
.
KumongoustheStickyStringKaiju
,
(
int
)
CardId
.
GadarlatheMysteryDustKaiju
,
(
int
)
CardId
.
RadiantheMultidimensionalKaiju
_
CardId
.
GamecieltheSeaTurtleKaiju
,
_
CardId
.
KumongoustheStickyStringKaiju
,
_
CardId
.
GadarlatheMysteryDustKaiju
,
_
CardId
.
RadiantheMultidimensionalKaiju
});
return
DefaultDarkHole
();
}
...
...
@@ -523,14 +523,14 @@ namespace WindBot.Game.AI
protected
bool
DefaultKaijuSpsummon
()
{
IList
<
int
>
kaijus
=
new
[]
{
(
int
)
CardId
.
JizukirutheStarDestroyingKaiju
,
(
int
)
CardId
.
GadarlatheMysteryDustKaiju
,
(
int
)
CardId
.
GamecieltheSeaTurtleKaiju
,
(
int
)
CardId
.
RadiantheMultidimensionalKaiju
,
(
int
)
CardId
.
KumongoustheStickyStringKaiju
,
(
int
)
CardId
.
ThunderKingtheLightningstrikeKaiju
,
(
int
)
CardId
.
DogorantheMadFlameKaiju
,
(
int
)
CardId
.
SuperAntiKaijuWarMachineMechaDogoran
_
CardId
.
JizukirutheStarDestroyingKaiju
,
_
CardId
.
GadarlatheMysteryDustKaiju
,
_
CardId
.
GamecieltheSeaTurtleKaiju
,
_
CardId
.
RadiantheMultidimensionalKaiju
,
_
CardId
.
KumongoustheStickyStringKaiju
,
_
CardId
.
ThunderKingtheLightningstrikeKaiju
,
_
CardId
.
DogorantheMadFlameKaiju
,
_
CardId
.
SuperAntiKaijuWarMachineMechaDogoran
};
foreach
(
ClientCard
monster
in
Enemy
.
GetMonsters
())
{
...
...
@@ -612,7 +612,7 @@ namespace WindBot.Game.AI
protected
bool
DefaultCastelTheSkyblasterMusketeerEffect
()
{
if
(
ActivateDescription
==
AI
.
Utils
.
GetStringId
(
(
int
)
CardId
.
CastelTheSkyblasterMusketeer
,
0
))
if
(
ActivateDescription
==
AI
.
Utils
.
GetStringId
(
_
CardId
.
CastelTheSkyblasterMusketeer
,
0
))
return
false
;
ClientCard
target
=
AI
.
Utils
.
GetProblematicEnemyCard
();
if
(
target
!=
null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment