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
Tang Xinwei
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
Show 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
...
@@ -9,28 +9,28 @@ namespace WindBot.Game.AI
{
{
public
abstract
class
DefaultExecutor
:
Executor
public
abstract
class
DefaultExecutor
:
Executor
{
{
pr
ivate
enum
CardId
pr
otected
class
_
CardId
{
{
JizukirutheStarDestroyingKaiju
=
63941210
,
public
static
int
JizukirutheStarDestroyingKaiju
=
63941210
;
GadarlatheMysteryDustKaiju
=
36956512
,
public
static
int
GadarlatheMysteryDustKaiju
=
36956512
;
GamecieltheSeaTurtleKaiju
=
55063751
,
public
static
int
GamecieltheSeaTurtleKaiju
=
55063751
;
RadiantheMultidimensionalKaiju
=
28674152
,
public
static
int
RadiantheMultidimensionalKaiju
=
28674152
;
KumongoustheStickyStringKaiju
=
29726552
,
public
static
int
KumongoustheStickyStringKaiju
=
29726552
;
ThunderKingtheLightningstrikeKaiju
=
48770333
,
public
static
int
ThunderKingtheLightningstrikeKaiju
=
48770333
;
DogorantheMadFlameKaiju
=
93332803
,
public
static
int
DogorantheMadFlameKaiju
=
93332803
;
SuperAntiKaijuWarMachineMechaDogoran
=
84769941
,
public
static
int
SuperAntiKaijuWarMachineMechaDogoran
=
84769941
;
MysticalSpaceTyphoon
=
5318639
,
public
static
int
MysticalSpaceTyphoon
=
5318639
;
CosmicCyclone
=
8267140
,
public
static
int
CosmicCyclone
=
8267140
;
ChickenGame
=
67616300
,
public
static
int
ChickenGame
=
67616300
;
CastelTheSkyblasterMusketeer
=
82633039
public
static
int
CastelTheSkyblasterMusketeer
=
82633039
;
}
}
protected
DefaultExecutor
(
GameAI
ai
,
Duel
duel
)
protected
DefaultExecutor
(
GameAI
ai
,
Duel
duel
)
:
base
(
ai
,
duel
)
:
base
(
ai
,
duel
)
{
{
AddExecutor
(
ExecutorType
.
Activate
,
(
int
)
CardId
.
ChickenGame
,
DefaultChickenGame
);
AddExecutor
(
ExecutorType
.
Activate
,
_
CardId
.
ChickenGame
,
DefaultChickenGame
);
}
}
/// <summary>
/// <summary>
...
@@ -39,7 +39,7 @@ namespace WindBot.Game.AI
...
@@ -39,7 +39,7 @@ namespace WindBot.Game.AI
protected
bool
DefaultMysticalSpaceTyphoon
()
protected
bool
DefaultMysticalSpaceTyphoon
()
{
{
foreach
(
ClientCard
card
in
CurrentChain
)
foreach
(
ClientCard
card
in
CurrentChain
)
if
(
card
.
Id
==
(
int
)
CardId
.
MysticalSpaceTyphoon
)
if
(
card
.
Id
==
_
CardId
.
MysticalSpaceTyphoon
)
return
false
;
return
false
;
List
<
ClientCard
>
spells
=
Enemy
.
GetSpells
();
List
<
ClientCard
>
spells
=
Enemy
.
GetSpells
();
...
@@ -72,7 +72,7 @@ namespace WindBot.Game.AI
...
@@ -72,7 +72,7 @@ namespace WindBot.Game.AI
protected
bool
DefaultCosmicCyclone
()
protected
bool
DefaultCosmicCyclone
()
{
{
foreach
(
ClientCard
card
in
CurrentChain
)
foreach
(
ClientCard
card
in
CurrentChain
)
if
(
card
.
Id
==
(
int
)
CardId
.
CosmicCyclone
)
if
(
card
.
Id
==
_
CardId
.
CosmicCyclone
)
return
false
;
return
false
;
return
(
Duel
.
LifePoints
[
0
]
>
1000
)
&&
DefaultMysticalSpaceTyphoon
();
return
(
Duel
.
LifePoints
[
0
]
>
1000
)
&&
DefaultMysticalSpaceTyphoon
();
}
}
...
@@ -390,9 +390,9 @@ namespace WindBot.Game.AI
...
@@ -390,9 +390,9 @@ namespace WindBot.Game.AI
}
}
if
(
count
>
1
||
Duel
.
LifePoints
[
0
]
<=
1000
)
if
(
count
>
1
||
Duel
.
LifePoints
[
0
]
<=
1000
)
return
false
;
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
;
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
true
;
return
false
;
return
false
;
}
}
...
@@ -493,26 +493,26 @@ namespace WindBot.Game.AI
...
@@ -493,26 +493,26 @@ namespace WindBot.Game.AI
{
{
AI
.
SelectCard
(
new
[]
AI
.
SelectCard
(
new
[]
{
{
(
int
)
CardId
.
GamecieltheSeaTurtleKaiju
,
_
CardId
.
GamecieltheSeaTurtleKaiju
,
(
int
)
CardId
.
KumongoustheStickyStringKaiju
,
_
CardId
.
KumongoustheStickyStringKaiju
,
(
int
)
CardId
.
RadiantheMultidimensionalKaiju
,
_
CardId
.
RadiantheMultidimensionalKaiju
,
(
int
)
CardId
.
GadarlatheMysteryDustKaiju
_
CardId
.
GadarlatheMysteryDustKaiju
});
});
return
true
;
return
true
;
}
}
AI
.
SelectCard
(
new
[]
AI
.
SelectCard
(
new
[]
{
{
(
int
)
CardId
.
JizukirutheStarDestroyingKaiju
,
_
CardId
.
JizukirutheStarDestroyingKaiju
,
(
int
)
CardId
.
RadiantheMultidimensionalKaiju
,
_
CardId
.
RadiantheMultidimensionalKaiju
,
(
int
)
CardId
.
GadarlatheMysteryDustKaiju
,
_
CardId
.
GadarlatheMysteryDustKaiju
,
(
int
)
CardId
.
KumongoustheStickyStringKaiju
_
CardId
.
KumongoustheStickyStringKaiju
});
});
AI
.
SelectNextCard
(
new
[]
AI
.
SelectNextCard
(
new
[]
{
{
(
int
)
CardId
.
GamecieltheSeaTurtleKaiju
,
_
CardId
.
GamecieltheSeaTurtleKaiju
,
(
int
)
CardId
.
KumongoustheStickyStringKaiju
,
_
CardId
.
KumongoustheStickyStringKaiju
,
(
int
)
CardId
.
GadarlatheMysteryDustKaiju
,
_
CardId
.
GadarlatheMysteryDustKaiju
,
(
int
)
CardId
.
RadiantheMultidimensionalKaiju
_
CardId
.
RadiantheMultidimensionalKaiju
});
});
return
DefaultDarkHole
();
return
DefaultDarkHole
();
}
}
...
@@ -523,14 +523,14 @@ namespace WindBot.Game.AI
...
@@ -523,14 +523,14 @@ namespace WindBot.Game.AI
protected
bool
DefaultKaijuSpsummon
()
protected
bool
DefaultKaijuSpsummon
()
{
{
IList
<
int
>
kaijus
=
new
[]
{
IList
<
int
>
kaijus
=
new
[]
{
(
int
)
CardId
.
JizukirutheStarDestroyingKaiju
,
_
CardId
.
JizukirutheStarDestroyingKaiju
,
(
int
)
CardId
.
GadarlatheMysteryDustKaiju
,
_
CardId
.
GadarlatheMysteryDustKaiju
,
(
int
)
CardId
.
GamecieltheSeaTurtleKaiju
,
_
CardId
.
GamecieltheSeaTurtleKaiju
,
(
int
)
CardId
.
RadiantheMultidimensionalKaiju
,
_
CardId
.
RadiantheMultidimensionalKaiju
,
(
int
)
CardId
.
KumongoustheStickyStringKaiju
,
_
CardId
.
KumongoustheStickyStringKaiju
,
(
int
)
CardId
.
ThunderKingtheLightningstrikeKaiju
,
_
CardId
.
ThunderKingtheLightningstrikeKaiju
,
(
int
)
CardId
.
DogorantheMadFlameKaiju
,
_
CardId
.
DogorantheMadFlameKaiju
,
(
int
)
CardId
.
SuperAntiKaijuWarMachineMechaDogoran
_
CardId
.
SuperAntiKaijuWarMachineMechaDogoran
};
};
foreach
(
ClientCard
monster
in
Enemy
.
GetMonsters
())
foreach
(
ClientCard
monster
in
Enemy
.
GetMonsters
())
{
{
...
@@ -612,7 +612,7 @@ namespace WindBot.Game.AI
...
@@ -612,7 +612,7 @@ namespace WindBot.Game.AI
protected
bool
DefaultCastelTheSkyblasterMusketeerEffect
()
protected
bool
DefaultCastelTheSkyblasterMusketeerEffect
()
{
{
if
(
ActivateDescription
==
AI
.
Utils
.
GetStringId
(
(
int
)
CardId
.
CastelTheSkyblasterMusketeer
,
0
))
if
(
ActivateDescription
==
AI
.
Utils
.
GetStringId
(
_
CardId
.
CastelTheSkyblasterMusketeer
,
0
))
return
false
;
return
false
;
ClientCard
target
=
AI
.
Utils
.
GetProblematicEnemyCard
();
ClientCard
target
=
AI
.
Utils
.
GetProblematicEnemyCard
();
if
(
target
!=
null
)
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