Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
SpaceAdventureRPG/SpaceSuit.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (33 sloc)
1.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SpaceSuit.h" | |
SpaceSuit::SpaceSuit(int id) : Item(id) { | |
this->setItemType("SpaceSuit"); | |
} | |
/* implementation of class SpaceSuit constructor*/ | |
SpaceSuit::SpaceSuit(Item item){ | |
this->setItemID(item.getItemID()); | |
this->setItemType("SpaceSuit"); | |
this->setItemName(item.getItemName()); | |
this->setItemInventorySize(item.getItemInventorySize()); | |
this->setIsStackable(item.getIsStackable()); | |
this->setItemValue(item.getItemValue()); | |
} | |
/* implementation of setter methods for class Weapon */ | |
void SpaceSuit::setHandleTemp(int handleTemp) { | |
this->handleTemp = handleTemp; | |
} | |
void SpaceSuit::setHandleRad(int handleRad) { | |
this->handleRad = handleRad; | |
} | |
void SpaceSuit::setHandleOxy(int handleOxy) { | |
this->handleOxy = handleOxy; | |
} | |
/* implementation of getter functions for class Weapon */ | |
int SpaceSuit::getHandleTemp() { | |
return this -> handleTemp; | |
} | |
int SpaceSuit::getHandleRad() { | |
return this -> handleRad; | |
} | |
int SpaceSuit::getHandleOxy() { | |
return this -> handleOxy; | |
} |