diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-09-15 15:47:42 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-09-15 15:47:42 +0200 |
| commit | 8b94145e7acbb6ba6acff76102e9b605348ee612 (patch) | |
| tree | 4a8a6dd0deaea0eb6575eee1e54fa351542b943e | |
| download | muhqs-game-8b94145e7acbb6ba6acff76102e9b605348ee612.tar.gz muhqs-game-8b94145e7acbb6ba6acff76102e9b605348ee612.zip | |
add Makefile, tikzcard template and generated base, equipment, and magic cards
51 files changed, 1415 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c46cbe73 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +latex/build
\ No newline at end of file diff --git a/latex/Makefile b/latex/Makefile new file mode 100644 index 00000000..7552b32e --- /dev/null +++ b/latex/Makefile @@ -0,0 +1,44 @@ +.PHONY: all clean + +.DEFAULT_GOAL = all + +PDFLATEX = lualatex +PDFTOPPM = pdftoppm + +PDFTOPPM_FLAGS = -singlefile -png -r 300 + +COMMON_TEX_FILES = libs.tex colors.tex tikzcards.tex + +CARDS_DIR = cards +CARD_SOURCES = $(shell find $(CARDS_DIR) -name "*.tex") + +VERBOSE = @ +PDF_DIR = ./build + +CARD_PDFS = $(notdir $(CARD_SOURCES:.tex=.pdf)) +CARD_PDFS_PREFIXED = $(addprefix $(PDF_DIR)/,$(CARD_PDFS)) + +CARD_PNGS = $(notdir $(CARD_SOURCES:.tex=.png)) +CARD_PNGS_PREFIXED = $(addprefix $(PDF_DIR)/,$(CARD_PNGS)) + +MAKEFILE_LIST = Makefile + +all: $(PDF_DIR)/cards.pdf $(CARD_PDFS_PREFIXED) $(CARD_PNGS_PREFIXED) + +$(PDF_DIR)/cards.pdf: cards.tex $(CARD_SOURCES) $(COMMON_TEX_FILES) $(MAKEFILE_LIST) + @echo "building › › $@" + @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi + $(VERBOSE) $(PDFLATEX) --output-directory $(PDF_DIR) $^ + +$(PDF_DIR)/%.pdf : $(CARDS_DIR)/%.tex $(COMMON_TEX_FILES) $(MAKEFILE_LIST) + @echo "card › $@" + @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi + $(VERBOSE) $(PDFLATEX) --output-directory $(PDF_DIR) $(CARDS_DIR)/$*.tex + +$(PDF_DIR)/%.png : $(PDF_DIR)/%.pdf $(MAKEFILE_LIST) + @echo "png › $@" + @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi + $(VERBOSE) $(PDFTOPPM) $(PDFTOPPM_FLAGS) $(PDF_DIR)/$*.pdf $(PDF_DIR)/$* + +clean: + rm -rf build/ diff --git a/latex/base.tex b/latex/base.tex new file mode 100644 index 00000000..c7231e76 --- /dev/null +++ b/latex/base.tex @@ -0,0 +1,50 @@ +\documentclass[a4paper,landscape]{article} + +% Ränder des Dokuments anpassen +\usepackage[margin=6mm,top=5mm]{geometry} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\usepackage{standalone} + +\begin{document} +\begin{center} +\pagestyle{empty} +\input{cards/sword.tex} +\hspace{5mm} +\input{cards/great_sword.tex} +\hspace{5mm} +\input{cards/shield.tex} +\hspace{5mm} +\input{cards/tower_shield.tex} +\vspace{5mm} + +\input{cards/archer.tex} +\hspace{5mm} +\input{cards/knight.tex} +\hspace{5mm} +\input{cards/pikeman.tex} +\hspace{5mm} +\input{cards/cavalry.tex} +\vspace{5mm} + +\input{cards/tax_collector.tex} +\hspace{5mm} +\input{cards/pioneer.tex} +\hspace{5mm} +\input{cards/recruiter.tex} +\hspace{5mm} +\input{cards/missionary.tex} +\vspace{5mm} + +\input{cards/cavl._archer.tex} +\hspace{5mm} + +\end{center} +\end{document} + diff --git a/latex/cards.tex b/latex/cards.tex new file mode 100644 index 00000000..37798af2 --- /dev/null +++ b/latex/cards.tex @@ -0,0 +1,116 @@ +\documentclass[a4paper,landscape]{article} + +% Ränder des Dokuments anpassen +\usepackage[margin=6mm,top=5mm]{geometry} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\usepackage{standalone} + +\begin{document} +\begin{center} +\pagestyle{empty} + + +\input{cards/sword.tex} +\hspace{5mm} +\input{cards/great_sword.tex} +\hspace{5mm} +\input{cards/shield.tex} +\hspace{5mm} +\input{cards/tower_shield.tex} +\vspace{5mm} + +\input{cards/archer.tex} +\hspace{5mm} +\input{cards/knight.tex} +\hspace{5mm} +\input{cards/pikeman.tex} +\hspace{5mm} +\input{cards/cavalry.tex} +\vspace{5mm} + +\input{cards/tax_collector.tex} +\hspace{5mm} +\input{cards/pioneer.tex} +\hspace{5mm} +\input{cards/recruiter.tex} +\hspace{5mm} +\input{cards/missionary.tex} +\vspace{5mm} + +\input{cards/cavl._archer.tex} +\hspace{5mm} + +\newpage + +\input{cards/armor.tex} +\hspace{5mm} +\input{cards/relic.tex} +\hspace{5mm} +\input{cards/banner.tex} +\hspace{5mm} +\input{cards/gear.tex} +\vspace{5mm} + +\input{cards/poisoned_dagger.tex} +\hspace{5mm} +\input{cards/mace.tex} +\hspace{5mm} +\input{cards/plate_armor.tex} +\hspace{5mm} +\input{cards/cloak.tex} +\vspace{5mm} + +\input{cards/spear.tex} +\hspace{5mm} +\input{cards/smith.tex} +\hspace{5mm} +\input{cards/shatter.tex} +\hspace{5mm} + +\newpage + +\input{cards/defense!.tex} +\hspace{5mm} +\input{cards/heal!.tex} +\hspace{5mm} +\input{cards/charge.tex} +\hspace{5mm} +\input{cards/rush.tex} +\vspace{5mm} + +\input{cards/attack!.tex} +\hspace{5mm} +\input{cards/move!.tex} +\hspace{5mm} +\input{cards/stumble!.tex} +\hspace{5mm} +\input{cards/more!.tex} +\vspace{5mm} + +\input{cards/select!.tex} +\hspace{5mm} +\input{cards/die!.tex} +\hspace{5mm} +\input{cards/clone!.tex} +\hspace{5mm} +\input{cards/no!.tex} +\vspace{5mm} + +\input{cards/mine!.tex} +\hspace{5mm} +\input{cards/isolate!.tex} +\hspace{5mm} +\input{cards/shroud!.tex} +\hspace{5mm} +\input{cards/ritual!.tex} +\vspace{5mm} + +\end{center} +\end{document} diff --git a/latex/cards/archer.tex b/latex/cards/archer.tex new file mode 100644 index 00000000..ec181d0e --- /dev/null +++ b/latex/cards/archer.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Archer} +\cardbuycost{5} +\cardcontent{Health: 2\\ Movement: 2\\ Attack: 1 Range 2} +\cardplaycost{1} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/armor.tex b/latex/cards/armor.tex new file mode 100644 index 00000000..4ba2d0fb --- /dev/null +++ b/latex/cards/armor.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Armor} +\cardbuycost{7} +\cardsplitcontent{Durability: 3}{Equipped unit gains + 1 Armor}\cardplaycost{2} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/attack!.tex b/latex/cards/attack!.tex new file mode 100644 index 00000000..478b249e --- /dev/null +++ b/latex/cards/attack!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Attack!} +\cardbuycost{5} +\cardcontent{Two units gain +1 Damage until end of turn} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/banner.tex b/latex/cards/banner.tex new file mode 100644 index 00000000..a37115ed --- /dev/null +++ b/latex/cards/banner.tex @@ -0,0 +1,21 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeArtifact +\cardtitle{Banner} +\cardbuycost{2} +\cardcontent{Units you control in range 1 gain +1 attack damage and +1 movement} +\cardplaycost{7} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/base.tex b/latex/cards/base.tex new file mode 100644 index 00000000..c7231e76 --- /dev/null +++ b/latex/cards/base.tex @@ -0,0 +1,50 @@ +\documentclass[a4paper,landscape]{article} + +% Ränder des Dokuments anpassen +\usepackage[margin=6mm,top=5mm]{geometry} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\usepackage{standalone} + +\begin{document} +\begin{center} +\pagestyle{empty} +\input{cards/sword.tex} +\hspace{5mm} +\input{cards/great_sword.tex} +\hspace{5mm} +\input{cards/shield.tex} +\hspace{5mm} +\input{cards/tower_shield.tex} +\vspace{5mm} + +\input{cards/archer.tex} +\hspace{5mm} +\input{cards/knight.tex} +\hspace{5mm} +\input{cards/pikeman.tex} +\hspace{5mm} +\input{cards/cavalry.tex} +\vspace{5mm} + +\input{cards/tax_collector.tex} +\hspace{5mm} +\input{cards/pioneer.tex} +\hspace{5mm} +\input{cards/recruiter.tex} +\hspace{5mm} +\input{cards/missionary.tex} +\vspace{5mm} + +\input{cards/cavl._archer.tex} +\hspace{5mm} + +\end{center} +\end{document} + diff --git a/latex/cards/cavalry.tex b/latex/cards/cavalry.tex new file mode 100644 index 00000000..8827a45f --- /dev/null +++ b/latex/cards/cavalry.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Cavalry} +\cardbuycost{5} +\cardcontent{Health: 1\\ Movement: 4\\ Attack: 2} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/cavl._archer.tex b/latex/cards/cavl._archer.tex new file mode 100644 index 00000000..a5d4f64b --- /dev/null +++ b/latex/cards/cavl._archer.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Cavl. Archer} +\cardbuycost{10} +\cardcontent{Health: 1\\ Movement: 4\\ Attack: 1 Range 2} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/charge.tex b/latex/cards/charge.tex new file mode 100644 index 00000000..8c555de0 --- /dev/null +++ b/latex/cards/charge.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Charge} +\cardbuycost{5} +\cardcontent{Two units gain +2 Movement until end of turn} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/cloak.tex b/latex/cards/cloak.tex new file mode 100644 index 00000000..1facbcf1 --- /dev/null +++ b/latex/cards/cloak.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Cloak} +\cardbuycost{3} +\cardsplitcontent{Durability: 2}{equiped unit gains shroud (can't be targeted)}\cardplaycost{7} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/clone!.tex b/latex/cards/clone!.tex new file mode 100644 index 00000000..4b862f05 --- /dev/null +++ b/latex/cards/clone!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Clone!} +\cardbuycost{7} +\cardcontent{Copy next card you play} +\cardplaycost{3} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/defense!.tex b/latex/cards/defense!.tex new file mode 100644 index 00000000..8538f6e2 --- /dev/null +++ b/latex/cards/defense!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Defense!} +\cardbuycost{5} +\cardcontent{Two units gain +1 Armor until end of turn} +\cardplaycost{3} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/die!.tex b/latex/cards/die!.tex new file mode 100644 index 00000000..bd3acaf7 --- /dev/null +++ b/latex/cards/die!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Die!} +\cardbuycost{10} +\cardcontent{Destroy target Unit.} +\cardplaycost{6} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/equipments.tex b/latex/cards/equipments.tex new file mode 100644 index 00000000..f070edcb --- /dev/null +++ b/latex/cards/equipments.tex @@ -0,0 +1,45 @@ +\documentclass[a4paper,landscape]{article} + +% Ränder des Dokuments anpassen +\usepackage[margin=6mm,top=5mm]{geometry} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\usepackage{standalone} + +\begin{document} +\begin{center} +\pagestyle{empty} +\input{cards/armor.tex} +\hspace{5mm} +\input{cards/relic.tex} +\hspace{5mm} +\input{cards/banner.tex} +\hspace{5mm} +\input{cards/gear.tex} +\vspace{5mm} + +\input{cards/poisoned_dagger.tex} +\hspace{5mm} +\input{cards/mace.tex} +\hspace{5mm} +\input{cards/plate_armor.tex} +\hspace{5mm} +\input{cards/cloak.tex} +\vspace{5mm} + +\input{cards/spear.tex} +\hspace{5mm} +\input{cards/smith.tex} +\hspace{5mm} +\input{cards/shatter.tex} +\hspace{5mm} + +\end{center} +\end{document} + diff --git a/latex/cards/gear.tex b/latex/cards/gear.tex new file mode 100644 index 00000000..5bfdcfc6 --- /dev/null +++ b/latex/cards/gear.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Gear} +\cardbuycost{2} +\cardsplitcontent{Durability: 3}{equipped unit gain +1 movement}\cardplaycost{3} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/great_sword.tex b/latex/cards/great_sword.tex new file mode 100644 index 00000000..4ad236bd --- /dev/null +++ b/latex/cards/great_sword.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Great Sword} +\cardbuycost{10} +\cardsplitcontent{Durability: 3}{equipped unit gains +2 Melee Damage}\cardplaycost{4} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/heal!.tex b/latex/cards/heal!.tex new file mode 100644 index 00000000..1da2b5da --- /dev/null +++ b/latex/cards/heal!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Heal!} +\cardbuycost{5} +\cardcontent{One unit gains 1 Health} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/isolate!.tex b/latex/cards/isolate!.tex new file mode 100644 index 00000000..e5168204 --- /dev/null +++ b/latex/cards/isolate!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Isolate!} +\cardbuycost{5} +\cardcontent{Target unit can not receive or deal damage this turn} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/knight.tex b/latex/cards/knight.tex new file mode 100644 index 00000000..7d468c8c --- /dev/null +++ b/latex/cards/knight.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Knight} +\cardbuycost{7} +\cardsplitcontent{Health: 2\\ Movement: 2\\ Attack: 2}{Effect: + 1 armor} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/mace.tex b/latex/cards/mace.tex new file mode 100644 index 00000000..400e62b8 --- /dev/null +++ b/latex/cards/mace.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Mace} +\cardbuycost{2} +\cardsplitcontent{Durability: 3}{equipped unit afflicts Paralysis when dealing damage in melee combat}\cardplaycost{6} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/mine!.tex b/latex/cards/mine!.tex new file mode 100644 index 00000000..9663b6a4 --- /dev/null +++ b/latex/cards/mine!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Mine!} +\cardbuycost{5} +\cardcontent{Steal 2 resource from opponent} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/missionary.tex b/latex/cards/missionary.tex new file mode 100644 index 00000000..b961c5d8 --- /dev/null +++ b/latex/cards/missionary.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Missionary} +\cardbuycost{10} +\cardsplitcontent{Health: 1\\ Movement: 2}{\faRotateRight: put two faith counters on target Unit. If there are more faith counters than the units buying cost you control target unit.} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/more!.tex b/latex/cards/more!.tex new file mode 100644 index 00000000..10a7b9a7 --- /dev/null +++ b/latex/cards/more!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{More!} +\cardbuycost{5} +\cardcontent{Draw two cards} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/move!.tex b/latex/cards/move!.tex new file mode 100644 index 00000000..ed265241 --- /dev/null +++ b/latex/cards/move!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Move!} +\cardbuycost{5} +\cardcontent{Move target unit} +\cardplaycost{3} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/no!.tex b/latex/cards/no!.tex new file mode 100644 index 00000000..1b0f75f0 --- /dev/null +++ b/latex/cards/no!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{No!} +\cardbuycost{5} +\cardcontent{Counter target spell.} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/pikeman.tex b/latex/cards/pikeman.tex new file mode 100644 index 00000000..f1e2be30 --- /dev/null +++ b/latex/cards/pikeman.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Pikeman} +\cardbuycost{5} +\cardsplitcontent{Health: 2\\ Movement: 1\\ Attack: 1}{Effect: Range 2 against Units with Movement >= 3} +\cardplaycost{1} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/pioneer.tex b/latex/cards/pioneer.tex new file mode 100644 index 00000000..e6b30a98 --- /dev/null +++ b/latex/cards/pioneer.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Pioneer} +\cardbuycost{7} +\cardsplitcontent{Health: 5\\ Movement: 1}{\faRotateRight: Neutralize adjacent tile} +\cardplaycost{1} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/plate_armor.tex b/latex/cards/plate_armor.tex new file mode 100644 index 00000000..9431b7bc --- /dev/null +++ b/latex/cards/plate_armor.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Plate Armor} +\cardbuycost{8} +\cardsplitcontent{Durability: 1}{equiped unit has +2 Armor and can't move}\cardplaycost{3} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/poisoned_dagger.tex b/latex/cards/poisoned_dagger.tex new file mode 100644 index 00000000..2edcdeea --- /dev/null +++ b/latex/cards/poisoned_dagger.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Poisoned Dagger} +\cardbuycost{3} +\cardsplitcontent{Durability: 2}{equipped unit deals damage as poison counters in melee combat}\cardplaycost{7} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/recruiter.tex b/latex/cards/recruiter.tex new file mode 100644 index 00000000..d5e0eea1 --- /dev/null +++ b/latex/cards/recruiter.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Recruiter} +\cardbuycost{10} +\cardcontent{Health: 2\\ Movement: 2\\ Attack: 1} +\cardplaycost{1} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/relic.tex b/latex/cards/relic.tex new file mode 100644 index 00000000..b42bd32f --- /dev/null +++ b/latex/cards/relic.tex @@ -0,0 +1,21 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeArtifact +\cardtitle{Relic} +\cardbuycost{3} +\cardcontent{In your upkeep the player controlling the most units in range 1 gains 1 resource. On ties all tied players gain 1 resource.} +\cardplaycost{7} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/ritual!.tex b/latex/cards/ritual!.tex new file mode 100644 index 00000000..a914d33a --- /dev/null +++ b/latex/cards/ritual!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Ritual!} +\cardbuycost{7} +\cardcontent{Gain 3 Ressource} +\cardplaycost{1} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/rush.tex b/latex/cards/rush.tex new file mode 100644 index 00000000..6eefb59c --- /dev/null +++ b/latex/cards/rush.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Rush} +\cardbuycost{5} +\cardcontent{one unit gains +4 Movement until end of turn} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/select!.tex b/latex/cards/select!.tex new file mode 100644 index 00000000..518ea60a --- /dev/null +++ b/latex/cards/select!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Select!} +\cardbuycost{7} +\cardcontent{Scry 1. Draw 1} +\cardplaycost{1} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/shatter.tex b/latex/cards/shatter.tex new file mode 100644 index 00000000..d797a65b --- /dev/null +++ b/latex/cards/shatter.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Shatter} +\cardbuycost{5} +\cardcontent{Destroy target artifact with buy = X} +\cardplaycost{X} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/shield.tex b/latex/cards/shield.tex new file mode 100644 index 00000000..1d0206a7 --- /dev/null +++ b/latex/cards/shield.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Shield} +\cardbuycost{5} +\cardsplitcontent{Durability: 3}{equipped unit gains +1 Health}\cardplaycost{1} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/shroud!.tex b/latex/cards/shroud!.tex new file mode 100644 index 00000000..26751298 --- /dev/null +++ b/latex/cards/shroud!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Shroud!} +\cardbuycost{5} +\cardcontent{Target unit can not be targeted this turn} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/smith.tex b/latex/cards/smith.tex new file mode 100644 index 00000000..251fd710 --- /dev/null +++ b/latex/cards/smith.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Smith} +\cardbuycost{10} +\cardsplitcontent{Health: 1\\ Movement: 1}{\faRotateRight: Pay X: Create Copy of artifact with buy cost = X in range 1 on empty tile in range 1} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/spear.tex b/latex/cards/spear.tex new file mode 100644 index 00000000..60244936 --- /dev/null +++ b/latex/cards/spear.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Spear} +\cardbuycost{2} +\cardsplitcontent{Durability: 3}{Equipped unit gains +1 Attack and Range 2 against unit with M >= 3}\cardplaycost{7} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/stumble!.tex b/latex/cards/stumble!.tex new file mode 100644 index 00000000..6f297c90 --- /dev/null +++ b/latex/cards/stumble!.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeSpell +\cardtitle{Stumble!} +\cardbuycost{5} +\cardcontent{Target unit can not move or attack this turn} +\cardplaycost{2} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/sword.tex b/latex/cards/sword.tex new file mode 100644 index 00000000..24687043 --- /dev/null +++ b/latex/cards/sword.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Sword} +\cardbuycost{5} +\cardsplitcontent{Durability: 3}{equipped unit gains +1 Melee Damage}\cardplaycost{2} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/tax_collector.tex b/latex/cards/tax_collector.tex new file mode 100644 index 00000000..9b5d9319 --- /dev/null +++ b/latex/cards/tax_collector.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeUnit +\cardtitle{Tax Collector} +\cardbuycost{5} +\cardsplitcontent{Health: 1\\ Movement: 2}{\faRotateRight: get 2 additional ressource} +\cardplaycost{1} +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/cards/tower_shield.tex b/latex/cards/tower_shield.tex new file mode 100644 index 00000000..cc566a9b --- /dev/null +++ b/latex/cards/tower_shield.tex @@ -0,0 +1,20 @@ +\documentclass[]{standalone} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\begin{document} +\begin{tikzpicture} +\cardtypeEquipment +\cardtitle{Tower Shield} +\cardbuycost{7} +\cardsplitcontent{Durability: 3}{Equipped unit has +2 Health}\cardplaycost{2} + +\cardborder +\end{tikzpicture} +\end{document} + diff --git a/latex/colors.tex b/latex/colors.tex new file mode 100644 index 00000000..5166dda9 --- /dev/null +++ b/latex/colors.tex @@ -0,0 +1,18 @@ +% FARBEN DER ELEMENTE/BESTANDTEILE DER KARTEN +% ----------------------------------------- + +% Hintergrundfarbe für den Titel-Kasten +\definecolor{titlebg}{RGB}{30,30,30} + +% Farben der "Fähnchen" zur Kennzeichnung der unterschiedlichen Kartentypen +\definecolor{unitbg}{RGB}{0,100,200} +\definecolor{spellbg}{RGB}{80,180,0} +\definecolor{artifactbg}{RGB}{200,50,50} +\definecolor{equipmentbg}{RGB}{180,50,150} + +% Farbe des "Fähnchens" zur Angabe des Preises der Karten +\definecolor{pricebg}{RGB}{230,180,0} + +% Hintergrundfarbe für den Textbereich +%\definecolor{content}{RGB}{250,250,245} +\definecolor{contentbg}{RGB}{255,255,255} diff --git a/latex/equipments.tex b/latex/equipments.tex new file mode 100644 index 00000000..f070edcb --- /dev/null +++ b/latex/equipments.tex @@ -0,0 +1,45 @@ +\documentclass[a4paper,landscape]{article} + +% Ränder des Dokuments anpassen +\usepackage[margin=6mm,top=5mm]{geometry} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\usepackage{standalone} + +\begin{document} +\begin{center} +\pagestyle{empty} +\input{cards/armor.tex} +\hspace{5mm} +\input{cards/relic.tex} +\hspace{5mm} +\input{cards/banner.tex} +\hspace{5mm} +\input{cards/gear.tex} +\vspace{5mm} + +\input{cards/poisoned_dagger.tex} +\hspace{5mm} +\input{cards/mace.tex} +\hspace{5mm} +\input{cards/plate_armor.tex} +\hspace{5mm} +\input{cards/cloak.tex} +\vspace{5mm} + +\input{cards/spear.tex} +\hspace{5mm} +\input{cards/smith.tex} +\hspace{5mm} +\input{cards/shatter.tex} +\hspace{5mm} + +\end{center} +\end{document} + diff --git a/latex/libs.tex b/latex/libs.tex new file mode 100644 index 00000000..93717882 --- /dev/null +++ b/latex/libs.tex @@ -0,0 +1,39 @@ +% VORAUSGESETZTE LIBS +% ------------------ +% Schriftart der auf den Karten eingesetzten Texte + +\usepackage{anttor} + +% UTF-8 Encoding der TeX-Dateien +\usepackage[utf8]{inputenc} + +\usepackage{fontspec} + +% deutsches Sprachpaket +\usepackage[german]{babel} + +% optischer Randausgleich +\usepackage{microtype} + +% Einbinden von Grafiken +\usepackage{graphicx} + +% Definieren und Verwenden von Farben +\usepackage{color} + +% TikZ zum "Malen" von Grafiken, in diesem Falle für die Karten +\usepackage{tikz} +\usetikzlibrary{patterns} +\usetikzlibrary{shadows} + +\usepackage{amssymb} % Rsh + +% Symbole dazuladen; Verwendung \ding{<nummer>} +\usepackage{pifont} +% weitere Symbole +\usepackage{fourier-orns} +% bolt +\usepackage{fontawesome} + +\usepackage{skak} + diff --git a/latex/magic.tex b/latex/magic.tex new file mode 100644 index 00000000..f139d962 --- /dev/null +++ b/latex/magic.tex @@ -0,0 +1,57 @@ +\documentclass[a4paper,landscape]{article} + +% Ränder des Dokuments anpassen +\usepackage[margin=6mm,top=5mm]{geometry} + +% Pakete dazuladen +\input{libs.tex} +% Farbdefinitionen laden +\input{colors.tex} +% \card-Commands laden +\input{tikzcards.tex} + +\usepackage{standalone} + +\begin{document} +\begin{center} +\pagestyle{empty} +\input{cards/defense!.tex} +\hspace{5mm} +\input{cards/heal!.tex} +\hspace{5mm} +\input{cards/charge.tex} +\hspace{5mm} +\input{cards/rush.tex} +\vspace{5mm} + +\input{cards/attack!.tex} +\hspace{5mm} +\input{cards/move!.tex} +\hspace{5mm} +\input{cards/stumble!.tex} +\hspace{5mm} +\input{cards/more!.tex} +\vspace{5mm} + +\input{cards/select!.tex} +\hspace{5mm} +\input{cards/die!.tex} +\hspace{5mm} +\input{cards/clone!.tex} +\hspace{5mm} +\input{cards/no!.tex} +\vspace{5mm} + +\input{cards/mine!.tex} +\hspace{5mm} +\input{cards/isolate!.tex} +\hspace{5mm} +\input{cards/shroud!.tex} +\hspace{5mm} +\input{cards/ritual!.tex} +\vspace{5mm} + + +\end{center} +\end{document} + diff --git a/latex/tikzcards.tex b/latex/tikzcards.tex new file mode 100644 index 00000000..21cd261b --- /dev/null +++ b/latex/tikzcards.tex @@ -0,0 +1,148 @@ +% COMMANDS ZUM ZUSAMMENBAUEN DER KARTEN +% --------------------------------------- + +% TikZ/PGF Settings für die Karten +\pgfmathsetmacro{\cardwidth}{6} +\pgfmathsetmacro{\cardheight}{9} +\pgfmathsetmacro{\imagewidth}{\cardwidth} +\pgfmathsetmacro{\imageheight}{0.75*\cardheight} +\pgfmathsetmacro{\stripwidth}{0.7} +\pgfmathsetmacro{\strippadding}{0.2} +\pgfmathsetmacro{\textpadding}{0.1} +\pgfmathsetmacro{\titley}{\cardheight-\strippadding-1.5*\textpadding-0.5*\stripwidth} + + +% Formen der einzelnen Kartenelemente/-bestandteile +\def\shapeCard{(0,0) rectangle (\cardwidth,\cardheight)} +\def\shapeLeftStripLong{(\strippadding,-0.2) rectangle (\strippadding+\stripwidth,\cardheight-\strippadding-\strippadding-1)} +\def\shapeLeftStripShort{(\strippadding,\cardheight-\strippadding-1) rectangle (\strippadding+\stripwidth,\cardheight+0.2)} +\def\shapeRightStripShortHigh{(\cardwidth-\stripwidth-\strippadding,\cardheight-\strippadding-1) rectangle (\cardwidth-\strippadding,\cardheight+0.2)} +\def\shapeRightStripShortLow{(\cardwidth-\stripwidth-\strippadding,-0.2) rectangle (\cardwidth-\strippadding,1)} +\def\shapeTitleArea{(2*\strippadding+\stripwidth,\cardheight-\strippadding) rectangle (\cardwidth-2*\strippadding-\stripwidth,\cardheight-2*\stripwidth)} +\def\shapeContentArea{(2*\strippadding+\stripwidth,0.5*\cardheight) rectangle (\cardwidth+0.2,-0.2)} + + +% Stylings für die Elemente definieren +\tikzset{ + % runde Ecken für die Karten + cardcorners/.style={rounded corners=0.2cm},% + % runde Ecken für die "Fähnchen" + elementcorners/.style={rounded corners=0.1cm},% + % Schlagschatten für die "Fähnchen" + % stripshadow/.style={drop shadow={opacity=.5, shadow xshift=0, color=black}},% + % stripshadow/.style={drop shadow},% + % Style für die "Fähnchen" + % strip/.style={elementcorners, stripshadow},% + strip/.style={elementcorners},% + % Bild für das Kartenmotiv + cardimage/.style={% + path picture={% + \node[below=-1.5mm] at (0.5*\cardwidth,\cardheight) {% + \includegraphics[width=\imagewidth cm]{#1}% + }; + }% + },% +} + +% TikZ-Raster +\newcommand{\carddebug}{ + \draw [step=1,help lines] (0,0) grid (\cardwidth,\cardheight); +} + +% Rahmen der Karte +\newcommand{\cardborder}{ + \draw[lightgray,cardcorners] \shapeCard; +} + +% Hintergrund der Karte +\newcommand{\cardbackground}[1]{ + \draw[cardcorners, cardimage=#1] \shapeCard; +} + +% Kategorie der Karte +\newcommand{\cardtype}[3]{ + % First we fill the intersecting area + % The \clip command does not allow options, therefore + % we have to use a scope to set the even odd rule. + \begin{scope}[even odd rule] + % Define a clipping path. All paths outside shapeCard will + % be cut because the even odd rule is set. + \clip[cardcorners] \shapeCard; + % Fill shapeLeftStripLong and shapeLeftStripShort. + % Since the even odd rule is set, only the card will be filled. + \fill[strip,#1] \shapeLeftStripLong node[rotate=90,above left=0.9mm,font=\normalsize] { + \color{white}\uppercase{#2} + }; + \fill[strip,#1] \shapeLeftStripShort; + \end{scope} + + \node at (\strippadding+\stripwidth-0.28,\cardheight-\strippadding-\strippadding-0.37) {\color{white}#3}; +} +\newcommand{\cardtypeUnit}{\cardtype{unitbg}{Unit}{\hspace{-1mm}\LARGE\sympawn}} +\newcommand{\cardtypeSpell}{\cardtype{spellbg}{Spell}{\hspace{-1mm}\Large\faBolt}} +\newcommand{\cardtypeArtifact}{\cardtype{artifactbg}{Artifact}{\hspace{-1mm}\LARGE\decoone}} +\newcommand{\cardtypeEquipment}{\cardtype{equipmentbg}{Equipment}{\hspace{-1.4mm}\huge\dag}} + +% Titel der Karte +\newcommand{\cardtitle}[1]{ + %\draw[pattern=soft crosshatch,rounded corners=0.1cm] \shapeTitleArea; + \fill[elementcorners,titlebg,opacity=.85] \shapeTitleArea; + \node[text width=3.75cm] at (0.5*\cardwidth,\titley) { + \begin{center} + \color{white}\uppercase{\normalsize #1} + \end{center} + }; +} + +% Inhalt der Karte +\newcommand{\cardsplitcontent}[2]{ + \begin{scope}[even odd rule] + \clip[cardcorners] \shapeCard; + \fill[elementcorners,contentbg] \shapeContentArea; + \end{scope} + \node[below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 0.5*\cardheight-\textpadding) { + \textit{\normalsize #1} + }; + \node[below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 3.2) { + \vrule width \textwidth height 2pt \\[-2pt] + \vspace{0.2cm} + {\normalsize #2} + }; +} + +% Inhalt der Karte +\newcommand{\cardcontent}[1]{ + \begin{scope}[even odd rule] + \clip[cardcorners] \shapeCard; + \fill[elementcorners,contentbg] \shapeContentArea; + \end{scope} + \node[below right, text width=(\cardwidth-2*\strippadding-\stripwidth-2*\textpadding-0.3)*1cm] at (2*\strippadding+\stripwidth+\textpadding, 3) { + \textit{\normalsize #1} + }; +} + +% Buying cost +\newcommand{\cardbuycost}[1]{ + \begin{scope}[even odd rule] + \clip[cardcorners] \shapeCard; + \fill[strip,pricebg] \shapeRightStripShortHigh; + \end{scope} + \node at (\cardwidth-0.5*\stripwidth-\strippadding,\titley-0.1) {\color{black}#1}; +} + +% Playing cost +\newcommand{\cardplaycost}[1]{ + \begin{scope}[even odd rule] + \clip[cardcorners] \shapeCard; + \fill[strip,pricebg] \shapeRightStripShortLow; + \end{scope} + \node at (\cardwidth-0.5*\stripwidth-\strippadding,\strippadding+\strippadding) {\color{black}#1}; +} + +% Module containing the card +\newcommand{\cardmodule}[1]{ + \begin{scope}[even odd rule] + \clip[cardcorners] \shapeCard; + \end{scope} + \node[rotate=90] at (\strippadding+\stripwidth-0.37,\strippadding+\strippadding+0.2) {\color{black}#1}; +} |
