game = $game;
$this->players = $game->getLib('beta5/player');
}
function getSender() {
return 'Foreign Minister';
}
function getSLink() {
return "";
}
function getRecipient() {
return utf8entities($this->players->call('getName', $this->player));
}
function getRLink() {
return "";
}
function getSubject() {
return "Transfer of planet " . utf8entities($this->data['p_name']) . " cancelled!";
}
function getReplyLink() {
return "";
}
function getContents() {
$p1 = $this->players->call('get', $this->data['seller'], true);
$p1s = ($p1['quit'] == 0 ? "" : "")
. "" . utf8entities($p1['name']) . "" . ($p1['quit'] == 0 ? "" : "");
$p2 = $this->players->call('get', $this->data['taker'], true);
$p2s = ($p2['quit'] == 0 ? "" : "")
. "" . utf8entities($p2['name']) . "" . ($p2['quit'] == 0 ? "" : "");
return "The sale of planet "
. utf8entities($this->data['p_name']) . " has been cancelled.
"
. "The seller, $p1s, lost the planet to the forces of $p2s.";
}
}
?>