64 lines
1.0 KiB
C++
64 lines
1.0 KiB
C++
// starname.cpp
|
|
//
|
|
// Copyright (C) 2001, Chris Laurel <claurel@shatters.net>
|
|
//
|
|
// This program is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU General Public License
|
|
// as published by the Free Software Foundation; either version 2
|
|
// of the License, or (at your option) any later version.
|
|
|
|
#include "celestia.h"
|
|
#include "starname.h"
|
|
|
|
static char *greekAlphabet[] =
|
|
{
|
|
"Alpha",
|
|
"Beta",
|
|
"Gamma",
|
|
"Delta",
|
|
"Epsilon",
|
|
"Zeta",
|
|
"Eta",
|
|
"Theta",
|
|
"Iota",
|
|
"Kappa",
|
|
"Lambda",
|
|
"Mu",
|
|
"Nu",
|
|
"Xi",
|
|
"Omicron",
|
|
"Pi",
|
|
"Rho",
|
|
"Sigma",
|
|
"Tau",
|
|
"Upsilon",
|
|
"Phi",
|
|
"Chi",
|
|
"Psi",
|
|
"Omega"
|
|
};
|
|
|
|
|
|
StarName::StarName(string _name, string _designation, Constellation *_constel)
|
|
{
|
|
name = _name;
|
|
designation = _designation;
|
|
constellation = _constel;
|
|
}
|
|
|
|
|
|
string StarName::getName()
|
|
{
|
|
return name;
|
|
}
|
|
|
|
string StarName::getDesignation()
|
|
{
|
|
return designation;
|
|
}
|
|
|
|
Constellation *StarName::getConstellation()
|
|
{
|
|
return constellation;
|
|
}
|