示例#1
0
 def __init__(self):
     Base.__init__(self)
     self.level_spawn = 0
     self.player_death_msg = ''
     self.monster_death_msg = ''
     self.name = ''
     self.exp = 0
示例#2
0
    def __init__(self, config_object):
        Base.__init__(self, config_object)

        ips_data = self.config_object.get_node_by_attr("name", "ips")

        self.dockerSubnetIpRange = ips_data.find(
            'dockerSubnetIpRange').text.replace("/", "\/")
示例#3
0
 def __init__(self):
     # starting values
     Base.__init__(self)
     self.max_stats = {'health': 100, 'attack': 10, 'defense': 1, 'mana': 5}
     self.curr_stats = copy.copy(self.max_stats)
     self.skills = [StrongAttack()]
     self.level = 1
     self.to_next_level = 0
示例#4
0
文件: redhat.py 项目: huhe56/verbs
 def __init__(self, hostname, username, password):
     '''
     Constructor
     '''        
     self._hostname = hostname
     self._username = username
     self._password = password
     Base.__init__(self, SSH(hostname, username, password))
     self._eth_if_list = None
示例#5
0
    def __init__(self, config_object):
        Base.__init__(self, config_object)

        ips_data = self.config_object.get_node_by_attr("name", "ips")

        self.serviceClusterIpRange = ips_data.find(
            'serviceClusterIpRange').text.replace("/", "\/")
        self.serviceClusterGatewayIp = ips_data.find(
            'serviceClusterGatewayIp').text
        self.serviceClusterDnsIp = ips_data.find('serviceClusterDnsIp').text
        self.podClusterIpRange = ips_data.find(
            'podClusterIpRange').text.replace("/", "\/")

        node_data = self.node_object.get_node_by_attr("name", "proxy")
        self.proxy_host = node_data.find('hostname').text
        self.proxy_port = node_data.find('port').text
示例#6
0
 def __init__(self, config_object):
     Base.__init__(self, config_object)
示例#7
0
文件: fw.py 项目: huhe56/nj-snic
 def __init__(self, ssh):
     '''
     Constructor
     '''
     Base.__init__(self, ssh)
示例#8
0
文件: map.py 项目: veeneck/Otto
 def __init__(self):
     Base.__init__(self)
示例#9
0
文件: main.py 项目: veeneck/Otto
 def __init__(self):
     Base.__init__(self)
     pygame.init()
     self.screen = pygame.display.set_mode([1024, 768])