Esempio n. 1
0
func (field *Field) Move(x int, y int) bool {
	return isOk(C.move_field((*C.FIELD)(field), C.int(x), C.int(y)))
}
Esempio n. 2
0
// Move the field to the location of the specified coordinates
func (f *Field) Move(y, x int) error {
	err := C.move_field(f.field, C.int(y), C.int(x))
	return ncursesError(syscall.Errno(err))
}
Esempio n. 3
0
// Move the field to the location of the specified coordinates
func (f *Field) Move(y, x int32) error {
	err := C.move_field((*C.FIELD)(f), C.int(y), C.int(x))
	return ncursesError(syscall.Errno(err))
}
Esempio n. 4
0
func (f *Field) Move(x int, y int) error {
	return geterror(C.move_field(f.field, C.int(x), C.int(y)))
}