-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_fs.py
54 lines (47 loc) · 1.56 KB
/
test_fs.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
# -------------------
__author__ ='Fabian Stange'
# ---- ---- import libraries ---- ----
# ---- ---- ---- ----
# ---- ---- global variables ---- ----
import Modul.classes.environment as environment
import Modul.classes.player as player
from Modul.loader import saveTile,resetSaveGame,savePlayer
# ---- ---- ---- ----
#saveTile(None,'0_0',1)
choice = input('yes or no')
if choice == 'yes':
resetSaveGame(1)
resetSaveGame(2)
resetSaveGame(3)
resetSaveGame(4)
else:
list_player = [
1,
'fabian',
'male',
'Mercenary',
]
active_player = player.Player(list_player)
active_player.getBigTileName()
print(active_player.getActiveTile())
print(active_player.getBigTileName())
print(active_player.getSmallTileName())
print(active_player.listSmallTiles())
#active_player.initializePlayer(1)
print(active_player.getCoordinates())
print(active_player.getName(),active_player.getSavegame(),active_player.getSex(),active_player.getCharClass(),active_player.getItemsName())
print(active_player.listHealth())
active_player.treatHealth(1,[10,active_player.getMaxHealth()])
print(active_player.listHealth())
print(active_player.listMana())
print(active_player.goEast())
print(active_player.getCoordinates())
for i in range(90):
active_player.goNorth()
active_player.getBigTileName()
print(active_player.getCoordinates())
print('END')
savePlayer(active_player,1)
print('Hallooo')
active_player.saveQuitTile()
# ---- ---- code // ---- ----