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