41 lines
637 B
TypeScript
41 lines
637 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>
|
||
|
|
* @implementation
|
||
|
|
*/
|
||
|
|
public verwenden(figur : klasse_figur) : void
|
||
|
|
{
|
||
|
|
figur.bewegen(this.richtung);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|