/* * 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_manifestation { /** * @author kcf */ export type typ_manifestation = typ_komplex; /** * @author kcf */ export type schnittstelle_manifestation = { darstellen : (manifestation : typ_manifestation)=>typ_ausgabe; binden : (manifestation : typ_manifestation)=>void; } ; /** * @author kcf */ export var implementierung_manifestation : {[art : string] : schnittstelle_manifestation} = {}; /** * @author kcf */ export function manifestation_darstellen(manifestation : typ_manifestation) : typ_ausgabe { return implementierung_manifestation[manifestation.art].darstellen(manifestation); } /** * @author kcf */ export function manifestation_binden(manifestation : typ_manifestation) : void { return implementierung_manifestation[manifestation.art].binden(manifestation); } /** * @author kcf */ export function manifestation_einrichten(manifestation : typ_manifestation) : void { manifestation_darstellen(manifestation); manifestation_binden(manifestation); } }