/* * Verrückte Turing-Maschinen — A turing complete game * Copyright (C) 2016 Christian Fraß * * 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 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ module mod_vtm { export module mod_aufbau { export module mod_aktor_verwerfer { /** * @author kcf */ let art : string = "verwerfer"; /** * @author kcf */ export type typ_verwerfer = { } ; /** * @author kcf */ function erstellen ( ) : typ_verwerfer { return { }; } /** * @author kcf */ export function erstellen_aktor ( ) : mod_aktor.typ_aktor { return einpacken(art, erstellen()); } /** * @author kcf */ function beispiel ( ) : typ_verwerfer { return erstellen(); } /** * @author kcf */ function drehen ( verwerfer : typ_verwerfer, inkrement ?: int ) : void { } /** * @author kcf */ function verwenden ( verwerfer : typ_verwerfer, figur : mod_figur.typ_figur ) : void { mod_figur.verwerfen(figur); } /** * @author kcf */ function exportieren ( verwerfer : typ_verwerfer ) : any { return { }; } /** * @author kcf */ function importieren ( roh : any ) : typ_verwerfer { return ( erstellen ( ) ); } /** * @author kcf */ mod_aktor.implementierung_aktor[art] = { "beispiel": () => einpacken(art, beispiel()), "drehen": (aktor, inkrement) => drehen(auspacken(aktor), inkrement), "verwenden": (aktor, figur) => verwenden(auspacken(aktor), figur), "exportieren": (aktor) => ({"art": art, "angaben": exportieren(aktor.angaben)}), "importieren": (roh) => einpacken(art, importieren(roh)), } ; } } }