* Drawing routine for sectopods and reapers. */
| 866 | * Drawing routine for sectopods and reapers. |
| 867 | */ |
| 868 | void UnitSprite::drawRoutine5() |
| 869 | { |
| 870 | if (_unit->isOut()) |
| 871 | { |
| 872 | // unit is drawn as an item |
| 873 | return; |
| 874 | } |
| 875 | |
| 876 | Surface *s = 0; |
| 877 | |
| 878 | if (_unit->getStatus() == STATUS_WALKING) |
| 879 | { |
| 880 | s = _unitSurface->getFrame( 32 + (_unit->getDirection() * 16) + (_part * 4) + ((_unit->getWalkingPhase() / 2) % 4)); |
| 881 | } |
| 882 | else |
| 883 | { |
| 884 | s = _unitSurface->getFrame((_part * 8) + _unit->getDirection()); |
| 885 | } |
| 886 | |
| 887 | s->blit(this); |
| 888 | } |
| 889 | |
| 890 | /** |
| 891 | * Drawing routine for snakemen. |
nothing calls this directly
no test coverage detected