forked from IreneeMichel/MagicCardBattle
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CoutCartesMonstres.py
72 lines (63 loc) · 1.69 KB
/
CoutCartesMonstres.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import os
os.chdir(os.path.dirname(os.path.realpath(__file__)))
#import sys
#sys.path.append('MagicCardBattle')
#from math import floor
#import re
#import pickle
#import shutil
#UP=re.compile('(?=[A-Z])')
#---------------------------
from Card import Card
#from Spell import
#from cardPowers import *
#possibleAsTarget=[Personne]
# target
#--------------------------
#----------------------------
#for p in possibleAsBonus :
# #permet d utiliser "provocation" plutot que "Provocation()"
# if not p.isTrigger and not p.hasTarget :
# exec(p.__name__.lower()+"="+p.__name__+"()")
#--------------------------
"""
troll=Card("Troll gris",4,4)
troll.getCost()
troll2=Card("Troll rouge",4,4)
troll2.addBonus(Provocation())
troll2.getCost()
gob=Card("Goblin guerrisseur",2,2)
gob.addBonus(CriDeGuerre(Guerrison(4)))
gob.getCost()
"""
#------------------------------------------
from Tkinter import Tk
def run():
fenetre = Tk()
fenetre['bg']='white'
fenetre.title("Creation de Monstre")
monster=Card("mouton",1,1)
monster.photofile='./photo/mouton.jpg'
monster.initWidget(fenetre)
fenetre.mainloop()
#fenetre.destroy()
if __name__ == "__main__":
run()
#import os
# import pickle
# #os.chdir('C:\\Users\enfants\Documents\MagicCardBattle')
# import glob
#
#
#
#
# with open( "CardFiles/all_monsters.sav", "rb") as f:
# monsters = pickle.load( f)
#
#
#hum={}
#for n,m in monsters.items() :
# if "human" in m.dumping_file :
# m.dumping_file="CardFiles/human_monsters.sav"
# hum[n]=m
#pickle.dump(hum,open( "CardFiles/human_monsters.sav","wb"))