Commit Graph

19 Commits

Author SHA1 Message Date
Trobax
b05de45437 improve the if statement
improve the If statement to a switch
2022-11-23 18:15:37 +01:00
Trobax
e04bd79518 create Conjured class
create conjured class implement StorageItem methods

move declaration to each class

create test cases for conjured methods
2022-11-23 18:12:12 +01:00
Trobax
284a01fac5 create Sulfuras subclass
create sulfuras subclass and override StorageItem methodes
2022-11-23 17:51:26 +01:00
Trobax
025c3e4a9a create backstage Passes class
Override the methods from StorageItem to the sub class backstage Passes
2022-11-23 17:48:06 +01:00
Trobax
77fca57da8 create subclass for AgedBrie
creating AgedBrie class to implement the methhods for each type alone
2022-11-23 17:43:24 +01:00
Trobax
4fa88bab43 update StorageItem
remove Item item due to item is a field in this class
2022-11-23 17:33:59 +01:00
Trobax
fa31f828a1 move methods to StorageItem
moving the methods from GildedRose to Storage item for a polimorfizm solution
2022-11-23 17:27:37 +01:00
Trobax
4e692bf70e add new class
add new class to start wrapping all the methods
2022-11-23 17:17:42 +01:00
Trobax
0d3aefb6c8 update updateExpired method
update updateExpired method to process Aged Brie then Backstage passes then Sulfuras then all the rest items

also refactoring increase and decease quality methods to prevent duplication code and for easy maintain
2022-11-23 17:14:08 +01:00
Trobax
e0c5b8b5bd update updateQuality method
update updateQuality method to process each item individually Aged Brie then Backstage passes then Sulfuras then the rest of items
2022-11-23 17:04:15 +01:00
Trobax
bdcd441019 invert if condition
invert if condition to simplify the code
2022-11-23 16:54:56 +01:00
Trobax
7422960de8 breaking down more scopes
breaking down the Gilded Rose class to several methods for a better approach
2022-11-23 16:52:22 +01:00
Trobax
aefb4310a9 break down the method
breaking down the method updateQuality for to various scopes as a refactoring
2022-11-23 16:46:46 +01:00
Trobax
1302ae4686 update item quality
updating the ite.quality affectation
2022-11-23 16:41:27 +01:00
Trobax
013c72196b update gildedRose
enhanced the for loop for reading the code more effecient
2022-11-23 15:56:19 +01:00
Ton van Bart
5605173439 reverted GildedRose to original code 2017-01-11 21:32:08 +01:00
Ton van Bart
d4b3a30334 delete package with weird name 2017-01-09 22:31:26 +01:00
Ton van Bart
40e7ea75c6 fixed directory structure 2016-12-01 09:45:34 +01:00
Ton van Bart
3289182cef reorganized to Maven project structure 2016-11-29 12:36:54 +01:00