Пример #1
0
func (R *Imp) melden() {
	//
	if Roboterwelt.kloetze(R.Y, R.X) > 0 {
		nat.SetColours(farbe[R.nr], farbeH)
		nat.Write(uint(Roboterwelt.kloetze(R.Y, R.X)), 0, 32+2)
	} else {
		scr.Colours(farbeH, farbeH)
		scr.Write("   ", 0, 32)
	}
}
Пример #2
0
func (w *Imp) writeNumbers() {
	//
	spec := species.New()
	w.spec[0][0].SetFormat(species.Long)
	for a := uint(0); a < spec.Number(); a++ {
		c := 27 + 20*a
		spec.Write(y0-1, c)
		nat.Write(w.number(spec), y0-1, c+1+lenName+2)
		spec.Inc()
	}
	w.spec[0][0].SetFormat(species.Short)
}
Пример #3
0
func (x *Imp) Write(Z, S uint) {
	//
	bx.Colours(x.cF, x.cB)
	switch x.fmt {
	case Tld:
		bx.Write(x.att.tld, Z, S)
	case Long:
		bx.Clr(Z, S)
		bx.Write(x.att.name, Z, S)
	case Tel:
		nat.SetColours(x.cF, x.cB)
		nat.Write(uint(x.att.prefix), Z, S+3)
	case Car:
		bx.Write(x.att.kfz, Z, S)
	case Ioc:
		bx.Write(x.att.ioc, Z, S)
	}
}
Пример #4
0
func (R *Imp) Ausgeben(n uint) {
	//
	nat.SetColours(col.Yellow, col.Blue)
	nat.Write(n, scr.NLines()-2, 9)
	kbd.Wait(true)
}
Пример #5
0
func wr1(n, l, c uint, f, b col.Colour) {
	//
	nat.SetColours(f, b)
	nat.Write(n, l, c+1)
}