当前位置: 首页>>代码示例>>Python>>正文


Python Move.last方法代码示例

本文整理汇总了Python中models.Move.last方法的典型用法代码示例。如果您正苦于以下问题:Python Move.last方法的具体用法?Python Move.last怎么用?Python Move.last使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在models.Move的用法示例。


在下文中一共展示了Move.last方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: generateMoves

# 需要导入模块: from models import Move [as 别名]
# 或者: from models.Move import last [as 别名]

#.........这里部分代码省略.........
            extended_time=Move.reDifficultyTimes([35, 50], 10, difficulty))
    movesGraph['savasana'] = Move("Savasana", 0, "Sahvahsahnah", 30, None)
    movesGraph['star'] = Move('Star Pose', 0, "Star Pose", 8, movesGraph['mountain'], *movesGraph['warrior1'])
    movesGraph['goddessSquat'] = Move('Goddess Squat', 0, "Goddess Squat", 5, movesGraph['star'])
    movesGraph['supportedHeadstand'] = Move('Supported Headstand', 0, "Supported Headstand", 30, movesGraph['child'])
    movesGraph['pigeon'] = Move.twoSides('Pigeon Pose', "Pigeon Pose, %(same)s side", 30, movesGraph['vinyasa'])
    movesGraph['kingPigeon'] = Move.twoSides('King Pigeon', "King Pigeon, %(same)s side", 15, movesGraph['vinyasa'])
    movesGraph['birdOfParadise'] = Move.twoSides('Bird of Paradise', 'Bird of Paradise', 30)
    movesGraph['boundHalfMoon'] = Move.twoSides('Bound Half Moon', 'Bound Half Moon', 30, lateMove=set([movesGraph['vinyasa']]))
    movesGraph['boundRevolvedHalfMoon'] = Move.twoSides('Bound Revolved Half Moon', 'Bound Revolved Half Moon', 30, lateMove=set([movesGraph['vinyasa']]))
    movesGraph['handstandHops'] = Move('Handstand Hops', 0, "Handstand Hops", 30, movesGraph['vinyasa'])
    movesGraph['twoLeggedDog'] = Move.twoSides('Two Legged Dog', "Now raise your %(other)s hand. Hold", 20, lateMove=set([movesGraph['vinyasa']]))
    movesGraph['flippedDog'] = Move.twoSides('Flipped Dog', "Flipped Dog, %(same)s side", 20, lateMove=set([movesGraph['downwardDog']]))
    movesGraph['feetUpAWall'] = Move("Feet Up A Wall", 0, "Feet Up A Wall", 4, movesGraph['lowBoat'], movesGraph['boat'], movesGraph['staff'], movesGraph['lieOnBack'], extended_time=[15,30])
    movesGraph['hero'] = Move("Hero Pose", 0, "Tuck both feet under your glutes. Lean back as far as possible. Hero Pose", 20, movesGraph['seatedMeditation'])
    movesGraph['deepSquat'] = Move("Deep Squat", 0, "Squat as deeply as you can", 30, movesGraph['vinyasa'], movesGraph['chair'], lateMove=set([movesGraph['crow']]))
    movesGraph['frog'] = Move("Frog Pose", 0, "Frog Pose", 30, movesGraph['seatedMeditation'], movesGraph['vinyasa'])
    movesGraph['cowFace'] = Move.twoSides('Cow-Facing Pose', 'Cow-Facing Pose', 30, movesGraph['seatedMeditation'], movesGraph['child']) #TODO: more useful instructions

    #Begin linking moves to each other
    movesGraph['wideLegStance'].addMove(movesGraph['mountain'], movesGraph['star'], movesGraph['wideLegForwardFold'], *movesGraph['warrior2'])
    movesGraph['wheelPushup'].addMove(movesGraph['lieOnBack'])
    if difficulty >= 0:
        movesGraph['wideLegStance'].addLateMove(movesGraph['armPressurePose'], *movesGraph['cresent'])
    if difficulty >= 1:
        movesGraph['wheel'].addLateMove(movesGraph['wheelPushup'])
    movesGraph['vinyasa'].addMove(movesGraph['downwardDog'])
    movesGraph['table'].addMove(*movesGraph['threadTheNeedle'])
    movesGraph['catCow'].addMove(movesGraph['table'])
    movesGraph['mountain'].addMove(movesGraph['forwardFold'], movesGraph['chair'], *movesGraph['standingTwist'])
    movesGraph['mountain'].addMove(*movesGraph['standingSideStretch'])
    movesGraph['mountain'].addMove(*movesGraph['standingTwist'])
    if difficulty >= 0:
        movesGraph['mountain'].last = movesGraph['chair']
        movesGraph['mountain'].addLateMove(*movesGraph['dancer'])
    movesGraph['backBend'].addMove(movesGraph['mountain'], movesGraph['forwardFold'], *movesGraph['standingSideStretch'])
    movesGraph['staff'].addMove(movesGraph['lieOnBack'], movesGraph['butterflyStretch'], movesGraph['camel'], movesGraph['seatedMeditation'])
    if difficulty >= 0:
        movesGraph['staff'].addMove(movesGraph['boat'])
        movesGraph['staff'].addLateMove(movesGraph['yogaBicycles'], movesGraph['mountain'])
    movesGraph['downwardDog'].addMove(movesGraph['plank'])
    if difficulty >= 1:
        movesGraph['downwardDog'].addLateMove(movesGraph['lowPlank'])
    movesGraph['flatBack'].addMove(movesGraph['forwardFold'])
    movesGraph['flatBack'].addLateMove(movesGraph['chair'], movesGraph['deepSquat'])
    if difficulty >= 2:
        movesGraph['flatBack'].addLateMove(movesGraph['handstandHops'])
    movesGraph['lieOnBack'].addMove(movesGraph['seatedMeditation'], movesGraph['feetUpAWall'],*movesGraph['spinalTwist'])
    movesGraph['lieOnBack'].addLateMove(movesGraph['lieOnFront'])
    if difficulty >= 0:
        movesGraph['lieOnBack'].addLateMove(movesGraph['wheel'])
    movesGraph['plow'].addMove(movesGraph['fish'])
    if difficulty >= 0:
        movesGraph['fish'].addMove(movesGraph['upwardPlank'])
    movesGraph['upwardPlank'].addMove(movesGraph['lieOnBack'])
    if difficulty >= 1:
        movesGraph['upwardPlank'].addLateMove(*movesGraph['upwardPlankLiftedLeg'])
    movesGraph['supportedShoulderStand'].addMove(movesGraph['plow'])
    movesGraph['plank'].addMove(movesGraph['vinyasa'], *movesGraph['sidePlank'])
    Move.doubleAdd(movesGraph['oneLeggedPlank'], movesGraph['twoPointPlank'])
    if difficulty >= 1:
        movesGraph['plank'].addMove(*movesGraph['oneLeggedPlank'])
        Move.doubleAdd(movesGraph['oneLeggedPlank'], movesGraph['threeLeggedDog'], late = True)
        Move.doubleAdd(movesGraph['twoPointPlank'], movesGraph['twoLeggedDog'], late=True)
    movesGraph['lowPlank'].addMove(movesGraph['upwardDog'], movesGraph['vinyasa'])
    movesGraph['lowPlank'].addLateMove(movesGraph['plank'])
开发者ID:shulinye,项目名称:yoga,代码行数:70,代码来源:moves.py


注:本文中的models.Move.last方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。