示例#1
0
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);
}
示例#2
0
static void moveWholeRow(Aln* aln) {
    int irow;
    for (irow = 0; irow < aln->nrows; irow++) {
        moveChar(aln, irow);
    }
}
示例#3
0
void worldSpace::moveRIGHT()
{
  cdir = 1;
  moveChar(cdir);
}
示例#4
0
void worldSpace::moveLEFT()
{
  cdir = 0;
  moveChar(cdir);
}
示例#5
0
void worldSpace::moveDOWN()
{
  cdir = 2;
  moveChar(cdir);
}
示例#6
0
//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);
}