50 lines
792 B
TypeScript
50 lines
792 B
TypeScript
|
|
module mod_vtm_aufbau
|
|
{
|
|
|
|
/**
|
|
* @author kcf <vidofnir@folksprak.org>
|
|
*/
|
|
export class klasse_befoerderer
|
|
implements schnittstelle_aktor
|
|
{
|
|
|
|
/**
|
|
* @author kcf <vidofnir@folksprak.org>
|
|
*/
|
|
private richtung : typ_richtung;
|
|
|
|
|
|
/**
|
|
* @author kcf <vidofnir@folksprak.org>
|
|
*/
|
|
public constructor(richtung : typ_richtung = 0)
|
|
{
|
|
this.richtung = richtung;
|
|
}
|
|
|
|
|
|
/**
|
|
* @author kcf <vidofnir@folksprak.org>
|
|
*/
|
|
public richtung_lesen() : typ_richtung
|
|
{
|
|
return this.richtung;
|
|
}
|
|
|
|
|
|
/**
|
|
* @author kcf <vidofnir@folksprak.org>
|
|
* @implementation
|
|
*/
|
|
public verwenden(figur : klasse_figur) : void
|
|
{
|
|
figur.bewegen(this.richtung);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|