QImage picture()

in coinrun/coinrun.cpp [1381:1393]


  QImage picture(PlayerTheme *theme) const
  {
    if (ladder_mode)
      return (time_alive / 5 % 2 == 0) ? theme->climb1 : theme->climb2;
    if (vy != 0)
      return theme->jump;
    if (spring != 0)
      return theme->duck;
    if (vx == 0)
      return theme->stand;

    return (time_alive / 5 % 2 == 0) ? theme->walk1 : theme->walk2;
  }