static void moveGap(Aln* aln, int* used_row) { int irow; for (irow = 0; irow < aln->nrows; irow++) { if (used_row[irow] == aln->used_row[irow]) { putChar(aln, irow, '-'); } else { moveChar(aln, irow); } } assert(memcmp(used_row, aln->used_row, aln->nrows * sizeof(int)) == 0); }
static void moveWholeRow(Aln* aln) { int irow; for (irow = 0; irow < aln->nrows; irow++) { moveChar(aln, irow); } }
void worldSpace::moveRIGHT() { cdir = 1; moveChar(cdir); }
void worldSpace::moveLEFT() { cdir = 0; moveChar(cdir); }
void worldSpace::moveDOWN() { cdir = 2; moveChar(cdir); }
//Old was 0 = up, 1 = down, 2 = right, 3 = left. //I think I may have reversed this somehow... //Which I can't wrap my head around. //New is 3 = up, 2 = down, 1 = right, 0 = left. //For some reason the vector structure is vec[y][x], which //doesn't make all that much sense to me, frankly. void worldSpace::moveUP() { cdir = 3; moveChar(cdir); }