This commit is contained in:
bMorgan01 2021-04-27 14:42:08 -06:00
commit 065d543d4d
262 changed files with 38368 additions and 0 deletions

28
Planet.cpp Normal file
View file

@ -0,0 +1,28 @@
#include "Planet.h"
Planet::Planet(const sf::Texture &texture, float scale, float xPos, float yPos, float direction) : GameSprite(texture, scale, xPos, yPos, 0, direction) {
landable = false;
}
Planet::Planet(const std::string& _name, const std::string& _desc, int landscape, const sf::Texture &texture, float scale, float xPos, float yPos, float direction) : GameSprite(texture, scale, xPos, yPos, 0, direction) {
landable = true;
name = _name;
desc = _desc;
image = landscape;
}
bool Planet::isLandable() {
return landable;
}
std::string Planet::getName() {
return name;
}
std::string Planet::getDesc() {
return desc;
}
int Planet::getImageNum() {
return image;
}