8 lines
484 B
Markdown
8 lines
484 B
Markdown
|
# Refactors done
|
||
|
|
||
|
- chore: move to package `com.github.dtschust.zork`
|
||
|
- default package is bad
|
||
|
- remove 5 redundant `if` statements from `ZorkCommand`, `ZorkCommandHas`, `ZorkCondtionStatus'
|
||
|
- e.g. `if (blah) return true; else return false;` can be simplified to `return blah;`
|
||
|
- replaced 2 `for` with foreach loops in `ZorkCreature` and `ZorkTrigger`
|
||
|
- 23 use of diamond operator in `Zork`, `ZorkContainer`, `ZorkCreature`, `ZorkItem`, `ZorkObject`, `ZorkRoom`, `ZorkTrigger`
|