module mod_vtm_aufbau { /** * @author kcf */ export class klasse_schreiber implements schnittstelle_aktor { /** * @author kcf */ private richtung : typ_richtung; /** * @author kcf */ private symbol : typ_symbol; /** * @author kcf */ public constructor(richtung : typ_richtung = 0, symbol : typ_symbol = 0) { this.richtung = richtung; this.symbol = symbol; } /** * @author kcf */ public richtung_lesen() : typ_richtung { return this.richtung; } /** * @author kcf */ public symbol_lesen() : typ_symbol { return this.symbol; } /** * @author kcf * @implementation */ public verwenden(figur : klasse_figur) : void { figur.band_schreiben(this.symbol); figur.bewegen(this.richtung); } } }