示例#1
0
    def setUp(self):
        self.config = WinConfig()
        self.config.width = 100
        self.config.halfWidth = 50
        self.config.height = 26
        self.config.halfHeight = 13

        self.urban1 = UrbanArea(self.config, 17, 0)
        self.urban2 = UrbanArea(self.config, 2, 51)
示例#2
0
    def __init__(self):
        # setup control-c handling to terminate program
        signal.signal(signal.SIGINT, self.signal_handler)

        # init curses
        self.stdscr = curses.initscr()
        curses.noecho()
        curses.cbreak()
        self.stdscr.keypad(True)

        # make getch() non blocking
        self.stdscr.nodelay(1)

        # store window details
        self.config = WinConfig()

        # set window in config class
        self.config.win = self.stdscr
示例#3
0
 def setUp(self):
     self.config = WinConfig()
     self.controller = MenuController(
         Menu(self.config, "test1", "test2", "test3"))
示例#4
0
 def setUp(self):
     self.config = WinConfig()
     self.testLimo = Limo(self.config, (16, 12), '1')
 def setUp(self):
     self.config = WinConfig()
     self.controller = GameController(self.config)
 def setUp(self):
     self.config = WinConfig()
     self.config.width = 100
     self.config.height = 26
     self.divider = TopDivider(self.config)
示例#7
0
 def setUp(self):
     self.router = Router(WinConfig())
 def setUp(self):
     self.config = WinConfig()
     self.scanner = PerimeterEntranceScanner(self.config)
     self.scanner.entrances = [(1, 2), (3, 4), (5, 6)]
     self.controller = LimoController(self.config, self.scanner)
示例#9
0
 def setUp(self):
     self.config = WinConfig()
     self.config.width = 100
     self.urban = UrbanArea(self.config, 15, 10)
示例#10
0
 def setUp(self):
     self.config = WinConfig()
     self.config.win = False
 def setUp(self):
     self.config = WinConfig()
     self.scanner = PerimeterEntranceScanner(self.config)