August 1999
- Game design and gender: An interesting article Nathan F Yospe
- Game design and gender: An interesting article Jon A. Lambert
- Game design and gender: An interesting article Marian Griffith
- Game design and gender: An interesting article Jeremy Music "Sterling"
- Game design and gender: An interesting article Cynbe ru Taren
- Game design and gender: An interesting article Caliban Tiresias Darklock
- Game design and gender: An interesting article Matthew Mihaly
- Game design and gender: An interesting article Caliban Tiresias Darklock
- Game design and gender: An interesting article Koster, Raph
- Game design and gender: An interesting article Laurel Fan
- Game design and gender: An interesting article Caliban Tiresias Darklock
- Game design and gender: An interesting article Willowreed@aol.com
- Game design and gender: An interesting article Albert
- Game design and gender: An interesting article Koster, Raph
- Game design and gender: An interesting article Adam Wiggins
- Game design and gender: An interesting article Marian Griffith
- Game design and gender: An interesting article Marian Griffith
- Game design and gender: An interesting article Ola Fosheim Grøstad
- Game design and gender: An interesting article Matthew Mihaly
- Game design and gender: An interesting article Adam Wiggins
- Game design and gender: An interesting article Caliban Tiresias Darklock
- Game design and gender: An interesting article Matthew Mihaly
- Game design and gender: An interesting article Marian Griffith
- Game design and gender: An interesting article Marian Griffith
- Game design and gender: An interesting article Ola Fosheim Grøstad
- Game design and gender: An interesting article Greg Miller
- question about tile-based games Chris Gray
- question about tile-based games Scott Boding
- question about tile-based games Jeremy Music "Sterling"
- question about tile-based games Katrina McClelan
- question about tile-based games Caliban Tiresias Darklock
- question about tile-based games Hans-Henrik Staerfeldt
- question about tile-based games Chris Gray
- question about tile-based games AR Schleicher
- question about tile-based games Wes Connell
- question about tile-based games AR Schleicher
- question about tile-based games Wes Connell
- Mud Census? Timothy O'Neill Dang
- MUD-Dev digest, Vol 1 #142 - 4 msgs Par Winzell
- MUD-Dev digest, Vol 1 #142 - 4 msgs Dr. Cat
- MUD-Dev digest, Vol 1 #142 - 4 msgs Matthew Mihaly
- MUD-Dev digest, Vol 1 #142 - 4 msgs Par Winzell
- MUD-Dev digest, Vol 1 #142 - 4 msgs Matthew Mihaly
- MUD-Dev digest, Vol 1 #142 - 4 msgs Wes Connell
- MUD-Dev digest, Vol 1 #142 - 4 msgs Koster, Raph
- MUD-Dev digest, Vol 1 #142 - 4 msgs Greg Miller
- MUD-Dev digest, Vol 1 #142 - 4 msgs Colin Coghill
- MUD-Dev digest, Vol 1 #142 - 4 msgs Marian Griffith
- MUD-Dev digest, Vol 1 #142 - 4 msgs Greg Miller
- MUD-Dev digest, Vol 1 #142 - 4 msgs Matthew Mihaly
- MUD-Dev digest, Vol 1 #142 - 4 msgs Miroslav Silovic
- MUD-Dev digest, Vol 1 #142 - 4 msgs Matthew Mihaly
- MUD-Dev digest, Vol 1 #142 - 4 msgs Caliban Tiresias Darklock
- MUD-Dev digest, Vol 1 #142 - 4 msgs Marian Griffith
- MUD-Dev digest, Vol 1 #142 - 4 msgs Greg Miller
- MUD-Dev digest, Vol 1 #142 - 4 msgs Marian Griffith
- MUD-Dev digest, Vol 1 #142 - 4 msgs Greg Miller
- MUD-Dev digest, Vol 1 #142 - 4 msgs Koster, Raph
- MUD-Dev digest, Vol 1 #142 - 4 msgs Mik Clarke
- MUD-Dev digest, Vol 1 #142 - 4 msgs Koster, Raph
- MUD-Dev digest, Vol 1 #142 - 4 msgs Mik Clarke
- MUD-Dev digest, Vol 1 #142 - 4 msgs Koster, Raph
- MUD-Dev digest, Vol 1 #142 - 4 msgs Greg Miller
- MUD-Dev digest, Vol 1 #142 - 4 msgs Wes Connell
- MUD-Dev digest, Vol 1 #142 - 4 msgs Marian Griffith
- MUD-Dev digest, Vol 1 #142 - 4 msgs Ilya, SCC, Game Commando
- MUD-Dev digest, Vol 1 #142 - 4 msgs Matthew Mihaly
- MUD-Dev digest, Vol 1 #142 - 4 msgs Marian Griffith
- MUD-Dev digest, Vol 1 #142 - 4 msgs Greg Miller
- MUD-Dev digest, Vol 1 #142 - 4 msgs Marian Griffith
- MUD-Dev digest, Vol 1 #142 - 4 msgs Caliban Tiresias Darklock
- MUD-Dev digest, Vol 1 #142 - 4 msgs Ilya, SCC, Game Commando
- MUD-Dev digest, Vol 1 #142 - 4 msgs Matthew Mihaly
- MUD-Dev digest, Vol 1 #142 - 4 msgs Caliban Tiresias Darklock
- MUD-Dev digest, Vol 1 #142 - 4 msgs Matthew Mihaly
- MUD-Dev digest, Vol 1 #142 - 4 msgs Koster, Raph
- MUD-Dev digest, Vol 1 #142 - 4 msgs Greg Miller
- MUD-Dev digest, Vol 1 #142 - 4 msgs Ola Fosheim Grøstad
- MUD-Dev digest, Vol 1 #142 - 4 msgs Koster, Raph
- MUD-Dev digest, Vol 1 #142 - 4 msgs Ola Fosheim Grøstad
- MUD-Dev digest, Vol 1 #142 - 4 msgs Koster, Raph
- MUD-Dev digest, Vol 1 #142 - 4 msgs Ola Fosheim Grøstad
- MUD-Dev digest, Vol 1 #142 - 4 msgs Greg Miller
- MUD-Dev digest, Vol 1 #142 - 4 msgs Marian Griffith
- MUD-Dev digest, Vol 1 #142 - 4 msgs Matthew Mihaly
- Designing fun sims. (was MUD-Dev digest, Vol 1 #142 - 4 msgs) Ola Fosheim Grøstad
- The Best Guy on the Mud Thing Dundee
- The Best Guy on the Mud Thing Ola Fosheim Grøstad
- The Best Guy on the Mud Thing Ilya, SCC, Game Commando
- The Best Guy on the Mud Thing Colin Coghill
- The Best Guy on the Mud Thing Ilya, SCC, Game Commando
- The Best Guy on the Mud Thing Sellers, Michael
- The Best Guy on the Mud Thing Wes Connell
- The Best Guy on the Mud Thing Matthew Mihaly
- The Best Guy on the Mud Thing Koster, Raph
- The Best Guy on the Mud Thing Wes Connell
- The Best Guy on the Mud Thing Sellers, Michael
- The Best Guy on the Mud Thing Ola Fosheim Grøstad
- The Best Guy on the Mud Thing Ilya, SCC, Game Commando
- The Best Guy on the Mud Thing Dundee
- The Best Guy on the Mud Thing Ilya, Game Commandos
- The Best Guy on the Mud Thing Dundee
- The Best Guy on the Mud Thing Jon A. Lambert
- The Best Guy on the Mud Thing Travis S. Casey
- The Best Guy on the Mud Thing J C Lawrence
- The Best Guy on the Mud Thing Koster, Raph
- The Best Guy on the Mud Thing Adam Wiggins
- The Best Guy on the Mud Thing Koster, Raph
- The Best Guy on the Mud Thing Adam Wiggins
- The Best Guy on the Mud Thing Koster, Raph
- The Best Guy on the Mud Thing Ola Fosheim Grøstad
- The Best Guy on the Mud Thing Wes Connell
- The Best Guy on the Mud Thing Travis S. Casey
- The Best Guy on the Mud Thing Wes Connell
- The Best Guy on the Mud Thing Travis S. Casey
- The Best Guy on the Mud Thing Caliban Tiresias Darklock
- The Best Guy on the Mud Thing Dundee
- The Best Guy on the Mud Thing Travis Casey
- The Best Guy on the Mud Thing Caliban Tiresias Darklock
- The Best Guy on the Mud Thing Dundee
- The Best Guy on the Mud Thing J C Lawrence
- The Best Guy on the Mud Thing Robin Cloutman
- The Best Guy on the Mud Thing Adam Wiggins
- The Best Guy on the Mud Thing Ilya, Game Commandos
- The Best Guy on the Mud Thing Wes Connell
- The Best Guy on the Mud Thing Laurel Fan
- The Best Guy on the Mud Thing Mik Clarke
- The Best Guy on the Mud Thing J C Lawrence
- The Best Guy on the Mud Thing J C Lawrence
- The Best Guy on the Mud Thing J C Lawrence
- The Best Guy on the Mud Thing Timothy O'Neill Dang
- The Best Guy on the Mud Thing J C Lawrence
- The Best Guy on the Mud Thing Dundee
- The Best Guy on the Mud Thing J C Lawrence
- The Best Guy on the Mud Thing Caliban Tiresias Darklock
- The Best Guy on the Mud Thing Dundee
- The Best Guy on the Mud Thing Adam Wiggins
- The Best Guy on the Mud Thing Greg Miller
- The Best Guy on the Mud Thing Ilya, Game Commandos
- The Best Guy on the Mud Thing Travis S. Casey
- The Best Guy on the Mud Thing Chris Turner
- The Best Guy on the Mud Thing Adam Wiggins
- The Best Guy on the Mud Thing Chris Turner
- The Best Guy on the Mud Thing Ola Fosheim Grøstad
- The Best Guy on the Mud Thing Ilya, Game Commandos
- The Best Guy on the Mud Thing Ola Fosheim Grøstad
- The Best Guy on the Mud Thing Greg Miller
- The Best Guy on the Mud Thing Ola Fosheim Grøstad
- The Best Guy on the Mud Thing Caliban Tiresias Darklock
- The Best Guy on the Mud Thing Greg Miller
- The Best Guy on the Mud Thing Eli Stevens {KiZurich}
- The Best Guy on the Mud Thing Adam Wiggins
- The Best Guy on the Mud Thing J C Lawrence
- The Best Guy on the Mud Thing Wes Connell
- The Best Guy on the Mud Thing Greg Miller
- The Best Guy on the Mud Thing Dundee
- Balancing issues (renamed) Marian Griffith
- Singleton design pattern (OT?) Eli Stevens {KiZurich}
I have been working on the problem of how to best implement the Singleton
class [1] from _Design Patterns_, by Gamma, et al. in C++. I have wasted a
lot of time fooling around with this, and now that I have an answer that I
think I like, I am going to throw it out in hopes that someone else will be
saved a bit of time. :)
My goals for implementation are (YMMV):
1. As clean an implementation as possible.
2. As little code as possible in the final, concrete singleton class.
3. The destructor for a singleton class be called, and only if that class
was used during the program (don't make an instance of a class only to
delete it).
Here is what I have so far (and I think I am done):
----------
template <class Singleton> inline Singleton& Inst( void )
{
static Singleton _inst;
return _inst;
}
class MyClass
{
protected:
MyClass();
public:
template <typename Singleton> friend Singleton& Inst( void );
void myMemberFn( int var ) {};
}
void main()
{
Inst<MyClass>().myMemberFn( 17 );
// at this point, the one instance of MyClass would be created.
// it will automatically be destroyed.
}
----------
One downside to my approach is that passing in values to the constructor
could get ugly since they would all have to go through the Inst function.
If anyone knows of a good way to do so, or a better way to implement
Singletons in general, I would be very interested in knowing more.
Silence is alone
Eli - mailto:c718157@showme.missouri.edu
[1] - A class that is insured to only have one instance in a program and
provides a global point of access to that single instance. Can be used
instead of global varibles to provide more control over the instance.
A basic implementation from _Design Patterns_ (p. 128):
----------
class Singleton
{
public:
static Singleton* Instance();
protected:
Singleton();
private
static Singleton* _instance;
}
Singleton* Singleton::_instance = NULL;
Singleton* Singleton::Instance()
{
if( _instance == NULL )
_instance = new Singleton;
return _instance;
}
---------- - Singleton design pattern (OT?) Wayne Pearson
- Singleton design pattern (OT?) Cynbe ru Taren
- Singleton design pattern (OT?) Adam Wiggins
- OT: My absence J C Lawrence
- ScryMUD: News update (Opening to the Public on the 4th of September!) Ben Greear