add student and librarian,update protocol
This commit is contained in:
parent
671f1a059d
commit
0023bc9813
@ -58,6 +58,7 @@ Action commands return either an empty list of cards or the relevant list of car
|
|||||||
|
|
||||||
s: Look at the top X cards of the current players deck, where x is their Life total. Returns nothing if unable to scry (i.e. the player can not currently draw a card). Otherwise return a list of zero to three cards representing what was seen.
|
s: Look at the top X cards of the current players deck, where x is their Life total. Returns nothing if unable to scry (i.e. the player can not currently draw a card). Otherwise return a list of zero to three cards representing what was seen.
|
||||||
d <x>: Draw the the card at position X in the result return from a Scry. Returns nothing if the player is unable to draw. Otherwise return the current players hand
|
d <x>: Draw the the card at position X in the result return from a Scry. Returns nothing if the player is unable to draw. Otherwise return the current players hand
|
||||||
|
b <x>: Bottom the the card at position X in the result return from a Scry. Returns nothing if the player is unable to draw. Otherwise return the current players hand
|
||||||
p <x> <y>: Play the card at position X in the current players hand to position Y on the current player's side of the board. Return nothing if the card cannot be played, otherwise return the current players side of the board.
|
p <x> <y>: Play the card at position X in the current players hand to position Y on the current player's side of the board. Return nothing if the card cannot be played, otherwise return the current players side of the board.
|
||||||
m <x> <y>: Move the card at position X to position Y, with both positions being on the current players side of the board. Return nothing if the card cannot be moved, otherwise return the current players side of the board.
|
m <x> <y>: Move the card at position X to position Y, with both positions being on the current players side of the board. Return nothing if the card cannot be moved, otherwise return the current players side of the board.
|
||||||
a <x> <y>: Attack with the card at position X on the current players side of the board at position Y on the opponents side of the board. Returns nothing if the attack can not be made, or the current players side of the board.
|
a <x> <y>: Attack with the card at position X on the current players side of the board at position Y on the opponents side of the board. Returns nothing if the attack can not be made, or the current players side of the board.
|
||||||
|
@ -30,6 +30,8 @@ const (
|
|||||||
|
|
||||||
//Rank 4
|
//Rank 4
|
||||||
Vanguard //puts +1/+0 on allied unit
|
Vanguard //puts +1/+0 on allied unit
|
||||||
|
Student //scry 2, draw 1
|
||||||
|
Librarian //scry life, draw 1
|
||||||
|
|
||||||
//Rank 5
|
//Rank 5
|
||||||
Elephant //Created a dud on enemy board
|
Elephant //Created a dud on enemy board
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
const _CardTypeName = "EmptyValueValkSpeedsterCommanderPaladinScholarWarriorFighterSevenShieldWallHealthPotionTreeGoblinChupacabraAllyEnemyDuelistVanguardElephantMesmeristDivinerHologramGoblinSpawnDud"
|
const _CardTypeName = "EmptyValueValkSpeedsterCommanderPaladinScholarWarriorFighterSevenShieldWallHealthPotionTreeGoblinChupacabraAllyEnemyDuelistVanguardStudentLibrarianElephantMesmeristDivinerHologramGoblinSpawnDud"
|
||||||
|
|
||||||
var _CardTypeIndex = [...]uint8{0, 10, 14, 23, 32, 39, 46, 53, 60, 65, 75, 87, 91, 97, 107, 111, 116, 123, 131, 139, 148, 155, 163, 174, 177}
|
var _CardTypeIndex = [...]uint8{0, 10, 14, 23, 32, 39, 46, 53, 60, 65, 75, 87, 91, 97, 107, 111, 116, 123, 131, 138, 147, 155, 164, 171, 179, 190, 193}
|
||||||
|
|
||||||
func (i CardType) String() string {
|
func (i CardType) String() string {
|
||||||
i -= -1
|
i -= -1
|
||||||
@ -20,7 +20,7 @@ func (i CardType) String() string {
|
|||||||
return _CardTypeName[_CardTypeIndex[i]:_CardTypeIndex[i+1]]
|
return _CardTypeName[_CardTypeIndex[i]:_CardTypeIndex[i+1]]
|
||||||
}
|
}
|
||||||
|
|
||||||
var _CardTypeValues = []CardType{-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22}
|
var _CardTypeValues = []CardType{-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}
|
||||||
|
|
||||||
var _CardTypeNameToValueMap = map[string]CardType{
|
var _CardTypeNameToValueMap = map[string]CardType{
|
||||||
_CardTypeName[0:10]: -1,
|
_CardTypeName[0:10]: -1,
|
||||||
@ -41,12 +41,14 @@ var _CardTypeNameToValueMap = map[string]CardType{
|
|||||||
_CardTypeName[111:116]: 14,
|
_CardTypeName[111:116]: 14,
|
||||||
_CardTypeName[116:123]: 15,
|
_CardTypeName[116:123]: 15,
|
||||||
_CardTypeName[123:131]: 16,
|
_CardTypeName[123:131]: 16,
|
||||||
_CardTypeName[131:139]: 17,
|
_CardTypeName[131:138]: 17,
|
||||||
_CardTypeName[139:148]: 18,
|
_CardTypeName[138:147]: 18,
|
||||||
_CardTypeName[148:155]: 19,
|
_CardTypeName[147:155]: 19,
|
||||||
_CardTypeName[155:163]: 20,
|
_CardTypeName[155:164]: 20,
|
||||||
_CardTypeName[163:174]: 21,
|
_CardTypeName[164:171]: 21,
|
||||||
_CardTypeName[174:177]: 22,
|
_CardTypeName[171:179]: 22,
|
||||||
|
_CardTypeName[179:190]: 23,
|
||||||
|
_CardTypeName[190:193]: 24,
|
||||||
}
|
}
|
||||||
|
|
||||||
// CardTypeString retrieves an enum value from the enum constants string name.
|
// CardTypeString retrieves an enum value from the enum constants string name.
|
||||||
|
Loading…
Reference in New Issue
Block a user