public static function newPlanet($StarsystemID, $Name, $RX, $RY, $CourseRotation, $CourseDuration) { $P = new Planet(-1); $A = $P->newAttributes(); $A->PlanetStarsystemID = $StarsystemID; $A->PlanetName = $Name; $A->PlanetRX = $RX; $A->PlanetRY = $RY; $A->PlanetCourseRotation = $CourseRotation; $A->PlanetCourseDuration = $CourseDuration; $P->setA($A); $P->newMe(); }