[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] Q: about running programs
Hello everyone, basically what I did was I took the backgammon modules from
Richard's server and I added this to backgammon.h (right after the Board
class)
=====
class Bord: public ReadWriteIntList {
protected:
const char *Name(void) {return "bord"; }
};
=====
then I added this to the backgammon class (right after Board board
declaration)
=====
Bord bord;
=====
then in backgammon.cpp Backgammon::Init() I added this
=====
bord.Init().Add(11).Add(11);
=====
then I added this in Backgammon::ReadBoard(GameFile &game)
=====
result |= bord.Read(game);
=====
then I added this to Backgammon::WriteBoard(...
=====
result *= bord.Write(game);
=====
In all I added three lines to backgammon.cpp and five lines to backgammon.h
and now the program just crashes when it tries to write the name of "bord"
to the game file. Uhg!