Lines Matching refs:piece

322 	int piece,west,north,northwest,tileSize,tx,ty;  in PaintPieceBackground()  local
325 piece=Mdl->GetPiece(px,py); in PaintPieceBackground()
332 if (piece&PF_BLOCKED) { in PaintPieceBackground()
374 if (piece&PF_NORTH) { in PaintPieceBackground()
375 if ((piece&PF_CONMASK)==(PF_NORTH|PF_EAST)) { in PaintPieceBackground()
380 else if ((piece&PF_CONMASK)==(PF_NORTH|PF_WEST)) { in PaintPieceBackground()
403 if (piece&PF_WEST) { in PaintPieceBackground()
404 if ((piece&PF_CONMASK)==(PF_WEST|PF_SOUTH)) { in PaintPieceBackground()
409 else if ((piece&PF_CONMASK)==(PF_WEST|PF_NORTH)) { in PaintPieceBackground()
432 if (piece&PF_NORTH) { in PaintPieceBackground()
433 if (piece&PF_WEST) { in PaintPieceBackground()
434 if (piece&PF_SOUTH) { in PaintPieceBackground()
435 if (piece&PF_EAST) { tx=7; ty=8; } else { tx=6; ty=8; } in PaintPieceBackground()
438 if (piece&PF_EAST) { tx=5; ty=8; } else { tx=4; ty=8; } in PaintPieceBackground()
442 if (piece&PF_SOUTH) { in PaintPieceBackground()
443 if (piece&PF_EAST) { tx=3; ty=8; } else { tx=2; ty=8; } in PaintPieceBackground()
446 if (piece&PF_EAST) { tx=1; ty=8; } else { tx=0; ty=8; } in PaintPieceBackground()
451 if (piece&PF_WEST) { in PaintPieceBackground()
452 if (piece&PF_SOUTH) { in PaintPieceBackground()
453 if (piece&PF_EAST) { tx=7; ty=7; } else { tx=6; ty=7; } in PaintPieceBackground()
456 if (piece&PF_EAST) { tx=5; ty=7; } else { tx=4; ty=7; } in PaintPieceBackground()
460 if (piece&PF_SOUTH) { in PaintPieceBackground()
461 if (piece&PF_EAST) { tx=3; ty=7; } else { tx=2; ty=7; } in PaintPieceBackground()
464 if (piece&PF_EAST) { tx=1; ty=7; } else { tx=0; ty=7; } in PaintPieceBackground()
475 if (!(piece&PF_BLOCKED) && (piece&(PF_SOURCE|PF_TARGET))) { in PaintPieceBackground()
476 if (piece&PF_SOURCE) tx=0; in PaintPieceBackground()
477 else if (!(piece&PF_FILLED)) tx=1; in PaintPieceBackground()
494 int piece,east,west,south,north,tileSize,tx,ty; in PaintPiecePipe() local
496 piece=Mdl->GetPiece(px,py); in PaintPiecePipe()
503 if ((piece&PF_EAST)==0 && (east&PF_WEST)!=0 && (east&PF_FILLED)!=0) { in PaintPiecePipe()
509 if ((piece&PF_SOUTH)==0 && (south&PF_NORTH)!=0 && (south&PF_FILLED)!=0) { in PaintPiecePipe()
515 if ((piece&PF_WEST)==0 && (west&PF_EAST)!=0 && (west&PF_FILLED)!=0) { in PaintPiecePipe()
521 if ((piece&PF_NORTH)==0 && (north&PF_SOUTH)!=0 && (north&PF_FILLED)!=0) { in PaintPiecePipe()
528 if (piece&PF_NORTH) { in PaintPiecePipe()
529 if (piece&PF_WEST) { in PaintPiecePipe()
530 if (piece&PF_SOUTH) { in PaintPiecePipe()
531 if (piece&PF_EAST) { tx=1; ty=1; } else { tx=2; ty=1; } in PaintPiecePipe()
534 if (piece&PF_EAST) { tx=1; ty=2; } else { tx=2; ty=2; } in PaintPiecePipe()
538 if (piece&PF_SOUTH) { in PaintPiecePipe()
539 if (piece&PF_EAST) { tx=0; ty=1; } else { tx=3; ty=1; } in PaintPiecePipe()
542 if (piece&PF_EAST) { tx=0; ty=2; } else { tx=3; ty=2; } in PaintPiecePipe()
547 if (piece&PF_WEST) { in PaintPiecePipe()
548 if (piece&PF_SOUTH) { in PaintPiecePipe()
549 if (piece&PF_EAST) { tx=1; ty=0; } else { tx=2; ty=0; } in PaintPiecePipe()
552 if (piece&PF_EAST) { tx=1; ty=3; } else { tx=2; ty=3; } in PaintPiecePipe()
556 if (piece&PF_SOUTH) { in PaintPiecePipe()
557 if (piece&PF_EAST) { tx=0; ty=0; } else { tx=3; ty=0; } in PaintPiecePipe()
560 if (piece&PF_EAST) { tx=0; ty=3; } else { tx=3; ty=3; } in PaintPiecePipe()
565 if ((piece&PF_FILLED)==0 || !LightColor.IsOpaque()) { in PaintPiecePipe()
572 if (piece&PF_FILLED) { in PaintPiecePipe()
580 if (piece&PF_MARKED) { in PaintPiecePipe()
588 if (piece&(PF_SOURCE|PF_TARGET)) { in PaintPiecePipe()
589 if (piece&PF_SOURCE) tx=0; in PaintPiecePipe()
590 else if (!(piece&PF_FILLED)) tx=1; in PaintPiecePipe()