So I am writing a YuGiOh game (personal reasons; may release to the public though) in Java (obviously, why I am here) and I came to a conundrum: should I put the following code into different classes; making each individual card have it's own class, or keep it like this?:
Code:
package com.github.bewd.yugioh.main; public class CardListKaiba { private String MonsterCard; MonsterCard BlueEyesWhiteDragon = new MonsterCard( "This legendary dragon is a powerful engine of destruction. Virtually invincible, very few have faced this awesome creature and lived to tell the tale.", "Blue-Eyes White Dragon", "Light", 8, 300, 2500); MonsterCard HitotsuMeGiant = new MonsterCard( "", "", "", 0, 0, 0); MonsterCard RyuKishin = new MonsterCard(); MonsterCard TheWickedWormBeast = new MonsterCard(); MonsterCard BattleOx = new MonsterCard(); MonsterCard KoumoriDragon = new MonsterCard(); MonsterCard JudgeMan = new MonsterCard(); MonsterCard RogueDoll = new MonsterCard(); MonsterCard Kojikocy = new MonsterCard(); MonsterCard Uraby = new MonsterCard(); MonsterCard GyakutennoMegami = new MonsterCard(); MonsterCard MysticHorseman = new MonsterCard(); MonsterCard TerraTheTerrible = new MonsterCard(); MonsterCard DarkTitanOfTerror = new MonsterCard(); MonsterCard DarkAssailant = new MonsterCard(); MonsterCard MasterAndExpert = new MonsterCard(); MonsterCard UnknownWarriorOfFiend = new MonsterCard(); MonsterCard MysticClown = new MonsterCard(); MonsterCard OgreOfTheBlackShadow = new MonsterCard(); SpellCard DarkEnergy = new SpellCard(); SpellCard Invigoration = new SpellCard(); SpellCard DarkHole = new SpellCard(); SpellCard Oozaki = new SpellCard(); MonsterCard RyuKishinPowered = new MonsterCard(); MonsterCard SwordStalker = new MonsterCard(); MonsterCard LaJinn = new MonsterCard(); MonsterCard RudeKaiser = new MonsterCard(); MonsterCard DestroyerGolem = new MonsterCard(); MonsterCard SkullRedBird = new MonsterCard(); MonsterCard DHuman = new MonsterCard(); //get methods public String getMonsterCard(){ return MonsterCard; } }
Also: if anyone would like to join the project; I welcome it.