ID:151801
![]() Mar 9 2009, 3:47 pm
|
|
I was thinking about creating a card game very soon and I was just wondering, would it be better to Decks of cards, or cards within the deck an obj or a mob?
|
![]() Mar 9 2009, 3:50 pm
|
|
Obj. Mobs are typically considered to be like "people" by many, including NPCs, AI, and the likes. Objs are used to be more of what people would think of as "objects" (not in the programming sense). It's really a matter of preference, though, so do as you choose, though keep in mind you want to keep your project as organized as possible.
|
True but, say, if you wanted to give your cards options, wouldn't it be better to make them Mobs? As people because, I'm not too sure if you can make the Obj's work as an attack in a game system. Though, I could be wrong.
|
Put basically, the only difference between objs and mobs is that objs can't 'house' players. That is, a player /client can only be connected and linked to a /mob type. Other than that, objs and mobs are quite identical.
|
A datum might be a good way to do it as well perhaps. It's probably how I would now go about it anyways.
|
That depends on whether that specific card/deck existence is supposed to be a physical (mappable) object, with an appearance, location and all. Often, it could even be an item complete with its set of verbs such as Get() and Drop(). If an object isn't supposed to take on a physical atom form, then of course it's a good idea to make it a plainer object instead without all the extra atom properties (a datum).
|