Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4f010bee76
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (30 sloc) 0.734 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
#include "Stash.h"

using namespace std;

/* constructors/destructor */
Stash::Stash(unsigned char symbol, int color, int last_inspected) : _symbol(symbol), _color(color), _items(), _last_inspected(last_inspected) {
}

/* methods */
unsigned char Stash::symbol() const {
return _symbol;
}

unsigned char Stash::symbol(unsigned char symbol) {
_symbol = symbol;
return this->symbol();
}

int Stash::color() const {
return _color;
}

int Stash::color(int color) {
_color = color;
return this->color();
}

list<Item>& Stash::items() {
return _items;
}

int Stash::lastInspected() const {
return _last_inspected;
}

int Stash::lastInspected(int last_inspected) {
_last_inspected = last_inspected;
return this->lastInspected();
}
Something went wrong with that request. Please try again.