/* ....[@@@..[@@@..............[@.................. MUD++ is a written from ....[@..[@..[@..[@..[@..[@@@@@....[@......[@.... scratch multi-user swords and ....[@..[@..[@..[@..[@..[@..[@..[@@@@@..[@@@@@.. sorcery game written in C++. ....[@......[@..[@..[@..[@..[@....[@......[@.... This server is an ongoing ....[@......[@..[@@@@@..[@@@@@.................. development project. All ................................................ contributions are welcome. ....Copyright(C).1995.Melvin.Smith.............. Enjoy. ------------------------------------------------------------------------------ Melvin Smith (aka Fusion) msmith@falcon.mercer.peachnet.edu MUD++ development mailing list mudpp-list@spice.com ------------------------------------------------------------------------------ repop.h */ #ifndef _REPOP_H #define _REPOP_H #include "thing.h" #include "file.h" #include "index.h" class Repop { public: char type; // O-load object,M-load mob,G-give obj,P-put obj in obj Index index; // Obj/Mob index short int chance; // 1-1000 , 0 is bootup only short int val; Thing *ptr; Repop() : type('@'),chance(0),val(0),ptr(0) { } Repop( char t, Index i, int c ) : type(t),index(i),chance(c),ptr(0) { } int readFrom( InFile & ); void writeTo( OutFile & ); void setPtr( Thing * x ) { ptr = x; } Thing * getPtr() { return ptr; } }; #endif