示例#1
0
    def __init__(self, slackconnection, botname):
        Bot.__init__(self, slackconnection, botname)

        self.icon_emoji = ':bread:'
        self.destinations = dict() # string => Destination
        self.luncher_index = 0
        self.load()
示例#2
0
 def __init__(self, posX=None, posY=None):
     width = 25
     height = 32
     Bot.__init__(self, posX, posY, "zombie", width, height)
     self.setStep(2)
     hp = 3
     self.health = HealthBot(hp)
示例#3
0
 def __init__(self, posX = None, posY = None):
     width = 25
     height = 32
     Bot.__init__(self, posX, posY, "zombie", width, height)
     self.setStep(2)
     hp = 3
     self.health = HealthBot(hp)
示例#4
0
  def __init__(self,cards, level="advanced",name="j1",allyName="j3",ennemyNames=["j2","j4"]):

    Bot.__init__(self,cards=cards,level=level,name=name,allyName=allyName,ennemyNames=ennemyNames)
    self.previouscounter={} #keep track of the last round
    self.announcetracker={}
    for color in const.liste_couleur :
      self.announcetracker[color]=False
示例#5
0
 def __init__(self, posX, posY):
     width = 40
     height = 40
     Bot.__init__(self, posX, posY, "spider", width, height)
     self.setStep(2)
     hp = 3
     self.health = HealthBot(hp)
示例#6
0
    def __init__(self):
        self.hunger = 0
        self.tiredness = 0
        self.gender = random.choice(["F", "M"])
        self.pregnant = False
        self.movingToFood = False

        Bot.__init__(self, namegen.human(self.gender), 0xBA6C49)

        self.doIn(random.randint(100, 250), "die")
示例#7
0
文件: Human.py 项目: SkylarKelty/AI
	def __init__(self):
		self.hunger = 0
		self.tiredness = 0
		self.gender = random.choice(["F", "M"])
		self.pregnant = False
		self.movingToFood = False

		Bot.__init__(self, namegen.human(self.gender), 0xBA6C49)

		self.doIn(random.randint(100, 250), "die")
示例#8
0
    def __init__(self, slackconnection, botname):
        Bot.__init__(self, slackconnection, botname)

        self.icon_emoji = ":video_game:"
        self.games = []
        self.user_options = defaultdict(set)  # name => set([flag1, flag2...])
        self.history = PS4History(negative_stats=set([Stats.scrub]))
        self.latest_stats_table = defaultdict(
            LatestStats)  # channel => LatestStats
        self.load()
示例#9
0
 def __init__(self, resolution=(1920, 1080)):
     Bot.__init__(self)
     self.name = "fighter_bot"
     print("Created {}".format(self.name))
     self.killed_mobs = 0
     self.total_killed = 0
     self.resolution = resolution
     self.screen_hdl = ImgProcessor(resolution)
     self.hp = 100
     self.mp = 1003
     self.sp = 100
     self.pot_type = 0
     self.pots = ['x', 'z']
示例#10
0
 def __init__(self, slackconnection, botname):
     Bot.__init__(self, slackconnection, botname)
     self.icon_emoji = ':bar_chart:'
     self.reset()
     self.maybe_load()
示例#11
0
 def __init__(self, slackconnection, botname):
     Bot.__init__(self, slackconnection, botname)
     self.icon_emoji = ':triumph:'
示例#12
0
 def __init__(self):
     Bot.__init__(self)
     self.position = (-1,-1)
     self.previous_position = (-1,-1)
     self.area = ones((Configuration.MAX_X_GRID+1, Configuration.MAX_Y_GRID+1), dtype=bool)
示例#13
0
 def __init__(self):
     Bot.__init__(self)
     self.name = "mage_bot"
     self.killed_mobs = 0
     self.total_killed = 0
     print("Created {}".format(self.name))
示例#14
0
 def __init__(self, slackconnection, botname):
     Bot.__init__(self, slackconnection, botname)
示例#15
0
 def __init__(self, filename, server, channel, nick):
     self.grammar = {}
     self.parseGrammar(filename)
     Bot.__init__(self, server, channel, nick)
示例#16
0
 def __init__(self):
     Bot.__init__(self,Constants.PlayerType.USER)
示例#17
0
 def __init__(self, slackconnection, botname):
     Bot.__init__(self, slackconnection, botname)
     self.icon_emoji = ':soccer:'
     self.players = []
     self.load()