// Copyright 2001-2003, Danger, Inc.  All Rights Reserved.
// This file is subject to the Danger, Inc. Sample Code License,
// which is provided in the file SAMPLE_CODE_LICENSE.
// Copies are also available from http://developer.danger.com/

/* Asteroids! */
package com.danger.rocks;

import danger.app.*;
import danger.ui.*;
import danger.audio.*;

class RockStrings 
{
	static void setup()
	{
		int count, max;

		kGameOverMan = rocks.getInstance().getString(Resources.kRsrc_GameOverMan);
		kStr_ResumeGame = rocks.getInstance().getString(Resources.kRsrc_ResumeGame);
		kStr_SoundtrackOn = rocks.getInstance().getString(Resources.kRsrc_SoundtrackOn);
		kStr_SoundtrackOff = rocks.getInstance().getString(Resources.kRsrc_SoundtrackOff);
		kStr_NewGame = rocks.getInstance().getString(Resources.kRsrc_NewGame);
		kStr_EndGame = rocks.getInstance().getString(Resources.kRsrc_EndGame);
		kAppTitle = rocks.getInstance().getString(AppResources.ID_APP_NAME);
		kScore = rocks.getInstance().getString(Resources.kRsrc_Score);
		kHighScoreText = rocks.getInstance().getString(Resources.kRsrc_HighScoreText);
		kPaused = rocks.getInstance().getString(Resources.kRsrc_Paused);
		kPressBack = rocks.getInstance().getString(Resources.kRsrc_PressBack);

		// ok, figure out how many phrases we have, and load them into the
		// static string array sComplete[]
		max = sCompleteRsrcID.length;
		sComplete = new String[max + 1];
		for (count = 0; count < max; count++)
		{
			sComplete[count] = rocks.getInstance().getString(sCompleteRsrcID[count]);
		}
		sComplete[count] = null;

		// do instructions
		max = sInstructionsRsrcID.length;
		sInstructions = new String[max + 1];
		for (count = 0; count < max; count++)
		{
			sInstructions[count] = rocks.getInstance().getString(sInstructionsRsrcID[count]);
		}
		sInstructions[count] = null;

		// do credits
		max = sCreditsRsrcID.length;
		sCredits = new String[max + 1];
		for (count = 0; count < max; count++)
		{
			sCredits[count] = rocks.getInstance().getString(sCreditsRsrcID[count]);
		}
		sCredits[count] = null;

		// do Antagonist speak
		max = sAntagonistSpeakRsrcID.length;
		sAntagonistSpeak = new String[max + 1];
		for (count = 0; count < max; count++)
		{
			sAntagonistSpeak[count] = rocks.getInstance().getString(sAntagonistSpeakRsrcID[count]);
		}
		sAntagonistSpeak[count] = null;

		// do Hero speak
		max = sHeroSpeakRsrcID.length;
		sHeroSpeak = new String[max + 1];
		for (count = 0; count < max; count++)
		{
			sHeroSpeak[count] = rocks.getInstance().getString(sHeroSpeakRsrcID[count]);
		}
		sHeroSpeak[count] = null;
	}

	static String [] sComplete;
	static final int [] sCompleteRsrcID =
	{
		Resources.kRsrc_done1, Resources.kRsrc_done2, Resources.kRsrc_done3, 
		Resources.kRsrc_done4, Resources.kRsrc_done5, Resources.kRsrc_done6,
		Resources.kRsrc_done7, Resources.kRsrc_done8, Resources.kRsrc_done9, 
		Resources.kRsrc_done10, Resources.kRsrc_done11, Resources.kRsrc_done12,
		Resources.kRsrc_done13, Resources.kRsrc_done14, Resources.kRsrc_done15, 
		Resources.kRsrc_done16, Resources.kRsrc_done17, Resources.kRsrc_done18,
		Resources.kRsrc_done19, Resources.kRsrc_done20, Resources.kRsrc_done21, 
		Resources.kRsrc_done22, Resources.kRsrc_done23, Resources.kRsrc_done24,
	};
	

	static String [] sAntagonistSpeak;
	static final int [] sAntagonistSpeakRsrcID =
	{
		Resources.kRsrc_AntSpk1, Resources.kRsrc_AntSpk2, Resources.kRsrc_AntSpk3, 
		Resources.kRsrc_AntSpk4, Resources.kRsrc_AntSpk5, Resources.kRsrc_AntSpk6,
		Resources.kRsrc_AntSpk7
	};

	static String [] sHeroSpeak;
	static final int [] sHeroSpeakRsrcID = 
	{
		Resources.kRsrc_HroSpk1, Resources.kRsrc_HroSpk2, Resources.kRsrc_HroSpk3, 
		Resources.kRsrc_HroSpk4, Resources.kRsrc_HroSpk5, Resources.kRsrc_HroSpk6,
		Resources.kRsrc_HroSpk7
	};

	static String [] sInstructions;
	static final int [] sInstructionsRsrcID =
	{
		Resources.kRsrc_Instr1, Resources.kRsrc_Instr2, Resources.kRsrc_Instr3, 
		Resources.kRsrc_Instr4, Resources.kRsrc_Instr5, 
		Resources.kRsrc_Instr6, Resources.kRsrc_Instr7, Resources.kRsrc_Instr8, 
		Resources.kRsrc_Instr9
	};
	

	static String [] sCredits;
	static final int [] sCreditsRsrcID =
	{
		Resources.kRsrc_Cred1, Resources.kRsrc_Cred2, Resources.kRsrc_Cred3, 
		Resources.kRsrc_Cred4, Resources.kRsrc_Cred5, 
		Resources.kRsrc_Cred6, Resources.kRsrc_Cred7, Resources.kRsrc_Cred8, 
		Resources.kRsrc_Cred9
	};

	static String	kGameOverMan;

	static String	kAppTitle;
	static String	kScore;
	static String	kHighScoreText;
	static String	kPaused;
	static String	kPressBack;

  	static String	kStr_ResumeGame;
  	static String	kStr_SoundtrackOn;
  	static String	kStr_SoundtrackOff;
  	static String	kStr_NewGame;
  	static String	kStr_EndGame;
}

