Website Summary Files Commits Branches @commit @diff @stats
path: root / Week08 / Exercise01 / LaunchSite.cpp
blob: e326003b392d16f08db169cf7443eac41fe48fb5 (plain) (blame)
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
#include "LaunchSite.h"
#include <cstring>

const char* LaunchSite::GetName() const {
	return name;
}

void LaunchSite::SetName(const char* name) {
	strncpy(this->name, name, 250);
	this->name[250] = '\0';
}

double LaunchSite::GetMaxWeight() const {
	return maxWeight;
}
void LaunchSite::SetMaxWeight(double weight) {
	this->maxWeight = weight;
}

unsigned LaunchSite::GetMaxHeight() const {
	return maxHeight;
}

void LaunchSite::SetMaxHeight(unsigned height) {
	this->maxHeight = height;
}