prefetchValueInstance('user'); // Add link group for company founder $linkInstance->addLinkGroup('company_founder', "Vielleicht willst du eine virtuelle Reederei gründen, um dich virtuell selbstständig zu machen?"); // Maximum of allowed companies reached? if ($linkInstance->getValueInstance()->ifUserCreatedMaximumAllowedCompanies()) { // No more companies allowed to found $linkInstance->addLinkNote('company_maximum', "Du hast zu viele Firmen gegründet. Bitte denke über eine Fusion (Zusammenlegung) nach."); } elseif ($linkInstance->getValueInstance()->ifUserHasRequiredPoints('found_new_company')) { // Enough money to found company $linkInstance->addActionLinkById('company_found', 'found_company'); } // Add link group for government $linkInstance->addLinkGroup('government', "Bewerbe dich bei anderen Firmen und hole dir eine Starthilfe vom virtuellen Staat ab wenn du nicht flüssig bist!"); if ($linkInstance->getValueInstance()->ifUserHasRequiredPoints('write_applications')) { // Enough money to write applications to other companies $linkInstance->addActionLinkById('company_list', 'list_company'); } elseif ($linkInstance->getValueInstance()->ifGovernmentPaysTraining()) { // Government is able to pay a training in general $linkInstance->addActionLinkById('government_training', 'list_training_by_government'); // Can the government pay startup help? if ($linkInstance->getValueInstance()->ifGovernmentPaysStartupHelp()) { // Add link note $linkInstance->addLinkNote('government_startup_help', "Virtuelle Starthilfe beantragen:"); // Display link to government for startup help $linkInstance->addActionLinkById('government_startup_help', 'apply_startup_help_government'); } // END - if } elseif ($linkInstance->getValueInstance()->ifGovernmentPaysStartupHelp()) { // Display link to government for startup help $linkInstance->addActionLinkById('government_startup_help', 'apply_startup_help_government'); } else { // Even government cannot help the gamer here $linkInstance->addLinkNote('government_depleted', "Leider kann dir der Staat nicht mehr weiterhelfen, dich zu bewerben, da du zu oft Starthilfen erhalten hast oder ein Training absolviert hast. Hier muss aber noch weiter am Spiel gearbeitet werden. :-)"); } // Add link group for money bank $linkInstance->addLinkGroup('moneybank', "Leihe dir zu günstigen Zinsen virtuelles Geld aus, wenn du mehr brauchst!"); // Add link to moneybank if ($linkInstance->getValueInstance()->ifUserAllowedTakeCreditsFromMoneyBank()) { // Display link to money bank page $linkInstance->addActionLinkById('moneybank', 'virtual_money_bank'); } elseif ($linkInstance->getValueInstance()->ifUserHasMaximumCreditsWithMoneyBank()) { // Maximum credits reached which a money bank can lent $linkInstance->addLinkNote('moneybank_depleted', "Die Bank kann dir kein Geld mehr leihen, bitte zahle es auch wieder zurück."); $linkInstance->addActionLinkById('moneybank_payback_credits', 'payback_credits_to_money_bank'); } else { // Money bank is closed! $linkInstance->addLinkNote('moneybank_closed', "Die Bank hat derzeit geschlossen. Bitte später nochmal versuchen."); } // Add link group for refill page $linkInstance->addLinkGroup('refill_page', "Hole dir virtuelles Geld von uns zu fairen Preisen!"); if ($linkInstance->ifRefillPageActive()) { // Display link to refill page $linkInstance->addActionLinkById('refill', 'refill_virtual_money'); } else { // Refill page not active $linkInstance->addLinkNote('refill_disabled', "Das Aufladen ist derzeit nicht möglich oder gestört und wurde von uns deaktiviert."); } // Flush content to the template $linkInstance->flushContent(); // [EOC] ?>
Auflistung der Reedereien, an denenen du dich beteiligst:
{?company_list?}