本文整理汇总了Python中position.Position.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Position.__init__方法的具体用法?Python Position.__init__怎么用?Python Position.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类position.Position
的用法示例。
在下文中一共展示了Position.__init__方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from position import Position [as 别名]
# 或者: from position.Position import __init__ [as 别名]
def __init__(self):
Position.__init__(self)
self.rect = None
self.image = None
self.name = None
self.type = None
self.has_dialog = False
示例2: __init__
# 需要导入模块: from position import Position [as 别名]
# 或者: from position.Position import __init__ [as 别名]
def __init__(self, name):
Position.__init__(self)
self.name = name
load_creature(self.name)
self.hp = CREATURES_LOADED[self.name]['hp']
self.mp = CREATURES_LOADED[self.name]['mp']
self.level = CREATURES_LOADED[self.name]['level']
self.attack = CREATURES_LOADED[self.name]['attack']
self.attack_m = CREATURES_LOADED[self.name]['attack_m']
self._class = CREATURES_LOADED[self.name]['_class']
self._def = CREATURES_LOADED[self.name]['_def']
self.def_m = CREATURES_LOADED[self.name]['def_m']
self.selfie = None
示例3: __init__
# 需要导入模块: from position import Position [as 别名]
# 或者: from position.Position import __init__ [as 别名]
def __init__(self, view=None, position=None):
Position.__init__(self)
gobject.GObject.__init__(self)
self.view = view # associated BoardView
self.game = None
self.node = None # the currently active game node
for i in range(64):
self.squares.append("")
if position:
self.set_position(position)
else:
self.setup_starting_pieces()
示例4: __init__
# 需要导入模块: from position import Position [as 别名]
# 或者: from position.Position import __init__ [as 别名]
def __init__(self,latitude,longitude,starting_time,ending_time,label="") :
Position.__init__(self,latitude,longitude)
self.starting_time=starting_time
self.ending_time=ending_time
self.label=label
示例5: __init__
# 需要导入模块: from position import Position [as 别名]
# 或者: from position.Position import __init__ [as 别名]
def __init__(self):
Position.__init__(self)
示例6: __init__
# 需要导入模块: from position import Position [as 别名]
# 或者: from position.Position import __init__ [as 别名]
def __init__(self,datetime,latitude,longitude) :
self.datetime=datetime
Position.__init__(self,latitude,longitude)