예제 #1
0

def charGenRollForStats ():
    """Roll for player stats and display them"""
    global Player
    Player.generate()
    Player.showInfo()


Player = Character.CharClass()
Arena = BattleField.BattleFieldClass(Player)
NewWorld = World.WorldClass()
NewCell1 = World.CellClass()
NewCell2 = World.CellClass()

ToCell1 = World.CellExitClass()
ToCell1.Name = "To Cell 1"
ToCell1.Cell = NewCell1

ToCell2 = World.CellExitClass()
ToCell2.Name = "To Cell 2"
ToCell2.Cell = NewCell2

NewCell1.Name = "Cell 1"
NewCell1.Exits = [ToCell2]

NewCell2.Name = "Cell 2"
NewCell2.Exits = [ToCell1]

NewCell1.Chars.append(Player)
NewWorld.Cells = [NewCell1, NewCell2]