mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
Update GildedRose.h
This commit is contained in:
parent
f77520c2b2
commit
d637385c17
@ -9,16 +9,20 @@ public:
|
||||
string name;
|
||||
int sellIn;
|
||||
int quality;
|
||||
Item(string name, int sellIn, int quality) : name(name), sellIn(sellIn), quality(quality)
|
||||
Item(string name, int sellIn, int quality) : name(name), sellIn(sellIn), quality(quality)
|
||||
{}
|
||||
};
|
||||
|
||||
class GildedRose
|
||||
{
|
||||
public:
|
||||
vector<Item> & items;
|
||||
GildedRose(vector<Item> & items);
|
||||
|
||||
void updateQuality();
|
||||
};
|
||||
vector<Item>& items;
|
||||
GildedRose(vector<Item>& items);
|
||||
|
||||
void updateQuality();
|
||||
void updateQualityAgedBrie(int index);
|
||||
void updateQualityBackstagePasses(int index);
|
||||
void updateQualityConjured(int index);
|
||||
void updateQualitySulfuras(int index);
|
||||
void updateQualityNormal(int index);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user