Ignore:
Timestamp:
Feb 7, 2011, 2:40:30 PM (10 years ago)
Author:
sam
Message:

Name tilers, samples and pieces for easier debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/monsterz/piece.cpp

    r384 r419  
    4949    }
    5050    state;
     51
     52    char namebuf[40];
    5153};
    5254
     
    8789
    8890    data->pos = data->cell * data->size;
     91}
     92
     93char const *Piece::GetName()
     94{
     95    sprintf(data->namebuf, "<piece> %ix%i @ %i,%i",
     96            data->size.x, data->size.y, data->cell.x, data->cell.y);
     97    return data->namebuf;
    8998}
    9099
Note: See TracChangeset for help on using the changeset viewer.