roguelike-tutorial icon indicating copy to clipboard operation
roguelike-tutorial copied to clipboard

Try to special-case the player less

Open tomassedovic opened this issue 7 years ago • 0 comments

There's a few places that become unnecessarily complicated by treating the player Object differently to the other ones. For example:

  • inventory and equipment: https://github.com/tomassedovic/roguelike-tutorial/blob/11e50b1939b101a0adffa4e4c6fef957a20f593f/src/bin/part-13-adventure-gear.rs#L291
  • https://github.com/tomassedovic/roguelike-tutorial/blob/11e50b1939b101a0adffa4e4c6fef957a20f593f/src/bin/part-13-adventure-gear.rs#L677

tomassedovic avatar Sep 07 '16 21:09 tomassedovic