-
Notifications
You must be signed in to change notification settings - Fork 152
CardDefs.xml
Jerome Leclanche edited this page Aug 13, 2015
·
7 revisions
Fireplace uses the CardDefs.xml file to generate the static data for all the cards in Hearthstone.
A parser is available here.
A filter interface is available as fireplace.cards.filter
. It can filter based on any attribute available in the CardXML
class.
For example, to get all collectible minions that cost 3 mana:
import fireplace.cards
from fireplace.enums import CardType
minions = fireplace.cards.filter(collectible=True, cost=3, card_type=CardType.MINION)
Note that this will return a list of Card IDs, not Card objects themselves.
- The Fireplace Card API
- The Fireplace DSL
- Card introspection
- Creating and playing a Game
- The CardDefs.xml file
- Developer Quick Start
- How to enable logging in Hearthstone
- Frequently Asked Questions
- Game State
- Game Actions
- Powers and Card Actions
- Target Selection
- Events
- Enchantments