vtm/quelldatein/aufbau/schreiber.ts
2017-11-08 11:30:34 +01:00

49 lines
816 B
TypeScript

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