Re: SQLite Data Engine
`zerker2000 wrote:Ah, they were being passed through getCard. Do we actually need to do that?
lots of things call CardFactory.iterator() {often by treating AllZone.getCardFactory() as an Iterable}. many if not all assume that the Card objects are results of getCard.
`zerker2000 wrote:The way I see it, the only thing needed outside the game(and that may exclude libraries) is oracle text(and other characteristics), and that should be parseable in ReadCard using Description tags.
possibly so. i don't want to put oracle text in our txt cards if we can help it.
`zerker2000 wrote:Even if we don't want to create a separate UnparsedCard class, I'm fairly certain that could be added to Card as a boolean, and checked in e.g. DefaultPlayerZone.add.
i'd advocate for a separate class. it's easier to understand. though i think the name could use some work. then again, i could be swayed toward using a relational db for oracle information. notice the pun? maybe it's not a pun. i somehow doubt it's a coincidence that the official card text is called "Oracle" when that is also the name of a popular relational database management system.
would a relational database be faster or more memory efficient than Generators? we would need hard evidence to be certain.
`zerker2000 wrote:By "fleshed out" cards I meant Card Objects, in the MTG Rulebook sense, but yes, the existence of hand/grave abilities does require slightly earlier parsing.
i know that Forge checks for static abilities on cards in libraries. i'm not sure why, though. i would tend to think that only cards in hands, exile, battlefield, graveyards, and command zones need abilities. if someone knows of a counterexample, i'd love to know. 1996 World Champion does not count.
`zerker2000 wrote:And finally, I'm not quite sure if I am volunteering for anything, but I may indeed have a decent amount of free time within the next month.
ok.