public void SetEntityType() { if (mType == "Player_Agility") { mAssetKit = new AssetKit_Ship_AGI_01(); mBrain = new Brain_Player(this as Ship, "Agility"); } else if (mType == "Player_Commando") { mAssetKit = new AssetKit_Ship_Commando(); mBrain = new Brain_Player(this as Ship, "Commando"); } else if (mType == "Player_Tank") { mAssetKit = new AssetKit_Ship_PTank(); mBrain = new Brain_Player(this as Ship, "Tank"); } else if (mType == "Grunt_Ship") { mAssetKit = new AssetKit_Ship_GRUNT_01(); mBrain = new Brain_Grunt(this as Ship); } else if (mType == "Tank_Ship") { mAssetKit = new AssetKit_Ship_TANK_01(); mBrain = new Brain_Tank(this as Ship); } else if (mType == "Bomb_Ship") { mAssetKit = new AssetKit_Ship_BOMB_01(); mBrain = new Brain_Bomb(this as Ship); } else if(mType == "Stealth_Ship") { mAssetKit = new AssetKit_Ship_STEALTH_01(); mBrain = new Brain_Stealth(this as Ship); } else if (mType == "Laser_Ship") { mAssetKit = new AssetKit_Ship_LASER_01(); mBrain = new Brain_Laser(this as Ship); } else if (mType == "Grunt_Boss") { mAssetKit = new AssetKit_Ship_GRUNT_BOSS(); mBrain = new Brain_Grunt_Boss(this as Ship); } else if (mType == "Tank_Boss") { mAssetKit = new AssetKit_Ship_TANK_BOSS(); mBrain = new Brain_Tank_Boss(this as Ship); } else if (mType == "Bomb_Boss") { mAssetKit = new AssetKit_Ship_BOMB_BOSS_01(); mBrain = new Brain_Bomb_Boss(this as Ship); } else if (mType == "Satellite") { mAssetKit = new AssetKit_Satellite(); mBrain = new Brain_Satellite(this as Ship); } else { // Console.WriteLine("ERROR: NO OBJECT TYPE!"); } }
public void SetEntityType() { if (mType == "Player_Agility") { mAssetKit = new AssetKit_Ship_AGI_01(); mBrain = new Brain_Player(this as Ship, "Agility"); } else if (mType == "Player_Commando") { mAssetKit = new AssetKit_Ship_Commando(); mBrain = new Brain_Player(this as Ship, "Commando"); } else if (mType == "Player_Tank") { mAssetKit = new AssetKit_Ship_PTank(); mBrain = new Brain_Player(this as Ship, "Tank"); } else if (mType == "Grunt_Ship") { mAssetKit = new AssetKit_Ship_GRUNT_01(); mBrain = new Brain_Grunt(this as Ship); } else if (mType == "Tank_Ship") { mAssetKit = new AssetKit_Ship_TANK_01(); mBrain = new Brain_Tank(this as Ship); } else if (mType == "Bomb_Ship") { mAssetKit = new AssetKit_Ship_BOMB_01(); mBrain = new Brain_Bomb(this as Ship); } else if (mType == "Stealth_Ship") { mAssetKit = new AssetKit_Ship_STEALTH_01(); mBrain = new Brain_Stealth(this as Ship); } else if (mType == "Laser_Ship") { mAssetKit = new AssetKit_Ship_LASER_01(); mBrain = new Brain_Laser(this as Ship); } else if (mType == "Grunt_Boss") { mAssetKit = new AssetKit_Ship_GRUNT_BOSS(); mBrain = new Brain_Grunt_Boss(this as Ship); } else if (mType == "Tank_Boss") { mAssetKit = new AssetKit_Ship_TANK_BOSS(); mBrain = new Brain_Tank_Boss(this as Ship); } else if (mType == "Bomb_Boss") { mAssetKit = new AssetKit_Ship_BOMB_BOSS_01(); mBrain = new Brain_Bomb_Boss(this as Ship); } else if (mType == "Satellite") { mAssetKit = new AssetKit_Satellite(); mBrain = new Brain_Satellite(this as Ship); } else { // Console.WriteLine("ERROR: NO OBJECT TYPE!"); } }