/*
 * Method definitions for a Cat.
 * 
 * Author: Zach Tomaszewski
 */
#include <iostream>
#include "Cat.hpp"

using std::cout;
using std::endl;

/* Constructor */
Cat::Cat(const std::string name, int lives) {
  this->name = name;
  this->lives = lives;
}

/* Reduces this Cat's lives by 1 if not already 0 or less. */
void Cat::badLuck() {
  if (lives > 0) {
    lives--;
  }
}

//such simple accessors could be inlined, but not covering that here

std::string Cat::getName() {
  return name;
}

int Cat::getLives() {
  return lives;
}

