Hi guys,
I've recently been working a bit on my roguelike after a long holiday
and I've started streamlining my IO code to be a little more wieldy.
At the moment it's incomplete, but I have built a very handy C++
interface to curses and I can imagine that any coders too hesitant to
start using curses for their applications would get a real benefit from
it.
It's a simple interface that uses the std:: ostream functionality but
pipes output through curses. It also has some classes for moving the
cursor around the screen in a more intuitive manner. Curses
automagically initiates when you #include the header, and you can
easily call code like:
terminal.cursor.x = 2; terminal.cursor.y = 10;
terminal << color( cWhite ) << "Hitpoints: " << color( cBlue ) <<
player->hp;
straight out of the box.
It's not complete yet, and I'll add more functionality as time goes on
so until I'm ready to release my next RL version I'm not going to put
it with the rest of my code on sourceforge. For now, if anyone's
interested in using it (and helping me out with feature requests :p ),
just email me and I'll send you a copy of the .h and .cpp files as they
are and some quick-start hints.
--
- Michael Blackney -
>> Stay informed about: C++ interface to curses