ParletteSoftware / bitfl

Billy in the Fat Lane
GNU General Public License v3.0
0 stars 0 forks source link

Allow player to apply for a job #28

Closed matthew-parlette closed 11 years ago

matthew-parlette commented 11 years ago

After #27 is done, we need to have a system for having the player apply for a job. For now, as soon as the player applies for the job, they should get the job.

matthew-parlette commented 11 years ago

@cparlette: I'm having trouble with 79a362f14596b88698edc551f9cb4b323f7adc17 to try to sort the list of jobs to apply for by the rank of the job.

I'm trying to handle the sorting of the Menu.options in the JobMenu class, since it is specific only to that menu.

To reproduce:

  1. N for new game
  2. A to add player
  3. S to start game
  4. M to move
  5. B for bank
  6. A to apply for job

The list should be (when it is working properly):

t. Teller m. Manager (Enter to cancel)

cparlette commented 11 years ago

Any reason not to use the job.rank instead of the job.symbol, as in 8911dd14c90d576d1b1052cb671a1914be75e79d ? I know it's not exactly what you were going for, and I don't know if it has other repercussions, but it sorts the list right.

matthew-parlette commented 11 years ago

Perfect solution, thanks for the help

matthew-parlette commented 11 years ago

This is fixed by #48