file_id
int64 1
250k
| content
stringlengths 0
562k
| repo
stringlengths 6
115
| path
stringlengths 1
147
|
---|---|---|---|
101 | UML - Unified Modelling Language
9 diagrams
Class
Object
Use case
Sequence
Collaboration
Activity
Statechart
Deployment
Component
Access Modifier
public : +
protected : #
private : -
Types of relationships
extensibility : inheritance, is-A relationship
A ⊲- B ; B is derived from A
association : aggregation or composition, has-A relationship
A ◇- B ; A aggregates B (A is consist of B)
A ◆- B ; A is composed of B (A contains B type objects)
dependency : dependency, uses-A relationship
A <-- B ; B depends upon A (B uses A)
ex) Gas Station <-- Car ◆- Tire
| sijoonlee/java-design-patterns | 10.java |
103 | class X extends sum {
private int sum_of_two_varriabls(int X , int Y ,int Z){
return X+Y+Z;
}
public static void main(String[] args){
sum s = new sum();
System.out.println(s.sum_of_two_varriabls(10,20));
}
}
| anshusarkar/Java | X.java |
104 | import java.io.IOException;
public class T
{
// Test class for jdbc2_fdw java code
//
// Heimir Sverrisson, 2015-04-17
//
private String a[] = {
"org.postgresql.Driver", // Driver class name
"jdbc:postgresql://localhost:5432/datawarehouse", // URL
"datawarehouse", // username
"S2mpleS2mple", // password
"15", // querytimeout (seconds)
"/usr/local/jars/postgresql-9.4-1201.jdbc41.jar" // jarfile
};
private JDBCUtils jdbcUtils;
// Public constructor
public T(){
jdbcUtils = new JDBCUtils();
}
// The method that calls JNI createConnection
private String createConnection() throws IOException{
return jdbcUtils.createConnection(a);
}
// Create statement
private String createStatement(String query) throws IOException{
return jdbcUtils.createStatement(query);
}
private void iterate(){
String res[];
while((res = jdbcUtils.returnResultSet()) != null){
for(int i=0; i < res.length; i++){
System.out.print(res[i] + '\t');
}
System.out.println();
}
}
private String closeStatement(){
return jdbcUtils.closeStatement();
}
private String closeConnection(){
return jdbcUtils.closeConnection();
}
private void printNumberOfColumns(){
System.out.println("Number of columns: " + jdbcUtils.getNumberOfColumns());
}
private void report(String s, String operation){
if(s == null){
System.out.println("Successful " + operation);
} else {
System.out.println(operation + " throws exception:\n" + s);
}
}
private static String query1 = "SELECT * from staging.sta_utilities";
private static String query2 = "SELECT full_name,name,id,current_timestamp from staging.sta_utilities";
public static void main(String args[]) throws IOException{
T t = new T();
t.report(t.createConnection(), "createConnection");
t.report(t.createStatement(query1), "createStatement");
t.printNumberOfColumns();
t.iterate();
t.report(t.closeStatement(), "closeStatement");
t.report(t.createStatement(query2), "createStatement");
t.printNumberOfColumns();
t.iterate();
t.report(t.closeConnection(), "closeConnection");
t.report(t.createStatement(query2), "createStatement");
System.exit(0);
}
}
| heimir-sverrisson/jdbc2_fdw | T.java |
106 | package Edureka;
import java.util.Scanner;
public class Factorial {
public static void main(String args[]){
//Scanner object for capturing the user input
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the number:");
//Stored the entered value in variable
int num = scanner.nextInt();
//Called the user defined function fact
int factorial = fact(num);
System.out.println("Factorial of entered number is: "+factorial);
}
static int fact(int n)
{
int output;
if(n==1){
return 1;
}
//Recursion: Function calling itself!!
output = fact(n-1)* n;
return output;
}
}
| bsr87/Hacktoberfest | Factorial of a number |
107 | class Solution {
public int lengthOfLongestSubstring(String s) {
//FBIP
//use HashMap and two pointers get length of longest substring with TC O(n)
if (s == null || s.length() == 0) return 0;
HashMap<Character, Integer> map = new HashMap();
int result = 0, l = 0, r = 0;
while (r < s.length()){ //scanning s using r pointer and l stands for previous index of repeated character
if (map.containsKey(s.charAt(r)))
l = Math.max(l, map.get(s.charAt(r)) + 1); //must plus 1, s.charAt(r) is repeated char so must count after it
result = Math.max(result, r - l + 1); //must plus 1 since length is index (r - l) + 1
map.put(s.charAt(r), r++);
}
return result;
}
} | EdwardHXu/FBIP-LC | 3.java |
108 | import java.io.ByteArrayInputStream;
import java.io.PrintStream;
import java.util.Random;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.media.Manager;
import javax.microedition.media.Player;
import javax.microedition.midlet.MIDlet;
public final class Game
extends resourcesAndControls
implements Runnable
{
public Image[] imageArrayA;
public Image imageA;
public Image imageB;
public Image imageC;
public Image imageD;
public Image[] imageArrayB;
public int intA;
public String stringA;
public Player[] playerArrayA;
public int b;
public int c;
public int d;
public int e;
public int controlsThreshold;
public int g;
public byte[] a;
public int h;
public int i;
public byte[][] a;
public byte[] b;
public int[] a;
public byte a;
public int j = 10;
public String b;
public byte[][] b;
public byte[] c;
public byte[] d;
public int k = 18;
public int l = 80;
public int m = 120;
public int n = 0;
public int o = 0;
public int p = 0;
public int q = 0;
public int r = 1;
public int s = 24;
public int t = this.l / this.s;
public int u = this.m / this.s;
public int v = 20;
public int w = 5;
public int fireActive = 0;
public int[] b;
public int somePhysicsIndex;
public int z;
public byte b;
public int[] c;
public int[] d;
public int[] e;
public int[] f;
public int[] g;
public int[] h;
public int[] i;
public int A;
public int B;
public int C;
public int D;
public int E;
public int F;
public int G = 0;
public int H = 0;
public int I = 0;
public int J = 0;
public int K = 0;
public int L = 0;
public int M = 0;
public int N = 1;
public int O = 1;
public int P = 210;
public int Q = 3;
public int R = 0;
public int S;
public int T;
public int U;
public int V;
public int W;
public int X;
public int Y = 0;
public int[][] a;
public int Z = 64;
public int aa = 100;
public int ab = 0;
public int ac = 0;
public int ad = 0;
public int ae = 20;
public int af = 24;
public int ag = 90;
public int ah = 20;
public byte c;
public int ai = 4;
public int aj = 6;
public byte d;
private String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
private int[] jdField_c_of_type_ArrayOfInt = new int[16];
private int[] jdField_d_of_type_ArrayOfInt = new int[16];
private int[] jdField_e_of_type_ArrayOfInt = new int[16];
private int[] jdField_f_of_type_ArrayOfInt = new int[16];
private int[] jdField_g_of_type_ArrayOfInt = new int[16];
private int[] maybePositionAndVelocity1 = new int[4];
private int[] maybePositionAndVelocity2 = new int[4];
public Game()
{
this.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiImage = new Image[5];
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage = new Image[10];
this.jdField_a_of_type_Int = 1;
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer = new Player[6];
this.jdField_b_of_type_Int = 1000;
this.jdField_c_of_type_Int = 0;
this.jdField_d_of_type_Int = 49;
this.jdField_e_of_type_Int = 0;
this.jdField_f_of_type_Int = 0;
this.jdField_g_of_type_Int = 0;
this.jdField_a_of_type_ArrayOfByte = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
this.jdField_h_of_type_Int = 0;
this.jdField_i_of_type_Int = 0;
this.jdField_a_of_type_Array2dOfByte = new byte[][] { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
this.jdField_b_of_type_ArrayOfByte = new byte[] { 0, 0, 0 };
this.jdField_a_of_type_ArrayOfInt = new int[] { 4, 1, 1, 0 };
this.jdField_a_of_type_Byte = 0;
this.jdField_b_of_type_Array2dOfByte = new byte[][] { { 64, 64, 64, 64, 64, 64, 64, 64, 64 }, { 64, 64, 64, 64, 62, 64, 64, 64, 64 }, { 63, 63, 63, 63, 63, 63, 63, 63, 63 }, { 14, 14, 15, 15, 14, 15, 14, 14, 14 }, { 43, 14, 42, 43, 14, 42, 43, 15, 42 }, { 40, 40, 40, 15, 14, 42, 41, 41, 41 }, { 64, 47, 14, 47, 14, 44, 14, 44, 64 }, { 14, 46, 64, 45, 14, 46, 64, 45, 14 }, { 24, 15, 14, 14, 24, 14, 15, 14, 24 }, { 14, 14, 26, 14, 26, 15, 26, 15, 14 }, { 14, 15, 25, 14, 25, 15, 25, 14, 14 }, { 27, 14, 15, 15, 27, 15, 14, 15, 27 }, { 45, 44, 64, 64, 64, 64, 64, 47, 46 }, { 47, 46, 64, 45, 44, 64, 64, 64, 64 }, { 35, 32, 64, 31, 28, 64, 64, 64, 64 }, { 43, 15, 42, 31, 24, 28, 64, 64, 64 } };
this.jdField_b_of_type_ArrayOfInt = new int[] { 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16 };
this.jdField_b_of_type_Byte = 0;
this.jdField_a_of_type_Array2dOfInt = new int[][] { { 23, 79, 176 }, { 171, 132, 114 }, { 55, 46, 131 }, { 31, 4, 16 }, { 195, 214, 255 }, { 100, 123, 234 } };
this.jdField_c_of_type_Byte = 110;
this.jdField_d_of_type_Byte = 8;
System.out.println("Game started.");
setFullScreenMode(true);
imageB.width = getWidth();
imageB.height = getHeight();
imageB.halfWidth = imageB.width / 2;
imageB.halfHeight = imageB.height / 2;
this.j = (Math.max(imageB.height, imageB.width) * 3 / 4 / 16);
this.controls = new byte[11];
for (int i1 = 0; i1 < 11; i1++) {
this.controls[i1] = 0;
}
this.randomGen = new Random(476543L);
this.jdField_e_of_type_JavaxMicroeditionLcduiImage = Image.createImage(imageB.width, imageB.height);
this.jdField_a_of_type_JavaxMicroeditionLcduiGraphics = this.jdField_e_of_type_JavaxMicroeditionLcduiImage.getGraphics();
try
{
this.version = magneticjoe.display.getAppProperty("MIDlet-Version");
}
catch (Exception localException2)
{
this.version = "1.0";
}
somethingWithAudio();
i1 = 0;
try
{
for (;;)
{
this.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiImage[i1] = Image.createImage(this.imageC + "/splash" + i1 + ".png");
i1++;
}
}
catch (Exception localException3)
{
System.out.println("Splash count:" + i1);
this.jdField_a_of_type_Int = i1;
try
{
this.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiImage[i1] = Image.createImage(this.imageC + "/title.png");
}
catch (Exception localException1)
{
System.out.println("Error: cannot load image!" + localException1);
}
Image.createImage(1, 1);
a();
loadRecords(this.jdField_a_of_type_ArrayOfInt, this.jdField_a_of_type_Array2dOfByte[0], this.jdField_a_of_type_Array2dOfByte[1], this.jdField_a_of_type_Array2dOfByte[2]);
System.out.println("Started data: " + this.jdField_a_of_type_ArrayOfInt[0] + ", " + this.jdField_a_of_type_ArrayOfInt[1] + ", " + this.jdField_a_of_type_ArrayOfInt[2] + ", " + this.jdField_a_of_type_ArrayOfInt[3]);
this.jdField_d_of_type_Int = this.jdField_a_of_type_ArrayOfInt[0];
this.N = this.jdField_a_of_type_ArrayOfInt[1];
this.O = this.jdField_a_of_type_ArrayOfInt[2];
this.jdField_h_of_type_Int = this.jdField_a_of_type_ArrayOfInt[3];
}
}
private void somethingWithAudio()
{
String[] arrayOfString1 = { "/mj.mid", "/mj_win.mid", "/mj_lose.mid", "/mj_button1.wav", "/mj_button2.wav", "/mj_button3.wav" };
String[] arrayOfString2 = { "audio/midi", "audio/midi", "audio/midi", "audio/x-wav", "audio/x-wav", "audio/x-wav" };
try
{
for (int i1 = 0; i1 < this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer.length; i1++)
{
if (this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[i1] != null)
{
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[i1].close();
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[i1] = null;
}
byte[] arrayOfByte = imageB.getSomeResource(this.imageD + arrayOfString1[i1]);
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[i1] = Manager.createPlayer(new ByteArrayInputStream(arrayOfByte), arrayOfString2[i1]);
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[i1].realize();
}
return;
}
catch (Exception localException)
{
System.out.println(localException);
}
}
private void aaa(int paramInt)
{
int i1 = 0;
if (this.N == 0) {
return;
}
if (paramInt >= this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer.length) {
return;
}
try
{
if ((paramInt != this.jdField_b_of_type_Int) && (this.jdField_b_of_type_Int < this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer.length)) {
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[this.jdField_b_of_type_Int].stop();
}
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[paramInt].start();
this.jdField_b_of_type_Int = paramInt;
return;
}
catch (Exception localException1)
{
System.out.println(localException1);
this.jdField_b_of_type_Int = 1000;
try
{
for (i1 = 0; i1 < this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer.length; i1++) {
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[i1].stop();
}
return;
}
catch (Exception localException2)
{
System.out.println(localException2);
}
}
}
private void pauseMusic()
{
if (this.jdField_b_of_type_Int >= this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer.length) {
return;
}
try
{
this.jdField_a_of_type_ArrayOfJavaxMicroeditionMediaPlayer[this.jdField_b_of_type_Int].stop();
return;
}
catch (Exception localException)
{
System.out.println(localException);
}
}
private void d()
{
this.jdField_a_of_type_ArrayOfInt[0] = this.jdField_d_of_type_Int;
this.jdField_a_of_type_ArrayOfInt[1] = this.N;
this.jdField_a_of_type_ArrayOfInt[2] = this.O;
this.jdField_a_of_type_ArrayOfInt[3] = this.jdField_h_of_type_Int;
saveRecords(this.jdField_a_of_type_ArrayOfInt, this.jdField_a_of_type_Array2dOfByte[0], this.jdField_a_of_type_Array2dOfByte[1], this.jdField_a_of_type_Array2dOfByte[2]);
}
private void e()
{
for (int i1 = 0; i1 < 11; i1++)
{
int tmp13_12 = i1;
byte[] tmp13_9 = this.controls;
tmp13_9[tmp13_12] = ((byte)(tmp13_9[tmp13_12] + ((this.controls[i1] & 0x1) << 2)));
}
switch (this.gameState)
{
case -3:
maybeDoExitOrLoad();
break;
case Running:
doPhysics();
break;
case Paused:
doMenu();
}
for (i1 = 0; i1 < 11; i1++) {
if (this.controls[i1] > 3)
{
int tmp105_104 = i1;
byte[] tmp105_101 = this.controls;
tmp105_101[tmp105_104] = ((byte)(tmp105_101[tmp105_104] & 0x2));
}
else
{
int tmp119_118 = i1;
byte[] tmp119_115 = this.controls;
tmp119_115[tmp119_118] = ((byte)(tmp119_115[tmp119_118] & 0x3));
}
}
}
private void a(Graphics paramGraphics)
{
switch (this.gameState)
{
case MaybeEndOrLoad:
b(paramGraphics);
return;
case Running:
q(paramGraphics);
return;
case Paused:
p(paramGraphics);
}
}
public final void paint(Graphics paramGraphics)
{
paramGraphics.drawImage(this.jdField_e_of_type_JavaxMicroeditionLcduiImage, 0, 0, 20);
}
public final void hideNotify()
{
pauseMusic();
if ((this.gameState != -3) && (this.gameState != -2) && (this.H == 0))
{
this.gameState = -2;
this.as = 10;
}
for (int i1 = 0; i1 < 11; i1++) {
this.controls[i1] = 0;
}
}
public final void run()
{
System.out.println("haho SW:" + imageB.width + " SH:" + imageB.height);
System.gc();
System.out.println("gamestart:" + Runtime.getRuntime().freeMemory());
for (;;)
{
this.at += 1;
try
{
this.jdField_a_of_type_Long = System.currentTimeMillis();
e();
if (this.jdField_a_of_type_JavaxMicroeditionLcduiGraphics != null) {
getSomeResource(this.jdField_a_of_type_JavaxMicroeditionLcduiGraphics);
}
repaint();
serviceRepaints();
this.imageB = (System.currentTimeMillis() - this.jdField_a_of_type_Long);
if (this.imageB < this.ap) {
Thread.sleep(this.ap - this.imageB);
}
}
catch (Exception localException) {}
}
}
private int weirdMethodReturningInt()
{
int i2 = 0;
byte[] arrayOfByte = new byte[16];
this.jdField_b_of_type_ArrayOfByte[0] = 0;
this.jdField_b_of_type_ArrayOfByte[1] = 0;
this.jdField_b_of_type_ArrayOfByte[2] = 0;
for (int i1 = 0; i1 < 16; i1++) {
arrayOfByte[i1] = this.jdField_a_of_type_ArrayOfByte[i1];
}
for (i1 = 0; i1 < 16; i1++) {
this.jdField_a_of_type_ArrayOfByte[i1] = this.jdField_a_of_type_Array2dOfByte[0][i1];
}
if (b() == 1)
{
i2++;
this.jdField_b_of_type_ArrayOfByte[0] = 1;
}
for (i1 = 0; i1 < 16; i1++) {
this.jdField_a_of_type_ArrayOfByte[i1] = this.jdField_a_of_type_Array2dOfByte[1][i1];
}
if (b() == 1)
{
i2++;
this.jdField_b_of_type_ArrayOfByte[1] = 1;
}
for (i1 = 0; i1 < 16; i1++) {
this.jdField_a_of_type_ArrayOfByte[i1] = this.jdField_a_of_type_Array2dOfByte[2][i1];
}
if (b() == 1)
{
i2++;
this.jdField_b_of_type_ArrayOfByte[2] = 1;
}
for (i1 = 0; i1 < 16; i1++) {
this.jdField_a_of_type_ArrayOfByte[i1] = arrayOfByte[i1];
}
return i2;
}
private int b()
{
int i1 = 0;
int i2 = 0;
int i3 = 0;
int i4 = 0;
int i6 = 0;
for (i1 = 0; i1 < 16; i1++) {
i6 += this.jdField_a_of_type_ArrayOfByte[i1] % 16;
}
for (i1 = 0; i1 < 16; i1++) {
if (this.jdField_a_of_type_ArrayOfByte[i1] > 31) {
return 0;
}
}
int i5 = 1;
i2 = 0;
for (i1 = 8; i1 < 16; i1++)
{
if (this.jdField_a_of_type_ArrayOfByte[i1] / 16 > 0) {
i2 += i5;
}
i5 *= 2;
}
if ((i2 + i6) % 256 != 0) {
return 0;
}
i5 = 1;
i3 = 0;
for (i1 = 0; i1 < 4; i1++)
{
if (this.jdField_a_of_type_ArrayOfByte[i1] / 16 > 0) {
i3 += i5;
}
i5 *= 2;
}
if (i3 == 0) {
return 0;
}
i5 = 1;
i4 = 0;
for (i1 = 4; i1 < 8; i1++)
{
if (this.jdField_a_of_type_ArrayOfByte[i1] / 16 > 0) {
i4 += i5;
}
i5 *= 2;
}
if (i4 == 0) {
return 0;
}
if (i3 * i4 > 16) {
return 0;
}
i2 = 0;
for (i1 = 0; i1 < 16; i1++) {
if (this.jdField_a_of_type_ArrayOfByte[i1] % 16 == 1) {
i2++;
}
}
if (i2 != 1) {
return 0;
}
i2 = 0;
for (i1 = 0; i1 < 16; i1++) {
if (this.jdField_a_of_type_ArrayOfByte[i1] % 16 == 2) {
i2++;
}
}
if (i2 == 0) {
return 0;
}
return 1;
}
private void f()
{
int i3 = 0;
int i4 = 0;
int i5 = 1;
i3 = 0;
for (int i1 = 0; i1 < 4; i1++)
{
if (this.jdField_a_of_type_ArrayOfByte[i1] / 16 > 0) {
i3 += i5;
}
i5 *= 2;
}
i5 = 1;
i4 = 0;
for (i1 = 0; i1 < 4; i1++)
{
if (this.jdField_a_of_type_ArrayOfByte[(i1 + 4)] / 16 > 0) {
i4 += i5;
}
i5 *= 2;
}
System.out.println("CODE w:" + i3 + "h:" + i4);
if (i3 == 0) {
i3 = 1;
}
if (i4 == 0) {
i4 = 1;
}
this.jdField_c_of_type_ArrayOfByte = new byte[(i3 * 3 + 8) * (i4 * 3 + 8)];
this.k = (i3 * 3 + 8);
for (i1 = 0; i1 < this.jdField_c_of_type_ArrayOfByte.length; i1++) {
this.jdField_c_of_type_ArrayOfByte[i1] = 64;
}
for (i1 = 0; i1 < 4 * this.k; i1++) {
this.jdField_c_of_type_ArrayOfByte[i1] = 14;
}
for (i1 = this.jdField_c_of_type_ArrayOfByte.length - 1; i1 > this.jdField_c_of_type_ArrayOfByte.length - 1 - 4 * this.k; i1--) {
this.jdField_c_of_type_ArrayOfByte[i1] = 14;
}
i1 = 0;
while (i1 < this.jdField_c_of_type_ArrayOfByte.length)
{
this.jdField_c_of_type_ArrayOfByte[i1] = 14;
this.jdField_c_of_type_ArrayOfByte[(i1 + 1)] = 14;
this.jdField_c_of_type_ArrayOfByte[(i1 + 2)] = 14;
this.jdField_c_of_type_ArrayOfByte[(i1 + 3)] = 14;
i1 += this.k;
}
i1 = this.k - 1;
while (i1 < this.jdField_c_of_type_ArrayOfByte.length)
{
this.jdField_c_of_type_ArrayOfByte[i1] = 14;
this.jdField_c_of_type_ArrayOfByte[(i1 - 1)] = 14;
this.jdField_c_of_type_ArrayOfByte[(i1 - 2)] = 14;
this.jdField_c_of_type_ArrayOfByte[(i1 - 3)] = 14;
i1 += this.k;
}
for (int i2 = 0; i2 < i4; i2++) {
for (i1 = 0; i1 < i3; i1++)
{
i5 = 4 + i1 * 3 + this.k * (4 + i2 * 3);
this.jdField_c_of_type_ArrayOfByte[i5] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][0];
this.jdField_c_of_type_ArrayOfByte[(i5 + 1)] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][1];
this.jdField_c_of_type_ArrayOfByte[(i5 + 2)] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][2];
i5 += this.k;
this.jdField_c_of_type_ArrayOfByte[i5] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][3];
this.jdField_c_of_type_ArrayOfByte[(i5 + 1)] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][4];
this.jdField_c_of_type_ArrayOfByte[(i5 + 2)] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][5];
i5 += this.k;
this.jdField_c_of_type_ArrayOfByte[i5] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][6];
this.jdField_c_of_type_ArrayOfByte[(i5 + 1)] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][7];
this.jdField_c_of_type_ArrayOfByte[(i5 + 2)] = this.jdField_b_of_type_Array2dOfByte[(this.jdField_a_of_type_ArrayOfByte[(i1 + i3 * i2)] % 16)][8];
}
}
for (i1 = 0; i1 < this.jdField_c_of_type_ArrayOfByte.length; i1++) {
if (this.jdField_c_of_type_ArrayOfByte[i1] == 62)
{
this.l = (i1 % this.k * this.s + this.s / 2);
this.m = (i1 / this.k * this.s + this.s / 2);
}
}
this.G = (2 * randUnsigned(3));
}
private void g()
{
int[] arrayOfInt = { 3, 4, 35, 6, 2, 8, 9, 20, 36, 11, 12, 19, 14, 31, 34, 21, 33, 7, 37, 15, 1, 29, 13, 18, 16, 10, 25, 22, 24, 17, 0, 26, 23, 27, 5, 28, 30, 32, 40, 43, 41, 39, 38, 44, 45, 46, 42, 49, 48, 47, 0, 0 };
byte[] arrayOfByte;
int i2 = (arrayOfByte = imageB.getSomeResource(this.jdField_e_of_type_JavaLangString + "/level.dat"))[(arrayOfInt[this.jdField_c_of_type_Int] * 4 + 2)];
int i3 = arrayOfByte[(arrayOfInt[this.jdField_c_of_type_Int] * 4 + 3)];
int i4 = (i4 = 128 * (arrayOfByte[(arrayOfInt[this.jdField_c_of_type_Int] * 4)] + 100)) + arrayOfByte[(arrayOfInt[this.jdField_c_of_type_Int] * 4 + 1)];
this.jdField_c_of_type_ArrayOfByte = new byte[i2 * i3];
this.k = i2;
for (int i1 = 0; i1 < i2 * i3; i1++)
{
this.jdField_c_of_type_ArrayOfByte[i1] = arrayOfByte[(i1 + i4)];
if (this.jdField_c_of_type_ArrayOfByte[i1] == 62)
{
this.l = (i1 % this.k * this.s + this.s / 2);
this.m = (i1 / this.k * this.s + this.s / 2);
}
}
if ((this.jdField_c_of_type_Int > -1) && (this.jdField_c_of_type_Int < 5)) {
this.G = 0;
}
if ((this.jdField_c_of_type_Int > 4) && (this.jdField_c_of_type_Int < 20)) {
this.G = 2;
}
if ((this.jdField_c_of_type_Int > 19) && (this.jdField_c_of_type_Int < 35)) {
this.G = 0;
}
if (this.jdField_c_of_type_Int > 34) {
this.G = 4;
}
}
private void h()
{
this.n = 0;
this.o = 0;
this.p = 0;
this.q = 0;
this.r = 1;
this.t = (this.l / this.s);
this.u = (this.m / this.s);
this.fireActive = 0;
}
private void i()
{
if (this.jdField_g_of_type_Int == 0) {
g();
} else {
f();
}
this.z = 0;
this.H = 0;
this.J = 0;
n();
m();
h();
try
{
switch (this.G)
{
case 4:
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[2] = Image.createImage(this.imageC + "/set3.png");
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[3] = Image.createImage(this.imageC + "/back_3.png");
break;
case 2:
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[2] = Image.createImage(this.imageC + "/set2.png");
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[3] = Image.createImage(this.imageC + "/back_2.png");
break;
case 0:
case 1:
case 3:
default:
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[2] = Image.createImage(this.imageC + "/set1.png");
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[3] = Image.createImage(this.imageC + "/back_1.png");
}
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[4] = Image.createImage(this.imageC + "/pause.png");
}
catch (Exception localException)
{
System.out.println("E Midlet:" + localException.getMessage());
}
this.Z = this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[3].getWidth();
this.aa = this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[3].getHeight();
this.ad = (imageB.halfHeight - this.Z / 2 - 20);
this.ac = this.ad;
aaa(0);
}
private void maybeDoExitOrLoad()
{
// Check if 46th string contains on position 36 characters "Thi" for "Thicc"
if ((this.jdField_a_of_type_ArrayOfJavaLangString[46].charAt(36) != 'T') || (this.jdField_a_of_type_ArrayOfJavaLangString[46].charAt(37) != 'h') || (this.jdField_a_of_type_ArrayOfJavaLangString[46].charAt(38) != 'i'))
{
magneticjoe.display.destroyApp(false);
magneticjoe.display.notifyDestroyed();
}
if ((this.at > (this.as + 1) * 20) && (this.as < this.jdField_a_of_type_Int)) {
this.as += 1;
}
if (((this.as >= this.jdField_a_of_type_Int) && (this.controls[10] > this.jdField_e_of_type_Byte)) || (this.at > (this.as + 2) * 20))
{
for (int i1 = 0; i1 < this.jdField_a_of_type_Int; i1++) {
this.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiImage[i1] = Image.createImage(1, 1);
}
try
{
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[1] = Image.createImage(this.imageC + "/fig_s60.png");
this.jdField_a_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/arrows.png");
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[5] = Image.createImage(this.imageC + "/fig2_s60.png");
this.jdField_b_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/title_mini.png");
this.jdField_c_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/options.png");
}
catch (Exception localException) {}
this.as = 0;
this.gameState = State.Paused;
}
}
private void doMenu()
{
this.P += this.Q;
if ((this.P >= 255) || (this.P <= 120)) {
this.Q = (-1 * this.Q);
}
if (this.H > 0)
{
this.H += 1;
if (this.H > this.j)
{
this.H = 0;
this.I = this.j;
this.gameState = State.Running;
}
return;
}
if (this.I > 0)
{
this.I--;
return;
}
if ((this.as != 10) && (this.as != 5) && (this.as != 6) && ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte))) {
aaa(4);
}
if ((this.as != 10) && (this.as != 5) && (this.as != 6) && (this.controls[6] > this.jdField_e_of_type_Byte)) {
aaa(5);
}
switch (this.as)
{
case 0:
if ((this.controls[0] > this.jdField_e_of_type_Byte) && (this.K > 0)) {
this.K -= 1;
}
if ((this.controls[1] > this.jdField_e_of_type_Byte) && (this.K < 3)) {
this.K += 1;
}
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte)) {
switch (this.K)
{
case 0:
this.as = 1;
break;
case 1:
this.as = 14;
break;
case 2:
this.as = 3;
break;
case 3:
this.as = 8;
}
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
d();
magneticjoe.display.destroyApp(false);
magneticjoe.display.notifyDestroyed();
return;
}
break;
case 1:
if ((this.controls[0] > this.controlsThreshold) && (this.jdField_c_of_type_Int > 0)) {
this.jdField_c_of_type_Int -= 1;
}
if ((this.controls[1] > this.controlsThreshold) && (this.jdField_c_of_type_Int < this.jdField_d_of_type_Int)) {
this.jdField_c_of_type_Int += 1;
}
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte))
{
this.jdField_g_of_type_Int = 0;
i();
this.H = 1;
}
if (this.controls[6] > this.jdField_e_of_type_Byte) {
this.as = 0;
}
if (this.jdField_c_of_type_Int < this.jdField_e_of_type_Int) {
this.jdField_e_of_type_Int = this.jdField_c_of_type_Int;
}
if (this.jdField_e_of_type_Int + 4 - 1 < this.jdField_c_of_type_Int)
{
this.jdField_e_of_type_Int = (this.jdField_c_of_type_Int - 4 + 1);
return;
}
break;
case 2:
if (this.controls[2] > this.jdField_e_of_type_Byte) {
this.Y -= 1;
}
if (this.Y < 0) {
this.Y += 16;
}
if (this.controls[3] > this.jdField_e_of_type_Byte) {
this.Y = ((this.Y + 1) % 16);
}
if (this.controls[0] > this.controlsThreshold) {
this.jdField_a_of_type_ArrayOfByte[this.Y] = ((byte)((this.jdField_a_of_type_ArrayOfByte[this.Y] + 1) % this.alphabet.length()));
}
if (this.controls[1] > this.controlsThreshold)
{
this.jdField_a_of_type_ArrayOfByte[this.Y] = ((byte)(this.jdField_a_of_type_ArrayOfByte[this.Y] - 1));
if (this.jdField_a_of_type_ArrayOfByte[this.Y] < 0)
{
int tmp804_801 = this.Y;
byte[] tmp804_797 = this.jdField_a_of_type_ArrayOfByte;
tmp804_797[tmp804_801] = ((byte)(tmp804_797[tmp804_801] + this.alphabet.length()));
}
}
if (this.controls[6] > this.jdField_e_of_type_Byte) {
this.as = 14;
}
this.jdField_f_of_type_Int = b();
if (((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte)) && (this.jdField_f_of_type_Int == 1))
{
l();
this.jdField_g_of_type_Int = 1;
i();
this.H = 1;
return;
}
break;
case 9:
if ((this.controls[0] > this.jdField_e_of_type_Byte) && (this.X > 0)) {
this.X -= 1;
}
if ((this.controls[1] > this.jdField_e_of_type_Byte) && (this.X < this.U - (this.ai - 1))) {
this.X += 1;
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 14;
return;
}
break;
case 13:
int i2 = 1;
if (this.controls[0] > this.jdField_e_of_type_Byte)
{
this.jdField_h_of_type_Int -= 1;
i2 = -1;
}
if (this.controls[1] > this.jdField_e_of_type_Byte)
{
this.jdField_h_of_type_Int += 1;
i2 = 1;
}
this.jdField_h_of_type_Int %= 3;
if (this.jdField_h_of_type_Int < 0) {
this.jdField_h_of_type_Int += 3;
}
this.jdField_i_of_type_Int = weirdMethodReturningInt();
if (this.jdField_i_of_type_Int > 0)
{
while (this.jdField_b_of_type_ArrayOfByte[this.jdField_h_of_type_Int] == 0)
{
this.jdField_h_of_type_Int = ((this.jdField_h_of_type_Int + i2) % 3);
if (this.jdField_h_of_type_Int < 0) {
this.jdField_h_of_type_Int += 3;
}
}
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte))
{
for (int i1 = 0; i1 < 16; i1++) {
this.jdField_a_of_type_ArrayOfByte[i1] = this.jdField_a_of_type_Array2dOfByte[this.jdField_h_of_type_Int][i1];
}
this.jdField_g_of_type_Int = 1;
i();
this.H = 1;
}
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 14;
return;
}
break;
case 3:
if ((this.jdField_a_of_type_Byte > 0) && (this.controls[10] > this.jdField_e_of_type_Byte)) {
if (this.controls[2] > this.jdField_e_of_type_Byte) {
this.jdField_a_of_type_Byte = ((byte)(this.jdField_a_of_type_Byte + 0));
} else {
this.jdField_a_of_type_Byte = 0;
}
}
if (this.controls[3] > this.jdField_e_of_type_Byte) {
this.jdField_a_of_type_Byte = 1;
}
if (this.controls[2] > this.jdField_e_of_type_Byte)
{
if ((this.jdField_a_of_type_Byte > 0) && (this.jdField_a_of_type_Byte < 4)) {
this.jdField_a_of_type_Byte = ((byte)(this.jdField_a_of_type_Byte + 1));
}
if (this.jdField_a_of_type_Byte == 4)
{
aaa(1);
this.jdField_a_of_type_Byte = 0;
this.jdField_d_of_type_Int = 49;
d();
}
}
if ((this.controls[0] > this.jdField_e_of_type_Byte) && (this.L > 0)) {
this.L -= 1;
}
if ((this.controls[1] > this.jdField_e_of_type_Byte) && (this.L < 2)) {
this.L += 1;
}
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte)) {
switch (this.L)
{
case 0:
this.N = (1 - this.N);
if (this.N == 0) {
pauseMusic();
}
break;
case 1:
this.O = (1 - this.O);
break;
case 2:
this.as = 7;
}
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 0;
return;
}
break;
case 5:
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte)) {
if (this.jdField_g_of_type_Int == 1)
{
i();
this.H = 1;
}
else if (this.jdField_c_of_type_Int < this.jdField_d_of_type_Int)
{
this.jdField_c_of_type_Int += 1;
i();
this.H = 1;
}
else
{
this.as = 12;
}
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 0;
return;
}
break;
case 6:
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte))
{
i();
this.H = 1;
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 0;
return;
}
break;
case 12:
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 0;
return;
}
break;
case 7:
if ((this.controls[0] > this.jdField_e_of_type_Byte) && (this.V > 0)) {
this.V -= 1;
}
if ((this.controls[1] > this.jdField_e_of_type_Byte) && (this.V < this.S - (this.ai - 1))) {
this.V += 1;
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 3;
return;
}
break;
case 8:
if ((this.controls[0] > this.jdField_e_of_type_Byte) && (this.W > 0)) {
this.W -= 1;
}
if ((this.controls[1] > this.jdField_e_of_type_Byte) && (this.W < this.T - (this.ai - 1))) {
this.W += 1;
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 0;
return;
}
break;
case 10:
if ((this.controls[0] > this.jdField_e_of_type_Byte) && (this.R > 0)) {
this.R -= 1;
}
if ((this.controls[1] > this.jdField_e_of_type_Byte) && (this.R < 2)) {
this.R += 1;
}
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte)) {
switch (this.R)
{
case 0:
aaa(0);
this.gameState = -1;
break;
case 1:
this.N = (1 - this.N);
if (this.N == 0) {
pauseMusic();
}
break;
case 2:
i();
this.H = 1;
}
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
pauseMusic();
this.as = 0;
return;
}
break;
case 14:
if ((this.controls[0] > this.jdField_e_of_type_Byte) && (this.M > 0)) {
this.M -= 1;
}
if ((this.controls[1] > this.jdField_e_of_type_Byte) && (this.M < 2)) {
this.M += 1;
}
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte)) {
switch (this.M)
{
case 0:
this.as = 2;
break;
case 1:
this.as = 13;
break;
case 2:
this.as = 9;
}
}
if (this.controls[6] > this.jdField_e_of_type_Byte)
{
this.as = 0;
return;
}
break;
case 4:
case 11:
default:
if ((this.controls[5] > this.jdField_e_of_type_Byte) || (this.controls[4] > this.jdField_e_of_type_Byte)) {
this.as = 0;
}
break;
}
}
private void l()
{
for (int i1 = 0; (i1 < 16) && (this.jdField_a_of_type_Array2dOfByte[0][i1] == this.jdField_a_of_type_ArrayOfByte[i1]); i1++) {}
if (i1 == 16) {
return;
}
for (i1 = 0; (i1 < 16) && (this.jdField_a_of_type_Array2dOfByte[1][i1] == this.jdField_a_of_type_ArrayOfByte[i1]); i1++) {}
if (i1 == 16) {
return;
}
for (i1 = 0; (i1 < 16) && (this.jdField_a_of_type_Array2dOfByte[2][i1] == this.jdField_a_of_type_ArrayOfByte[i1]); i1++) {}
if (i1 == 16) {
return;
}
this.jdField_h_of_type_Int = ((this.jdField_h_of_type_Int + 1) % 3);
for (i1 = 0; i1 < 16; i1++) {
this.jdField_a_of_type_Array2dOfByte[this.jdField_h_of_type_Int][i1] = this.jdField_a_of_type_ArrayOfByte[i1];
}
}
private static int c(int paramInt)
{
if (paramInt < 48) {
return 1;
}
if ((paramInt == 54) || (paramInt == 55)) {
return 1;
}
if (paramInt == 63) {
return 1;
}
return 0;
}
private void m()
{
int i1 = this.jdField_c_of_type_ArrayOfByte.length;
this.jdField_d_of_type_ArrayOfByte = new byte[i1];
for (int i2 = 0; i2 < i1; i2++) {
this.jdField_d_of_type_ArrayOfByte[i2] = this.jdField_c_of_type_ArrayOfByte[i2];
}
for (i2 = 0; i2 < i1; i2++) {
if (c(this.jdField_c_of_type_ArrayOfByte[i2]) == 1)
{
if (i2 < this.jdField_c_of_type_ArrayOfByte.length - 1)
{
if (c(this.jdField_c_of_type_ArrayOfByte[(i2 + 1)]) == 0) {
this.jdField_d_of_type_ArrayOfByte[i2] = -1;
}
if ((i2 > this.k) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 + 1)]) == 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 - this.k)]) == 0)) {
this.jdField_d_of_type_ArrayOfByte[i2] = -12;
}
if ((i2 < this.jdField_c_of_type_ArrayOfByte.length - this.k) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 + 1)]) == 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 + this.k)]) == 0)) {
this.jdField_d_of_type_ArrayOfByte[i2] = -14;
}
}
if (i2 > 0)
{
if (c(this.jdField_c_of_type_ArrayOfByte[(i2 - 1)]) == 0) {
this.jdField_d_of_type_ArrayOfByte[i2] = -3;
}
if ((i2 > this.k) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 - 1)]) == 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 - this.k)]) == 0)) {
this.jdField_d_of_type_ArrayOfByte[i2] = -32;
}
if ((i2 < this.jdField_c_of_type_ArrayOfByte.length - this.k) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 - 1)]) == 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 + this.k)]) == 0)) {
this.jdField_d_of_type_ArrayOfByte[i2] = -34;
}
}
if (i2 > this.k)
{
if (c(this.jdField_c_of_type_ArrayOfByte[(i2 - this.k)]) == 0) {
this.jdField_d_of_type_ArrayOfByte[i2] = -2;
}
if ((i2 > 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 - this.k)]) == 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 - 1)]) == 0)) {
this.jdField_d_of_type_ArrayOfByte[i2] = -23;
}
if ((i2 < this.jdField_c_of_type_ArrayOfByte.length - 1) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 - this.k)]) == 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 + 1)]) == 0)) {
this.jdField_d_of_type_ArrayOfByte[i2] = -21;
}
}
if (i2 < this.jdField_c_of_type_ArrayOfByte.length - 1 - this.k)
{
if (c(this.jdField_c_of_type_ArrayOfByte[(i2 + this.k)]) == 0) {
this.jdField_d_of_type_ArrayOfByte[i2] = -4;
}
if ((i2 > 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 + this.k)]) == 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 - 1)]) == 0)) {
this.jdField_d_of_type_ArrayOfByte[i2] = -43;
}
if ((i2 < this.jdField_c_of_type_ArrayOfByte.length - 1) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 + this.k)]) == 0) && (c(this.jdField_c_of_type_ArrayOfByte[(i2 + 1)]) == 0)) {
this.jdField_d_of_type_ArrayOfByte[i2] = -41;
}
}
if (this.jdField_d_of_type_ArrayOfByte[i2] > 0) {
this.jdField_d_of_type_ArrayOfByte[i2] = -2;
}
}
}
}
private void n()
{
this.jdField_c_of_type_ArrayOfInt[0] = (128 * this.v >> 8);
this.jdField_d_of_type_ArrayOfInt[0] = (0 * this.v >> 8);
this.jdField_c_of_type_ArrayOfInt[1] = (118 * this.v >> 8);
this.jdField_d_of_type_ArrayOfInt[1] = (49 * this.v >> 8);
this.jdField_c_of_type_ArrayOfInt[2] = (90 * this.v >> 8);
this.jdField_d_of_type_ArrayOfInt[2] = (90 * this.v >> 8);
this.jdField_c_of_type_ArrayOfInt[3] = (49 * this.v >> 8);
this.jdField_d_of_type_ArrayOfInt[3] = (118 * this.v >> 8);
this.jdField_c_of_type_ArrayOfInt[4] = (0 * this.v >> 8);
this.jdField_d_of_type_ArrayOfInt[4] = (128 * this.v >> 8);
this.jdField_e_of_type_ArrayOfInt[0] = 65280;
this.jdField_f_of_type_ArrayOfInt[0] = 0;
this.jdField_e_of_type_ArrayOfInt[1] = 65300;
this.jdField_f_of_type_ArrayOfInt[1] = 98;
this.jdField_e_of_type_ArrayOfInt[2] = 65355;
this.jdField_f_of_type_ArrayOfInt[2] = 181;
this.jdField_e_of_type_ArrayOfInt[3] = -98;
this.jdField_f_of_type_ArrayOfInt[3] = 236;
this.jdField_e_of_type_ArrayOfInt[4] = 0;
this.jdField_f_of_type_ArrayOfInt[4] = 256;
for (int i1 = 5; i1 < 9; i1++)
{
this.jdField_c_of_type_ArrayOfInt[i1] = (-this.jdField_c_of_type_ArrayOfInt[(8 - i1)]);
this.jdField_d_of_type_ArrayOfInt[i1] = this.jdField_d_of_type_ArrayOfInt[(8 - i1)];
this.jdField_e_of_type_ArrayOfInt[i1] = (-this.jdField_e_of_type_ArrayOfInt[(8 - i1)]);
this.jdField_f_of_type_ArrayOfInt[i1] = this.jdField_f_of_type_ArrayOfInt[(8 - i1)];
}
for (i1 = 9; i1 < 13; i1++)
{
this.jdField_c_of_type_ArrayOfInt[i1] = (-this.jdField_d_of_type_ArrayOfInt[(12 - i1)]);
this.jdField_d_of_type_ArrayOfInt[i1] = (-this.jdField_c_of_type_ArrayOfInt[(12 - i1)]);
}
for (i1 = 13; i1 < 16; i1++)
{
this.jdField_c_of_type_ArrayOfInt[i1] = this.jdField_c_of_type_ArrayOfInt[(16 - i1)];
this.jdField_d_of_type_ArrayOfInt[i1] = (-this.jdField_d_of_type_ArrayOfInt[(16 - i1)]);
}
for (i1 = 9; i1 < 16; i1++)
{
this.jdField_e_of_type_ArrayOfInt[i1] = this.jdField_e_of_type_ArrayOfInt[(16 - i1)];
this.jdField_f_of_type_ArrayOfInt[i1] = (-this.jdField_f_of_type_ArrayOfInt[(16 - i1)]);
}
}
private int a(int paramInt1, int paramInt2)
{
int i3 = (this.l + paramInt1) / this.s;
int i4 = (this.m - paramInt2) / this.s;
int i5 = (this.l + paramInt1) % this.s;
int i6 = (this.m - paramInt2) % this.s;
int i1;
if ((i3 > -1) && (i3 < this.k) && (i4 > -1) && (i4 < this.jdField_c_of_type_ArrayOfByte.length / this.k)) {
i1 = this.k * i4 + i3;
} else {
i1 = this.jdField_c_of_type_ArrayOfByte.length + 1;
}
int i2;
if ((i1 > -1) && (i1 < this.jdField_c_of_type_ArrayOfByte.length)) {
i2 = this.jdField_d_of_type_ArrayOfByte[i1];
} else {
i2 = 64;
}
if ((i1 > -1) && (i1 < this.jdField_c_of_type_ArrayOfByte.length)) {
i1 = this.jdField_c_of_type_ArrayOfByte[i1];
} else {
i1 = 64;
}
Math.abs(this.n + this.o);
switch (i1)
{
case 14:
case 15:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 36:
case 37:
case 38:
case 39:
case 54:
case 55:
switch (i2)
{
case -21:
if (this.l > (i3 + 1) * this.s) {
return 8;
}
return 12;
case -41:
if (this.l > (i3 + 1) * this.s) {
return 8;
}
return 4;
case -23:
if (this.l < i3 * this.s) {
return 0;
}
return 12;
case -43:
if (this.l < i3 * this.s) {
return 0;
}
return 4;
case -1:
this.q = (-1 * this.q);
return 8;
case -2:
if ((this.n > 0) && (this.n < 256)) {
this.q = 1;
}
if ((this.n >= 256) && (this.n < 512)) {
this.q = 2;
}
if (this.n >= 512) {
this.q = 4;
}
if ((this.n < 0) && (this.n > 65280)) {
this.q = -1;
}
if ((this.n <= 65280) && (this.n > 65024)) {
this.q = -2;
}
if (this.n <= 65024) {
this.q = -4;
}
return 12;
case -3:
this.q = (-1 * this.q);
return 0;
case -4:
if ((this.n > 0) && (this.n < 256)) {
this.q = 1;
}
if ((this.n >= 256) && (this.n < 512)) {
this.q = 2;
}
if (this.n >= 512) {
this.q = 4;
}
if ((this.n < 0) && (this.n > 65280)) {
this.q = -1;
}
if ((this.n <= 65280) && (this.n > 65024)) {
this.q = -2;
}
if (this.n <= 65024) {
this.q = -4;
}
return 4;
}
return 16;
case 0:
if (i6 < this.s - 2 * i5) {
return 7;
}
return 16;
case 2:
if (i6 < 2 * this.s - 2 * i5) {
return 7;
}
return 16;
case 1:
if (i6 < i5 * 2 - this.s) {
return 1;
}
return 16;
case 3:
if (i6 < i5 * 2) {
return 1;
}
return 16;
case 4:
if (i6 > i5 * 2 - this.s) {
return 9;
}
return 16;
case 6:
if (i6 > i5 * 2) {
return 9;
}
return 16;
case 7:
if (i6 > 2 * this.s - 2 * i5) {
return 15;
}
return 16;
case 5:
if (i6 > this.s - 2 * i5) {
return 15;
}
return 16;
case 8:
if (i6 < this.s - i5 / 2) {
return 5;
}
return 16;
case 9:
if (i6 < this.s / 2 - i5 / 2) {
return 5;
}
return 16;
case 10:
if (i6 < i5 / 2) {
return 3;
}
return 16;
case 11:
if (i6 < this.s / 2 + i5 / 2) {
return 3;
}
return 16;
case 16:
if (i6 > i5 / 2) {
return 11;
}
return 16;
case 17:
if (i6 > i5 / 2 + this.s / 2) {
return 11;
}
return 16;
case 18:
if (i6 > this.s - i5 / 2) {
return 13;
}
return 16;
case 19:
if (i6 > this.s / 2 - i5 / 2) {
return 13;
}
return 16;
case 20:
case 32:
case 34:
if (i6 > i5)
{
this.q = 4;
return 10;
}
return 16;
case 21:
case 33:
case 35:
if (i6 > this.s - i5)
{
this.q = -4;
return 14;
}
return 16;
case 13:
case 29:
case 31:
if (i6 < i5)
{
this.q = -4;
return 2;
}
return 16;
case 12:
case 28:
case 30:
if (i6 < this.s - i5)
{
this.q = 4;
return 6;
}
return 16;
case 63:
this.z = 1;
return 16;
case 40:
case 41:
case 42:
case 43:
this.z = -1;
return 16;
case 44:
if (i6 < this.s - i5) {
this.z = -1;
}
return 16;
case 45:
if (i6 < i5) {
this.z = -1;
}
return 16;
case 47:
if (i6 > this.s - i5) {
this.z = -1;
}
return 16;
case 46:
if (i6 > i5) {
this.z = -1;
}
return 16;
}
return 16;
}
private void o()
{
int[] arrayOfInt = new int[16];
int i7 = 0;
for (int i1 = 0; i1 < 16; i1++)
{
int i3 = 0;
if (this.jdField_g_of_type_ArrayOfInt[i1] < 16)
{
for (int i2 = 0; (i2 < i7) && (arrayOfInt[i2] != this.jdField_g_of_type_ArrayOfInt[i1]); i2++) {}
if (i2 == i7)
{
i3 = 1;
arrayOfInt[i7] = this.jdField_g_of_type_ArrayOfInt[i1];
i7++;
}
}
if (i3 == 1)
{
int i6;
if ((i6 = (i6 = this.n * this.jdField_e_of_type_ArrayOfInt[this.jdField_g_of_type_ArrayOfInt[i1]] + this.o * this.jdField_f_of_type_ArrayOfInt[this.jdField_g_of_type_ArrayOfInt[i1]]) / 256) < 0)
{
int i4 = i6 * this.jdField_e_of_type_ArrayOfInt[this.jdField_g_of_type_ArrayOfInt[i1]];
int i5 = i6 * this.jdField_f_of_type_ArrayOfInt[this.jdField_g_of_type_ArrayOfInt[i1]];
this.n -= 448 * i4 / 65536;
this.o -= 448 * i5 / 65536;
}
else
{
this.l -= this.jdField_c_of_type_ArrayOfInt[this.jdField_g_of_type_ArrayOfInt[i1]] / 3;
this.m += this.jdField_d_of_type_ArrayOfInt[this.jdField_g_of_type_ArrayOfInt[i1]] / 3;
}
}
}
}
private void a(int paramInt1, int paramInt2, int paramInt3)
{
switch (paramInt1)
{
case 24:
this.n += 128;
if (paramInt3 <= 0)
{
this.o -= 192;
return;
}
this.o += 64;
return;
case 25:
this.n -= 128;
if (paramInt3 <= 0)
{
this.o -= 192;
return;
}
this.o += 64;
return;
case 26:
this.o -= 192;
if (paramInt2 < 0)
{
this.n -= 128;
return;
}
this.n += 128;
return;
case 27:
this.o += 64;
if (paramInt2 < 0)
{
this.n -= 128;
return;
}
this.n += 128;
return;
case 28:
case 35:
this.n += 128;
this.o -= 192;
return;
case 29:
case 34:
this.n -= 128;
this.o -= 192;
return;
case 30:
case 33:
this.n -= 128;
this.o += 64;
return;
case 31:
case 32:
this.n += 128;
this.o += 64;
}
}
// ! This is important
// TODO translate the rest
private void doPhysics()
{
if ((this.J > 0) && (this.J < 100))
{
this.J--;
if ((this.J == 0) && (this.O == 1) && (this.jdField_c_of_type_Int < 5) && (this.jdField_g_of_type_Int == 0)) {
this.J = 160;
}
return;
}
if (this.J > 100)
{
this.J--;
if (this.J == 101) {
this.J = 0;
}
}
if ((this.H > 0) && (this.H < this.j + 1) && (this.z != 0))
{
this.H += 1;
return;
}
if ((this.H > this.j) && (this.z != 0))
{
r();
return;
}
if (this.I > 0)
{
this.I--;
if (this.I == 0) {
this.J = 10;
}
somethingToDoAfterPhysics();
return;
}
if (this.controls[Key.Fire] > this.controlsThreshold)
{
this.fireActive = 1;
}
else
{
this.fireActive = 0;
}
if (this.controls[Key.RightSoft] > this.jdField_e_of_type_Byte)
{
pauseMusic();
this.gameState = State.Paused;
this.as = 10;
return;
}
for (int i1 = -1 - this.w; i1 < 2 + this.w; i1++) {
for (int i2 = -2 - this.w; i2 < 2 + this.w; i2++)
{
int i4;
if ((this.t + i1 > -1) && (this.t + i1 < this.k) && (this.u + i2 > -1) && (this.u + i2 < this.jdField_c_of_type_ArrayOfByte.length / this.k)) {
i4 = this.k * (this.u + i2) + (this.t + i1);
} else {
i4 = this.jdField_c_of_type_ArrayOfByte.length + 1;
}
if ((i4 > -1) && (i4 < this.jdField_c_of_type_ArrayOfByte.length)) {
i4 = this.jdField_c_of_type_ArrayOfByte[i4];
} else {
i4 = 64;
}
if ((this.fireActive == 1) && (i4 > 23) && (i4 < 36) && (Math.abs(i1) + Math.abs(i2) < this.w)) {
a(i4, i1, i2);
}
}
}
for (i1 = 1; i1 <= this.maybePositionAndVelocity1.length; i1++)
{
this.maybePositionAndVelocity1[(i1 - 1)] = (this.n * i1 / 256);
this.maybePositionAndVelocity1[(i1 - 1)] /= this.maybePositionAndVelocity1.length;
this.maybePositionAndVelocity2[(i1 - 1)] = (this.o * i1 / 256);
this.maybePositionAndVelocity2[(i1 - 1)] /= this.maybePositionAndVelocity1.length;
}
this.somePhysicsIndex = 0;
int i3 = 0;
while ((this.somePhysicsIndex < this.maybePositionAndVelocity1.length) && (i3 == 0))
{
i3 = 0;
for (i1 = 0; i1 < 16; i1++)
{
this.jdField_b_of_type_ArrayOfInt[i1] = 16;
this.jdField_g_of_type_ArrayOfInt[i1] = a(this.maybePositionAndVelocity1[this.somePhysicsIndex] + this.jdField_c_of_type_ArrayOfInt[i1], -this.maybePositionAndVelocity2[this.somePhysicsIndex] + this.jdField_d_of_type_ArrayOfInt[i1]);
if (this.jdField_g_of_type_ArrayOfInt[i1] != 16)
{
this.jdField_b_of_type_ArrayOfInt[i1] = this.jdField_g_of_type_ArrayOfInt[i1];
i3 = 1;
if (this.r == 1) {
this.r = 0;
}
}
}
if (i3 == 0) {
this.somePhysicsIndex += 1;
}
}
this.p += this.q;
if (this.p < 0) {
this.p += 64;
}
this.p %= 64;
if (i3 == 1) {
o();
}
this.o += 96;
if (this.n > this.v * 128) {
this.n = (this.v * 128);
}
if (this.n < -this.v * 128) {
this.n = (-this.v * 128);
}
if (this.o > this.v * 128) {
this.o = (this.v * 128);
}
if (this.o < -this.v * 128) {
this.o = (-this.v * 128);
}
if (this.somePhysicsIndex > 0)
{
this.l += this.maybePositionAndVelocity1[(this.somePhysicsIndex - 1)];
this.m += this.maybePositionAndVelocity2[(this.somePhysicsIndex - 1)];
}
if (this.m > 5000) {
this.z = -1;
}
this.t = (this.l / this.s);
this.u = (this.m / this.s);
somethingToDoAfterPhysics();
if (this.z != 0) {
this.H = 1;
}
}
private void somethingToDoAfterPhysics()
{
this.A = (this.l * this.af / this.s);
this.B = (this.m * this.af / this.s);
this.C = (this.A % this.af);
this.D = (this.B % this.af);
this.E = (this.A / this.af);
this.F = (this.B / this.af);
this.ab = (-(this.A / 4) % this.Z);
this.ac = (this.ad - this.B / 4);
}
private void r()
{
this.jdField_b_of_type_Byte = ((byte)randUnsigned(3));
if ((this.z == 1) && (this.jdField_d_of_type_Int == this.jdField_c_of_type_Int) && (this.jdField_d_of_type_Int < 49))
{
this.jdField_d_of_type_Int += 1;
d();
}
try
{
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[2] = Image.createImage(1, 1);
this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[3] = Image.createImage(1, 1);
if (this.z == -1)
{
switch (this.jdField_b_of_type_Byte)
{
case 0:
this.jdField_d_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/fig_dis.png");
break;
case 1:
this.jdField_d_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/fig_over.png");
break;
case 2:
this.jdField_d_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/fig_cry.png");
}
aaa(2);
this.as = 6;
}
else
{
switch (this.jdField_b_of_type_Byte)
{
case 0:
this.jdField_d_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/fig_ok.png");
break;
case 1:
this.jdField_d_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/fig_king.png");
break;
case 2:
this.jdField_d_of_type_JavaxMicroeditionLcduiImage = Image.createImage(this.imageC + "/fig_flag.png");
}
aaa(1);
this.as = 5;
}
}
catch (Exception localException) {}
this.H = 0;
this.I = this.j;
this.gameState = State.Paused;
}
private void b(Graphics paramGraphics)
{
if (this.at < 2)
{
a(paramGraphics, this.jdField_a_of_type_JavaxMicroeditionLcduiFont, true);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[34] + this.jdField_a_of_type_ArrayOfJavaLangString[46], imageB.halfWidth, this.ag, imageB.width - 10, 0, -1, false, 17);
this.S = (this.au + 1);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[35], imageB.halfWidth, this.ag, imageB.width - 10, 0, -1, false, 17);
this.T = this.au;
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[41] + this.jdField_a_of_type_ArrayOfJavaLangString[42], imageB.halfWidth, this.ag, imageB.width - 10, 0, -1, false, 17);
this.U = this.au;
}
if (this.as == this.jdField_a_of_type_Int)
{
paramGraphics.setColor(255, 255, 255);
paramGraphics.fillRect(0, 0, imageB.width, imageB.height);
}
else
{
for (int i1 = 0; i1 < imageB.width; i1 += 15) {
for (int i2 = 0; i2 < imageB.height; i2 += 15)
{
paramGraphics.setClip(i1, i2, 15, 15);
paramGraphics.drawImage(this.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiImage[this.as], i1, i2, 20);
}
}
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.drawImage(this.jdField_a_of_type_ArrayOfJavaxMicroeditionLcduiImage[this.as], imageB.halfWidth, imageB.halfHeight, 3);
}
private void a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, Graphics paramGraphics, int paramInt5)
{
int[] arrayOfInt1 = new int[5];
int[] arrayOfInt2 = new int[5];
int i2 = (paramInt3 - paramInt1) / 4;
int i3 = (paramInt4 - paramInt2) / 4;
int i4 = 6 + (4 - paramInt5);
arrayOfInt1[0] = (paramInt1 + randSigned(i4));
arrayOfInt2[0] = (paramInt2 + randSigned(i4));
arrayOfInt1[4] = (paramInt3 + randSigned(i4));
arrayOfInt2[4] = (paramInt4 + randSigned(i4));
for (int i1 = 1; i1 <= 2; i1++)
{
arrayOfInt1[i1] = (arrayOfInt1[(i1 - 1)] + i2 + randSigned(i4));
arrayOfInt2[i1] = (arrayOfInt2[(i1 - 1)] + i3 + randSigned(i4));
}
for (i1 = 3; i1 >= 2; i1--)
{
arrayOfInt1[i1] = (arrayOfInt1[(i1 + 1)] - i2 + randSigned(i4));
arrayOfInt2[i1] = (arrayOfInt2[(i1 + 1)] - i3 + randSigned(i4));
}
for (i1 = 0; i1 < 4; i1++)
{
paramGraphics.setColor(paramInt5 * 64, paramInt5 * 64, 255);
paramGraphics.drawLine(arrayOfInt1[i1], arrayOfInt2[i1], arrayOfInt1[(i1 + 1)], arrayOfInt2[(i1 + 1)]);
if (paramInt5 > 1)
{
paramGraphics.setColor((paramInt5 - 1) * 64, (paramInt5 - 1) * 64, 255);
paramGraphics.drawLine(arrayOfInt1[i1] + 1, arrayOfInt2[i1], arrayOfInt1[(i1 + 1)] + 1, arrayOfInt2[(i1 + 1)]);
paramGraphics.drawLine(arrayOfInt1[i1] - 1, arrayOfInt2[i1], arrayOfInt1[(i1 + 1)] - 1, arrayOfInt2[(i1 + 1)]);
}
if (paramInt5 > 2)
{
paramGraphics.setColor((paramInt5 - 2) * 64, (paramInt5 - 2) * 64, 255);
paramGraphics.drawLine(arrayOfInt1[i1] + 1, arrayOfInt2[i1] + 1, arrayOfInt1[(i1 + 1)] + 1, arrayOfInt2[(i1 + 1)] + 1);
paramGraphics.drawLine(arrayOfInt1[i1] - 1, arrayOfInt2[i1] - 1, arrayOfInt1[(i1 + 1)] - 1, arrayOfInt2[(i1 + 1)] - 1);
}
}
}
private void a(int paramInt, Graphics paramGraphics)
{
int i1 = imageB.width / 10;
paramGraphics.setColor(128, 128, 255);
paramGraphics.drawArc(-1 + i1 - this.ae / 2, -1 - this.ae / 2 + 5 + paramInt, 1 + this.ae, 1 + this.ae, 0, 360);
paramGraphics.drawArc(-1 + imageB.width - i1 - this.ae / 2, -1 - this.ae / 2 + 5 + paramInt, 1 + this.ae, 1 + this.ae, 0, 360);
paramGraphics.setColor(64, 64, 255);
paramGraphics.drawArc(-2 + i1 - this.ae / 2, -2 - this.ae / 2 + 5 + paramInt, 3 + this.ae, 3 + this.ae, 0, 360);
paramGraphics.drawArc(-2 + imageB.width - i1 - this.ae / 2, -2 - this.ae / 2 + 5 + paramInt, 3 + this.ae, 3 + this.ae, 0, 360);
paramGraphics.setColor(32, 32, 192);
paramGraphics.drawArc(-3 + i1 - this.ae / 2, -3 - this.ae / 2 + 5 + paramInt, 5 + this.ae, 5 + this.ae, 0, 360);
paramGraphics.drawArc(-3 + imageB.width - i1 - this.ae / 2, -3 - this.ae / 2 + 5 + paramInt, 5 + this.ae, 5 + this.ae, 0, 360);
a(i1, 5 + paramInt, imageB.width - i1, 5 + paramInt, paramGraphics, 1);
a(i1, 5 + paramInt, imageB.width - i1, 5 + paramInt, paramGraphics, 1);
a(i1, 5 + paramInt, imageB.width - i1, 5 + paramInt, paramGraphics, 3);
paramGraphics.setClip(i1 - this.ae / 2, -(this.ae / 2) + 5 + paramInt, this.ae, this.ae);
paramGraphics.drawImage(this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[1], i1 - this.ae / 2, -(this.ae / 2) + 5 + paramInt, 20);
paramGraphics.setClip(imageB.width - i1 - this.ae / 2, -(this.ae / 2) + 5 + paramInt, this.ae, this.ae);
paramGraphics.drawImage(this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[1], imageB.width - i1 - this.ae / 2, -(this.ae / 2) + 5 + paramInt, 20);
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
}
private void c(Graphics paramGraphics)
{
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[30], 1 + imageB.halfWidth, this.ag + this.ah * 0, 17);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[11], 1 + imageB.halfWidth, this.ag + this.ah * 1, 17);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[6] + " " + this.jdField_a_of_type_ArrayOfJavaLangString[(10 - this.N)], 1 + imageB.halfWidth, this.ag + this.ah * 2, 17);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[12], 1 + imageB.halfWidth, this.ag + this.ah * 3, 17);
a(this.ag + this.ah * (this.R + 1), paramGraphics);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[30], imageB.halfWidth, this.ag + this.ah * 0, 17);
if (0 == this.R) {
paramGraphics.setColor(255, 255, 255);
} else {
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[11], imageB.halfWidth, this.ag + this.ah * 1, 17);
if (1 == this.R) {
paramGraphics.setColor(255, 255, 255);
} else {
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[6] + " " + this.jdField_a_of_type_ArrayOfJavaLangString[(10 - this.N)], imageB.halfWidth, this.ag + this.ah * 2, 17);
if (2 == this.R) {
paramGraphics.setColor(255, 255, 255);
} else {
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[12], imageB.halfWidth, this.ag + this.ah * 3, 17);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[4], 3, imageB.height - 1, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[29], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[4], 2, imageB.height - 2, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[29], imageB.width - 2, imageB.height - 2, 40);
}
private void d(Graphics paramGraphics)
{
paramGraphics.setColor(0, 0, 0);
for (int i1 = 0; i1 < 4; i1++)
{
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[i1], 1 + imageB.halfWidth, this.ag + this.ah * i1, 17);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[i1], 1 + imageB.halfWidth, this.ag + this.ah * i1, 17);
}
a(this.ag + this.ah * this.K, paramGraphics);
for (i1 = 0; i1 < 4; i1++)
{
if (i1 == this.K) {
paramGraphics.setColor(255, 255, 255);
} else {
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[i1], imageB.halfWidth, this.ag + this.ah * i1, 17);
}
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[4], 3, imageB.height - 1, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[5], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[4], 2, imageB.height - 2, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[5], imageB.width - 2, imageB.height - 2, 40);
}
private void e(Graphics paramGraphics)
{
for (int i1 = 0; i1 < 4; i1++)
{
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[22] + " " + (1 + i1 + this.jdField_e_of_type_Int), imageB.halfWidth + 1, 1 + this.ag + this.ah * i1, 17);
if (i1 + this.jdField_e_of_type_Int == this.jdField_c_of_type_Int)
{
a(this.ag + this.ah * i1, paramGraphics);
paramGraphics.setColor(255, 255, 255);
}
else
{
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[22] + " " + (1 + i1 + this.jdField_e_of_type_Int), imageB.halfWidth, this.ag + this.ah * i1, 17);
}
if (this.jdField_c_of_type_Int > 0)
{
paramGraphics.setClip(0, 3 + this.ag - this.ah + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, 3 + this.ag - this.ah + 2 * (this.at % 2), 17);
}
if (this.jdField_c_of_type_Int < this.jdField_d_of_type_Int)
{
paramGraphics.setClip(0, 3 + this.ag + this.ah * 4 + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, 3 + this.ag + this.ah * 4 + 2 * (this.at % 2) - this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2, 17);
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[23], 3, imageB.height - 1, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[23], 2, imageB.height - 2, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 2, imageB.height - 2, 40);
}
private void f(Graphics paramGraphics)
{
int i1 = 0;
paramGraphics.setColor(255, 255, 255);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[16], imageB.width * 2 / 3, this.ag, imageB.halfWidth + imageB.halfWidth / 4, imageB.height, 0, false, 17);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[17], imageB.width * 2 / 3, this.ag + this.ah, imageB.halfWidth + imageB.halfWidth / 4, imageB.height, 0, false, 17);
paramGraphics.setClip(imageB.width / 10, this.ag + this.ah / 2, this.jdField_d_of_type_JavaxMicroeditionLcduiImage.getHeight(), this.jdField_d_of_type_JavaxMicroeditionLcduiImage.getHeight());
if ((this.jdField_b_of_type_Byte == 0) && ((i1 = this.at % 22 / 2) > 5)) {
i1 = 11 - i1;
}
if (this.jdField_b_of_type_Byte == 1) {
i1 = this.at % 12 / 2;
}
if (this.jdField_b_of_type_Byte == 2) {
i1 = this.at % 12 / 2;
}
paramGraphics.drawImage(this.jdField_d_of_type_JavaxMicroeditionLcduiImage, imageB.width / 10 - i1 * this.jdField_d_of_type_JavaxMicroeditionLcduiImage.getHeight(), this.ag + this.ah / 2, 20);
if ((this.jdField_c_of_type_Int == this.jdField_d_of_type_Int) && (this.jdField_d_of_type_Int == 49)) {
i1 = 4;
} else {
i1 = 33;
}
if (this.jdField_g_of_type_Int == 1) {
i1 = 12;
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[i1], 3, imageB.height - 1, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[29], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[i1], 2, imageB.height - 2, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[29], imageB.width - 2, imageB.height - 2, 40);
}
private void g(Graphics paramGraphics)
{
int i1 = 0;
paramGraphics.setColor(255, 255, 255);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[31] + " " + this.jdField_a_of_type_ArrayOfJavaLangString[32], imageB.width * 2 / 3, this.ag, imageB.halfWidth + imageB.halfWidth / 4, imageB.height, 0, false, 17);
paramGraphics.setClip(imageB.width / 10, this.ag + this.ah / 2, this.jdField_d_of_type_JavaxMicroeditionLcduiImage.getHeight(), this.jdField_d_of_type_JavaxMicroeditionLcduiImage.getHeight());
if (this.jdField_b_of_type_Byte == 0) {
i1 = this.at % 12 / 2;
}
if ((this.jdField_b_of_type_Byte == 1) && ((i1 = this.at % 22 / 2) > 5)) {
i1 = 11 - i1;
}
if (this.jdField_b_of_type_Byte == 2) {
i1 = this.at % 6;
}
paramGraphics.drawImage(this.jdField_d_of_type_JavaxMicroeditionLcduiImage, imageB.width / 10 - i1 * this.jdField_d_of_type_JavaxMicroeditionLcduiImage.getHeight(), this.ag + this.ah / 2, 20);
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[12], 3, imageB.height - 1, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[29], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[12], 2, imageB.height - 2, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[29], imageB.width - 2, imageB.height - 2, 40);
}
private void h(Graphics paramGraphics)
{
paramGraphics.setColor(0, 0, 0);
for (int i1 = 0; i1 < 3; i1++) {
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[(24 + i1)], 1 + imageB.halfWidth, 1 + this.ag + this.ah * i1, 17);
}
a(this.ag + this.ah * this.M, paramGraphics);
for (i1 = 0; i1 < 3; i1++)
{
if (i1 == this.M) {
paramGraphics.setColor(255, 255, 255);
} else {
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[(24 + i1)], imageB.halfWidth, this.ag + this.ah * i1, 17);
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[4], 3, imageB.height - 1, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[4], 2, imageB.height - 2, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 2, imageB.height - 2, 40);
}
private void i(Graphics paramGraphics)
{
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[6] + " " + this.jdField_a_of_type_ArrayOfJavaLangString[(10 - this.N)], 1 + imageB.halfWidth, this.ag + this.ah * 0, 17);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[7] + " " + this.jdField_a_of_type_ArrayOfJavaLangString[(10 - this.O)], 1 + imageB.halfWidth, this.ag + this.ah * 1, 17);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[8], 1 + imageB.halfWidth, this.ag + this.ah * 2, 17);
a(this.ag + this.ah * this.L, paramGraphics);
if (0 == this.L) {
paramGraphics.setColor(255, 255, 255);
} else {
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[6] + " " + this.jdField_a_of_type_ArrayOfJavaLangString[(10 - this.N)], imageB.halfWidth, this.ag + this.ah * 0, 17);
if (1 == this.L) {
paramGraphics.setColor(255, 255, 255);
} else {
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[7] + " " + this.jdField_a_of_type_ArrayOfJavaLangString[(10 - this.O)], imageB.halfWidth, this.ag + this.ah * 1, 17);
if (2 == this.L) {
paramGraphics.setColor(255, 255, 255);
} else {
paramGraphics.setColor(128, 128, 128);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[8], imageB.halfWidth, this.ag + this.ah * 2, 17);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[4], 3, imageB.height - 1, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[4], 2, imageB.height - 2, 36);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 2, imageB.height - 2, 40);
}
private void j(Graphics paramGraphics)
{
int i1 = (imageB.width - 16 * this.jdField_d_of_type_Byte) / 2;
paramGraphics.setColor(255, 255, 255);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[43], imageB.halfWidth, this.ag, imageB.width, imageB.height - this.ah - this.ag, 0, false, 17);
if (this.jdField_i_of_type_Int > 0)
{
paramGraphics.setClip(0, this.ag + this.ah * 2 + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, this.ag + this.ah * 2 + 2 * (this.at % 2), 17);
paramGraphics.setClip(0, this.aj + this.ag + this.ah * 4 + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, this.aj + this.ag + this.ah * 4 + 2 * (this.at % 2) - this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2, 17);
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
for (int i3 = 0; i3 < 16; i3++)
{
int i2 = this.jdField_a_of_type_Array2dOfByte[this.jdField_h_of_type_Int][i3];
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.alphabet.substring(i2, i2 + 1), 1 + i1 + i3 * this.jdField_d_of_type_Byte, 1 + this.ag + this.ah * 3, 20);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.alphabet.substring(i2, i2 + 1), i1 + i3 * this.jdField_d_of_type_Byte, this.ag + this.ah * 3, 20);
}
}
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[18], imageB.halfWidth + 1, 1 + this.ag + this.ah * 3, 17);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[18], imageB.halfWidth, this.ag + this.ah * 3, 17);
paramGraphics.setColor(0, 0, 0);
if (this.jdField_i_of_type_Int > 0) {
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[23], 3, imageB.height - 1, 36);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
if (this.jdField_i_of_type_Int > 0) {
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[23], 2, imageB.height - 2, 36);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 2, imageB.height - 2, 40);
}
private void k(Graphics paramGraphics)
{
int i1 = this.aq * this.ai;
paramGraphics.setColor(255, 255, 255);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[41] + this.jdField_a_of_type_ArrayOfJavaLangString[42], imageB.halfWidth, this.jdField_c_of_type_Byte, imageB.width - 10, i1, this.X, false, 17);
if (this.X > 0)
{
paramGraphics.setClip(0, 3 + this.jdField_c_of_type_Byte - this.ah + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, 3 + this.jdField_c_of_type_Byte - this.ah + 2 * (this.at % 2), 17);
}
if (this.X < this.U - (this.ai - 1))
{
paramGraphics.setClip(0, this.aj + this.jdField_c_of_type_Byte + i1 + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, this.aj + this.jdField_c_of_type_Byte + i1 + 2 * (this.at % 2) - this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2, 17);
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 2, imageB.height - 2, 40);
}
private void l(Graphics paramGraphics)
{
int i2 = (imageB.width - 16 * (this.jdField_d_of_type_Byte + 1)) / 2;
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[24], 1 + imageB.halfWidth, 1 + this.ag, 17);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[24], imageB.halfWidth, this.ag, 17);
paramGraphics.setColor(0, 0, 0);
int i3;
for (int i1 = 0; i1 < 16; i1++)
{
i3 = this.jdField_a_of_type_ArrayOfByte[i1];
paramGraphics.drawString(this.alphabet.substring(i3, i3 + 1), 1 + i2 + i1 * (this.jdField_d_of_type_Byte + 1), 1 + this.ag + this.ah * 2, 20);
}
paramGraphics.setColor(255, 255, 255);
for (i1 = 0; i1 < 16; i1++)
{
i3 = this.jdField_a_of_type_ArrayOfByte[i1];
paramGraphics.drawString(this.alphabet.substring(i3, i3 + 1), i2 + i1 * (this.jdField_d_of_type_Byte + 1), this.ag + this.ah * 2, 20);
}
paramGraphics.setClip(0, this.ag + this.ah + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, -1 + i2 + this.Y * (this.jdField_d_of_type_Byte + 1), this.ag + this.ah * 1 + 2 * (this.at % 2), 20);
paramGraphics.setClip(0, this.ag + this.ah * 3 + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, -1 + i2 + this.Y * (this.jdField_d_of_type_Byte + 1), this.ag + this.ah * 3 + 2 * (this.at % 2) - this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2, 20);
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.setColor(0, 0, 0);
if (this.jdField_f_of_type_Int != 0) {
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[23], 3, imageB.height - 1, 36);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
if (this.jdField_f_of_type_Int != 0) {
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[23], 2, imageB.height - 2, 36);
}
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 2, imageB.height - 2, 40);
}
private void m(Graphics paramGraphics)
{
int i1 = this.aq * this.ai;
paramGraphics.setColor(255, 255, 255);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[34] + this.version + this.jdField_a_of_type_ArrayOfJavaLangString[46], imageB.halfWidth, this.jdField_c_of_type_Byte, imageB.width - 10, i1, this.V, false, 17);
if (this.V > 0)
{
paramGraphics.setClip(0, 3 + this.jdField_c_of_type_Byte - this.ah + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, 3 + this.jdField_c_of_type_Byte - this.ah + 2 * (this.at % 2), 17);
}
if (this.V < this.S - (this.ai - 1))
{
paramGraphics.setClip(0, this.aj + this.jdField_c_of_type_Byte + i1 + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, this.aj + this.jdField_c_of_type_Byte + i1 + 2 * (this.at % 2) - this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2, 17);
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 2, imageB.height - 2, 40);
}
private void n(Graphics paramGraphics)
{
int i1 = this.aq * this.ai;
paramGraphics.setColor(255, 255, 255);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[35], imageB.halfWidth, this.jdField_c_of_type_Byte, imageB.width - 10, i1, this.W, false, 17);
if (this.W > 0)
{
paramGraphics.setClip(0, 3 + this.jdField_c_of_type_Byte - this.ah + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, 3 + this.jdField_c_of_type_Byte - this.ah + 2 * (this.at % 2), 17);
}
if (this.W < this.T - (this.ai - 1))
{
paramGraphics.setClip(0, this.aj + this.jdField_c_of_type_Byte + i1 + 2 * (this.at % 2), imageB.width, this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2);
paramGraphics.drawImage(this.jdField_a_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, this.aj + this.jdField_c_of_type_Byte + i1 + 2 * (this.at % 2) - this.jdField_a_of_type_JavaxMicroeditionLcduiImage.getHeight() / 2, 17);
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[21], imageB.width - 2, imageB.height - 2, 40);
}
private void o(Graphics paramGraphics)
{
paramGraphics.setColor(255, 255, 255);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[27], imageB.halfWidth, this.ag, imageB.width, imageB.height, 0, false, 17);
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[28], imageB.halfWidth, this.ag + 2 * this.ah, imageB.width, imageB.height, 0, false, 17);
paramGraphics.setColor(0, 0, 0);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[29], imageB.width - 1, imageB.height - 1, 40);
paramGraphics.setColor(255, 255, 255);
paramGraphics.drawString(this.jdField_a_of_type_ArrayOfJavaLangString[29], imageB.width - 2, imageB.height - 2, 40);
}
private void p(Graphics paramGraphics)
{
paramGraphics.setColor(174, 37, 16);
paramGraphics.fillRect(0, 0, imageB.width, imageB.height);
paramGraphics.drawImage(this.jdField_c_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, imageB.halfHeight, 3);
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.drawImage(this.jdField_b_of_type_JavaxMicroeditionLcduiImage, imageB.halfWidth, (imageB.height - 118) / 10, 17);
switch (this.as)
{
case 0:
d(paramGraphics);
break;
case 1:
e(paramGraphics);
break;
case 2:
l(paramGraphics);
break;
case 3:
i(paramGraphics);
break;
case 5:
f(paramGraphics);
break;
case 6:
g(paramGraphics);
break;
case 7:
m(paramGraphics);
break;
case 8:
n(paramGraphics);
break;
case 9:
k(paramGraphics);
break;
case 10:
c(paramGraphics);
break;
case 12:
o(paramGraphics);
break;
case 13:
j(paramGraphics);
break;
case 14:
h(paramGraphics);
}
if (this.H > 0)
{
paramGraphics.setColor(216, 216, 216);
paramGraphics.fillArc(imageB.halfWidth - this.H * 16, imageB.halfHeight - this.H * 16, 2 * this.H * 16, 2 * this.H * 16, 0, 360);
}
if (this.I > 0)
{
paramGraphics.setColor(216, 216, 216);
paramGraphics.fillArc(imageB.halfWidth - this.I * 16, imageB.halfHeight - this.I * 16, 2 * this.I * 16, 2 * this.I * 16, 0, 360);
}
}
private void q(Graphics paramGraphics)
{
for (int i1 = -1; i1 < 2 + imageB.width / this.Z; i1++) {
paramGraphics.drawImage(this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[3], this.ab + i1 * this.Z, this.ac, 20);
}
paramGraphics.setColor(this.jdField_a_of_type_Array2dOfInt[this.G][0], this.jdField_a_of_type_Array2dOfInt[this.G][1], this.jdField_a_of_type_Array2dOfInt[this.G][2]);
if (this.ac > 0) {
paramGraphics.fillRect(0, 0, imageB.width, this.ac);
}
paramGraphics.setColor(this.jdField_a_of_type_Array2dOfInt[(this.G + 1)][0], this.jdField_a_of_type_Array2dOfInt[(this.G + 1)][1], this.jdField_a_of_type_Array2dOfInt[(this.G + 1)][2]);
if (this.ac + this.aa < imageB.height) {
paramGraphics.fillRect(0, this.ac + this.aa, imageB.width, imageB.height - this.ac - this.aa);
}
paramGraphics.setColor(0, 0, 0);
int i2;
int i3;
int i4;
int i5;
int i6;
for (i1 = -1 - imageB.halfWidth / this.af; i1 < 2 + imageB.halfWidth / this.af; i1++) {
for (i2 = -2 - imageB.halfHeight / this.af; i2 < 2 + imageB.halfHeight / this.af; i2++)
{
i3 = imageB.halfWidth - this.C + i1 * this.af;
i4 = imageB.halfHeight - this.D + i2 * this.af;
if ((this.E + i1 > -1) && (this.E + i1 < this.k) && (this.F + i2 > -1) && (this.F + i2 < this.jdField_c_of_type_ArrayOfByte.length / this.k)) {
i5 = this.k * (this.F + i2) + (this.E + i1);
} else {
i5 = this.jdField_c_of_type_ArrayOfByte.length + 1;
}
if ((i5 > -1) && (i5 < this.jdField_c_of_type_ArrayOfByte.length)) {
i6 = this.jdField_c_of_type_ArrayOfByte[i5];
} else {
i6 = 64;
}
paramGraphics.setClip(i3, i4, this.af, this.af);
paramGraphics.drawImage(this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[2], i3 - i6 % 8 * this.af, i4 - i6 / 8 * this.af, 20);
}
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
for (i1 = -1 - imageB.halfWidth / this.af; i1 < 2 + imageB.halfWidth / this.af; i1++) {
for (i2 = -2 - imageB.halfHeight / this.af; i2 < 2 + imageB.halfHeight / this.af; i2++)
{
i3 = imageB.halfWidth - this.C + i1 * this.af;
i4 = imageB.halfHeight - this.D + i2 * this.af;
if ((this.E + i1 > -1) && (this.E + i1 < this.k) && (this.F + i2 > -1) && (this.F + i2 < this.jdField_c_of_type_ArrayOfByte.length / this.k)) {
i5 = this.k * (this.F + i2) + (this.E + i1);
} else {
i5 = this.jdField_c_of_type_ArrayOfByte.length + 1;
}
if ((i5 > -1) && (i5 < this.jdField_c_of_type_ArrayOfByte.length)) {
i6 = this.jdField_c_of_type_ArrayOfByte[i5];
} else {
i6 = 64;
}
if ((this.fireActive == 1) && (i6 > 23) && (i6 < 36) && (Math.abs(i1) + Math.abs(i2) < this.w))
{
a(imageB.halfWidth, imageB.halfHeight, i3 + this.af / 2, i4 + this.af / 2, paramGraphics, 1);
a(imageB.halfWidth, imageB.halfHeight, i3 + this.af / 2, i4 + this.af / 2, paramGraphics, 1);
a(imageB.halfWidth, imageB.halfHeight, i3 + this.af / 2, i4 + this.af / 2, paramGraphics, 3);
}
}
}
if (this.fireActive == 1)
{
paramGraphics.setColor(128, 128, 255);
paramGraphics.drawArc(-1 + imageB.halfWidth - this.ae / 2, -1 + imageB.halfHeight - this.ae / 2, 1 + this.ae, 1 + this.ae, 0, 360);
paramGraphics.setColor(64, 64, 255);
paramGraphics.drawArc(-2 + imageB.halfWidth - this.ae / 2, -2 + imageB.halfHeight - this.ae / 2, 3 + this.ae, 3 + this.ae, 0, 360);
paramGraphics.setColor(32, 32, 192);
paramGraphics.drawArc(-3 + imageB.halfWidth - this.ae / 2, -3 + imageB.halfHeight - this.ae / 2, 5 + this.ae, 5 + this.ae, 0, 360);
}
paramGraphics.setClip(imageB.halfWidth - this.ae / 2, imageB.halfHeight - this.ae / 2, this.ae, this.ae);
if (this.p / 4 < 8) {
paramGraphics.drawImage(this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[1], imageB.halfWidth - this.ae / 2 - this.p / 4 * this.ae, imageB.halfHeight - this.ae / 2, 20);
} else {
paramGraphics.drawImage(this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[5], imageB.halfWidth - this.ae / 2 - (this.p / 4 - 8) * this.ae, imageB.halfHeight - this.ae / 2, 20);
}
paramGraphics.setClip(0, 0, imageB.width, imageB.height);
paramGraphics.drawImage(this.jdField_b_of_type_ArrayOfJavaxMicroeditionLcduiImage[4], imageB.width - 2, imageB.height - 3, 40);
if ((this.J > 0) || (this.I > 0))
{
if (this.at % 2 == 0) {
paramGraphics.setColor(192, 192, 192);
} else {
paramGraphics.setColor(255, 255, 255);
}
if (this.J < 100)
{
if (this.jdField_g_of_type_Int == 0) {
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[13] + " " + (this.jdField_c_of_type_Int + 1), imageB.halfWidth + 1, imageB.height / 4, imageB.width - 10, imageB.height / 2, 0, false, 17);
} else {
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[44], imageB.halfWidth + 1, imageB.height / 4, imageB.width - 10, imageB.height / 2, 0, false, 17);
}
}
else {
a(paramGraphics, this.jdField_a_of_type_ArrayOfJavaLangString[(36 + this.jdField_c_of_type_Int)], imageB.halfWidth + 1, imageB.height / 8, imageB.width - 10, imageB.height, 0, false, 17);
}
}
if (this.H > 0)
{
paramGraphics.setColor(216, 216, 216);
paramGraphics.fillArc(imageB.halfWidth - this.H * 16, imageB.halfHeight - this.H * 16, 2 * this.H * 16, 2 * this.H * 16, 0, 360);
}
if (this.I > 0)
{
paramGraphics.setColor(216, 216, 216);
paramGraphics.fillArc(imageB.halfWidth - this.I * 16, imageB.halfHeight - this.I * 16, 2 * this.I * 16, 2 * this.I * 16, 0, 360);
}
}
}
/* Location: /home/m93a/Stažené/magnetic_joe_en.jar!/a.class
* Java compiler version: 1 (45.3)
* JD-Core Version: 0.7.1
*/ | trash-repos/magneticjoe-decomp | a.java |
109 | /*
javascript4P5 is a port of javascript4me for Processing, by Davide Della Casa
javascript4me is made by Wang Lei ( rockswang@gmail.com ) and is released under GNU Lesser GPL
You can find javascript4me at http://code.google.com/p/javascript4me/
*/
// Rv stands for Return Value
public class Rv {
static final int UNDEFINED = RC.TOK_UNKNOWN; // undefined
static final int NUMBER = RC.TOK_NUMBER;
static final int STRING = RC.TOK_STRING;
static final int SYMBOL = RC.TOK_SYMBOL; // unresolved symbol
static final int LVALUE = 9; // left_value
static final int OBJECT = 0x10;
static final int NUMBER_OBJECT = OBJECT + Rv.NUMBER;
static final int STRING_OBJECT = OBJECT + Rv.STRING;
static final int ARRAY = OBJECT + 0x0A;
static final int ARGUMENTS = OBJECT + 0x0B;
static final int ERROR = OBJECT + 0x0C;
static final int FUNCTION = 0x2C;
static final int NATIVE = 0x2D; // native function
static final int CTOR_MASK = 0x40;
public int type;
// ------- NUM STR SYM LVA OBJ NOB SOB ARR ARG FUN NAT cob CTR
// num o x o o o o o
// str o o x o o x
// node o x
// prop o o o o o o o o o
// co o o o o
// ctPr o o o o o o o x
// prev o
/** For function & native it's number of formal arguments */
public double num;
/** For native it's the name of native function */
public String str;
/** For non-native function only */
public Object obj;
/** For all object type */
public Rhash prop;
/** For functions it's callObject, for lvalue it's the referenced object */
public Rv co;
/** prototype for constructor, constructor for other object types */
public Rv ctorOrProt;
// /** prototype, only used by constructors */
// public Rv prot;
/** only used by CallObject, this may NOT be null for an plain object (With statement) */
public Rv prev;
public Rv() {
}
/**
* To create a number
* @param n
*/
public Rv(int n) {
this.type = Rv.NUMBER;
this.num = n;
}
public Rv(double n) {
this.type = Rv.NUMBER;
this.num = n;
}
/**
* To create a string or symbol
* @param s
*/
public Rv(String s) {
this.type = Rv.STRING;
this.str = s;
}
public static final Rv symbol(String s) {
Rv ret = new Rv(s);
ret.type = Rv.SYMBOL;
return ret;
}
public static final Rv error(String msg) {
return new Rv(Rv.ERROR, Rv._Error).putl("message", new Rv(msg));
}
/**
* To create a lvalue
* @param n
* @param s
* @param referenced
*/
public Rv(String s, Rv referenced) {
this.type = Rv.LVALUE;
this.str = s;
this.co = referenced;
}
/**
* To create an object
* Type can not be function or native
* @param type
* @param ctor must not be null
*/
public Rv(int type, Rv ctor) {
if (type < Rv.OBJECT || type >= Rv.FUNCTION || ctor.type < Rv.CTOR_MASK) {
throw new RuntimeException("not a valid ctor(object)");
}
this.type = type;
this.ctorOrProt = ctor;
this.prop = new Rhash(11);
}
/**
* To create a function or native function
* @param isNative
* @param func
* @param prototype can be null
*/
public Rv(boolean isNative, Object func, int num) {
if (isNative) {
this.type = Rv.NATIVE;
this.str = (String) func;
} else {
this.type = Rv.FUNCTION;
this.obj = func;
}
this.num = num;
Rv co = this.co = new Rv();
co.type = Rv.OBJECT;
co.prop = new Rhash(11);
this.ctorOrProt = Rv._Function;
this.prop = new Rhash(11);
}
/**
* TODO change to reset
* @param str
* @param prevCallObj
* @return
*/
public final Rv nativeCtor(String str, Rv prevCallObj) {
this.type = Rv.NATIVE | Rv.CTOR_MASK;
this.str = str;
this.num = 1; // length of all native ctors are 1
this.ctorOrProt = new Rv(Rv.OBJECT, Rv._Object);
this.prop = new Rhash(11);
(this.co = new Rv(Rv.OBJECT, Rv._Object)).prev = prevCallObj;
return this;
}
public final Pack keyArray() {
if (type == ARRAY || type == ARGUMENTS) {
Pack p;
int len = (int)this.num;
if ((p = (Pack) this.obj) == null || p.oSize != len) {
this.obj = p = new Pack(-1, len);
for (int i = 0; i < len; p.add(Integer.toString(i++)));
}
return p;
}
return this.prop.keys();
}
/**
* This only apply to lvalue
* @return
*/
public final Rv get() {
int t;
if ((t = co.type) <= Rv.STRING) { // NUMBER or STRING
Rv newco = new Rv(t + Rv.OBJECT, t == Rv.STRING ? Rv._String : Rv._Number);
newco.str = co.str;
newco.num = co.num;
this.co = newco;
}
return this.co.get(this.str);
}
public final boolean has(String p) {
int type;
if ((type = this.type) < Rv.OBJECT) {
return false;
}
if (type >= Rv.CTOR_MASK && "prototype".equals(p)) { // this is a constructor
return this.ctorOrProt != null;
} else if (type >= Rv.ARRAY && "length".equals(p)) { // array/arguments/function/native
return true;
}
Rv ctor, prot, obj, ret;
for (obj = this; (ret = obj.prop.get(p)) == null
&& (ctor = obj.ctorOrProt) != null
&& (prot = ctor.ctorOrProt) != null; obj = prot)
;
return ret != null;
}
public final Rv get(String p) {
int type;
if ((type = this.type) < Rv.OBJECT) {
return Rv._undefined;
}
if (type >= Rv.CTOR_MASK && "prototype".equals(p) // this is a constructor
|| type >= Rv.OBJECT && type < Rv.CTOR_MASK && "constructor".equals(p)) {
return this.ctorOrProt != null ? this.ctorOrProt : Rv._undefined;
} else if ("length".equals(p)) { // array/arguments/function/native
int num = type >= Rv.ARRAY ? (int)this.num
: type == Rv.STRING || type == Rv.STRING_OBJECT ? this.str.length()
: -1;
if (num >= 0) return new Rv(num);
}
Rv ctor, prot, prev, obj, ret;
for (obj = this; (ret = obj.prop.get(p)) == null
&& (ctor = obj.ctorOrProt) != null
&& (prot = ctor.ctorOrProt) != null; obj = prot)
;
if (ret == null && (prev = this.prev) != null) { // this is a call object
for (obj = prev; (ret = obj.prop.get(p)) == null
&& (prev = obj.prev) != null; obj = prev)
;
}
return ret != null ? ret : Rv._undefined;
}
/**
* for lvalue only
* @param val
* @return
*/
public final Rv put(Rv val) {
val = val.pv();
String p = this.str;
Rv o = this.co;
int type;
if ((type = o.type) < Rv.OBJECT) {
// do nothing
} else if (type >= Rv.CTOR_MASK && "prototype".equals(p)) { // this is a constructor
int valty;
if ((valty = val.type) >= Rv.OBJECT && valty < Rv.CTOR_MASK) {
o.ctorOrProt = val;
}
} else if (type >= Rv.ARRAY && "length".equals(p)) {
if (type == Rv.ARRAY && (val = val.toNum()) != Rv._NaN) {
int newNum;
if ((newNum = (int)val.num) < (int)o.num) { // trim array
Rhash prop = o.prop;
for (int i = (int)o.num; --i >= newNum; prop.remove(0, Integer.toString(i)));
}
o.num = newNum;
} // else do nothing (for Arguments, Function, Native)
} else {
Rv obj = o, prev;
if (obj.type == Rv.ARRAY) {
try {
int idx = Integer.parseInt(p);
obj.putl(idx, val);
return this;
} catch (Exception ex) { }
}
Rv ret;
for (; (ret = obj.prop.get(p)) == null && (prev = obj.prev) != null; obj = prev);
(ret == null ? o : obj).prop.put(p, val);
}
return this;
}
/**
* local put, i.e. always put to this object, no checking for previous CallObject
* @param p property name, must be a String
* @param val
* @return
*/
final Rv putl(String p, Rv val) {
this.prop.put(p, val);
return this;
}
final Rv putl(int i, Rv val) {
this.prop.put(Integer.toString(i), val);
if (i >= this.num) this.num = i + 1;
return this;
}
/** This must be an array object
*/
final Rv shift(int idx) {
Rhash prop = this.prop;
Rv ret = prop.get(Integer.toString(idx));
int thisNum = (int)this.num;
for (int i = idx, n = --thisNum; i < n; i++) {
this.num = thisNum;
Rv val = prop.get(Integer.toString(i + 1));
prop.put(Integer.toString(i), val != null ? val : Rv._undefined);
}
this.num = thisNum;
return ret != null ? ret : Rv._undefined;
}
public final Rv toNum() {
if (this == _null) return Rv._false;
switch (this.type) {
case Rv.NUMBER:
return this;
case Rv.NUMBER_OBJECT:
return new Rv(this.num);
case Rv.STRING:
case Rv.STRING_OBJECT:
try {
return new Rv(Integer.parseInt(this.str));
} catch (Exception ex) { }
}
return Rv._NaN;
}
public final Rv toStr() {
String ret;
int t;
switch (t = this.type) {
case Rv.STRING:
return this;
case Rv.STRING_OBJECT:
ret = this.str;
break;
case Rv.NUMBER:
case Rv.NUMBER_OBJECT:
// using the DecimalFormat class allows to omit the .0 so integers are shown more simply.
ret = this == Rv._NaN ? "NaN" : new java.text.DecimalFormat("#.#").format(this.num);
break;
default:
ret = t >= Rv.OBJECT ? "object"
: this == Rv._undefined ? "undefined"
: this == Rv._null ? "null"
: "??";
}
return new Rv(ret);
}
public final Rv toPrim() {
int t;
if ((t = this.type) == Rv.NUMBER || t == Rv.NUMBER_OBJECT) {
return this.toNum();
} else if (t == Rv.STRING || t == Rv.STRING_OBJECT) {
return this.toStr();
}
return Rv._undefined;
}
/**
* @return
*/
public final boolean asBool() {
int t;
switch (t = this.type) {
case Rv.NUMBER:
case Rv.NUMBER_OBJECT:
return this.num != 0; // for NaN.num == 0, +/-Infinity.num != 0
case Rv.STRING:
case Rv.STRING_OBJECT:
return this.str.length() > 0;
default:
return t >= Rv.OBJECT || t != Rv.UNDEFINED;
}
}
public final Rv evalVal(Rv callObj) {
int t;
if ((t = this.type) == Rv.LVALUE) {
return this.get();
} else if (t == Rv.SYMBOL) {
return callObj.get(this.str);
}
return this;
}
public final Rv evalRef(Rv callObj) {
Rv ret = this;
int t;
if ((t = ret.type) == Rv.SYMBOL) {
ret = new Rv(ret.str, callObj);
} else if (t != Rv.LVALUE) { // error
ret = Rv._undefined;
} // else if (t == Rv.LVALUE) do nothing
return ret;
}
public final Rv pv() {
int t;
return (t = this.type) == Rv.UNDEFINED || t >= Rv.OBJECT || this == Rv._NaN
? this // object type, pass by reference
: (t == Rv.NUMBER ? new Rv(this.num) : new Rv(this.str)); // primary type, pass by value
}
/**
* apply to:
* '**', '+', '-', '*', '/', '%',
* '<', '<=', '>', '>=', '==', '!=', '===', '!==',
* '&&', '||',
* 'in', 'instanceof'
* @param op
* @param rv
* @return
*/
public final Rv binary(int op, Rv r1, Rv r2) {
int t1 = r1.type, t2 = r2.type;
switch (op) {
case RC.TOK_ADD:
if ((t1 == Rv.NUMBER || t1 == Rv.NUMBER_OBJECT) &&
(t2 == Rv.NUMBER || t2 == Rv.NUMBER_OBJECT)) {
this.type = Rv.NUMBER;
this.num = r1.num + r2.num;
System.out.println("adding " + r1.num + " and " + r2.num);
} else {
this.type = Rv.STRING;
this.str = r1.toStr().str + r2.toStr().str;
}
return this;
case RC.TOK_IN:
return r2.has(r1.toStr().str) ? Rv._true : Rv._false;
case RC.TOK_INSTANCEOF:
return r1.instanceOf(r2) ? Rv._true : Rv._false;
case RC.TOK_IDN: // ===
return isIden(r1, r2) ? Rv._true : Rv._false;
case RC.TOK_EQ: // ==
return isEq(r1, r2) ? Rv._true : Rv._false;
case RC.TOK_NID: // !==
return isIden(r1, r2) ? Rv._false : Rv._true;
case RC.TOK_NE: // !=
return isEq(r1, r2) ? Rv._false : Rv._true;
}
if (RocksInterpreter.htOptrIndex.get(op, -1) == 5) { // >, >=, <, <=
if (r1 == Rv._undefined || r2 == Rv._undefined
|| r1 == Rv._NaN || r2 == Rv._NaN) return Rv._NaN;
if ((t1 == Rv.NUMBER || t1 == Rv.NUMBER_OBJECT) &&
(t2 == Rv.NUMBER || t2 == Rv.NUMBER_OBJECT)) {
switch (op) {
case RC.TOK_GRT:
return r1.num > r2.num ? Rv._true : Rv._false;
case RC.TOK_GE:
return r1.num >= r2.num ? Rv._true : Rv._false;
case RC.TOK_LES:
return r1.num < r2.num ? Rv._true : Rv._false;
case RC.TOK_LE:
return r1.num <= r2.num ? Rv._true : Rv._false;
}
}
String s1 = r1.toStr().str, s2 = r2.toStr().str;
switch (op) {
case RC.TOK_GRT:
return s1.compareTo(s2) > 0 ? Rv._true : Rv._false;
case RC.TOK_GE:
return s1.compareTo(s2) >= 0 ? Rv._true : Rv._false;
case RC.TOK_LES:
return s1.compareTo(s2) < 0 ? Rv._true : Rv._false;
case RC.TOK_LE:
return s1.compareTo(s2) <= 0 ? Rv._true : Rv._false;
}
} else {
// **, *, /, %, -, <<, >>, >>>, &, ^, |
if ((r1 = r1.toNum()) == Rv._NaN || (r2 = r2.toNum()) == Rv._NaN) return Rv._NaN;
//int n1 = (int)r1.num, n2 = (int)r2.num;
double n1 = r1.num, n2 = r2.num;
switch (op) {
case RC.TOK_MIN:
n1 -= n2;
break;
case RC.TOK_MUL:
n1 *= n2;
break;
case RC.TOK_DIV:
if (n2 == 0) return Rv._NaN;
n1 /= n2;
break;
case RC.TOK_MOD:
if (n2 == 0) return Rv._NaN;
n1 %= n2;
break;
// the power operator using two asterisks doesn't even seem
// documented in javascript. I don't know if I'm doing the
// right thing here.
case RC.TOK_POW:
int n, i;
for (n = (int)n1, n1 = 1, i = (int)n2; --i >= 0; n1 *= n);
break;
case RC.TOK_LSH:
n1 = ((int)n1 << (int)n2);
break;
case RC.TOK_RSH:
n1 = ((int)n1 >> (int)n2);
break;
case RC.TOK_RSZ:
n1 = ((int)n1 >>> (int)n2);
break;
case RC.TOK_BAN:
n1 = ((int)n1 & (int)n2);
break;
case RC.TOK_BXO:
n1 = ((int)n1 ^ (int)n2);
break;
case RC.TOK_BOR:
n1 = ((int)n1 | (int)n2);
break;
}
this.num = n1;
return this;
}
return Rv._undefined; // never happens
}
/**
* apply to '++', '--', '++(p)', '--(p)', NEG, POS, typeof, delete
* @param op
* @return
*/
public final Rv unary(Rv callObj, int op, Rv rv) {
switch (op) {
case RC.TOK_NEG:
case RC.TOK_POS:
if ((rv = rv.evalVal(callObj).toNum()) == Rv._NaN) return Rv._NaN;
this.num = op == RC.TOK_NEG ? -rv.num : rv.num;
break;
case RC.TOK_INC:
case RC.TOK_DEC:
case RC.TOK_POSTINC:
case RC.TOK_POSTDEC:
rv = rv.evalRef(callObj);
if (rv == Rv._undefined) return Rv._NaN;
Rv prop;
if ((prop = rv.get()) == Rv._undefined || (prop = prop.toNum()) == Rv._NaN) return Rv._NaN;
int n = (int)prop.num;
if (op == RC.TOK_INC || op == RC.TOK_POSTINC) {
prop.num++;
} else {
prop.num--;
}
rv.put(prop); // rv is a lvalue
if (op == RC.TOK_INC || op == RC.TOK_DEC) {
return prop;
}
this.num = n;
break; // postinc or postdec
case RC.TOK_NOT:
return rv.evalVal(callObj).asBool() ? Rv._false : Rv._true;
case RC.TOK_BNO:
if ((rv = rv.evalVal(callObj).toNum()) == Rv._NaN) return Rv._NaN;
this.num = ~((int)(rv.num));
break;
case RC.TOK_TYPEOF:
this.type = Rv.STRING;
this.str = rv.evalVal(callObj).typeOf();
break;
case RC.TOK_DELETE:
rv = rv.evalRef(callObj);
Rv arr = rv.co;
if (rv != Rv._undefined) arr.prop.remove(0, rv.str);
if (arr.type == Rv.ARRAY) {
try {
int idx = Integer.parseInt(rv.str);
if (idx < rv.co.num) arr.shift(idx);
} catch (Exception ex) { }
}
return Rv._true;
}
return this;
}
/**
* apply to ':', invoke, init, jsonarr, jsonobj
* @param op
* @param opnd
* @param num
* @return
*/
public static final Rv polynary(Rv callObj, int op, Pack opnd, int num) {
int idx = opnd.oSize - num;
switch (op) {
case RC.TOK_COL: // ... ? ... : ...
boolean cond = ((Rv) opnd.getObject(idx)).evalVal(callObj).asBool();
return ((Rv) opnd.getObject(idx + (cond ? 1 : 2))).evalVal(callObj);
case RC.TOK_JSONARR:
Rv arr = new Rv(Rv.ARRAY, Rv._Array);
for (int i = idx, j = 0, n = opnd.oSize - 1; i < n; i++, j++) {
arr.putl(j, ((Rv) opnd.getObject(i)).evalVal(callObj));
}
return arr;
case RC.TOK_LBR: // json_object
Rv obj = new Rv(Rv.OBJECT, Rv._Object);
for (int i = idx, n = opnd.oSize - 1; i < n; i += 2) {
Rv k = (Rv) opnd.getObject(i);
String ks = k.type == Rv.NUMBER ? Integer.toString((int)k.num) : k.str;
Rv v = ((Rv) opnd.getObject(i + 1)).evalVal(callObj);
obj.putl(ks, v);
}
return obj;
}
return Rv._undefined; // never happens
}
/**
* apply to '=', '+=', '-=', '*=', '/=', '%='
* @param op
* @param rv
* @return
*/
public final Rv assign(Rv callObj, int op, Rv r1, Rv r2) {
if (r1.type != Rv.LVALUE) return Rv._undefined;
Rv val;
boolean isass;
if (isass = op == RC.TOK_ASS) {
val = r2;
} else {
switch (op) {
case RC.TOK_LSA:
op = RC.TOK_LSH;
break;
case RC.TOK_RSA:
op = RC.TOK_RSH;
break;
case RC.TOK_RZA:
op = RC.TOK_RSZ;
break;
default:
op -= RC.ASS_START;
break;
}
val = this.binary(op, r1.evalVal(callObj), r2);
}
r1.put(val); // r1 is a lvalue
return isass ? r1 : val;
}
public String typeOf() {
int t;
switch (t = this.type) {
case Rv.NUMBER:
return "number";
case Rv.STRING:
return "string";
default:
return t >= Rv.FUNCTION ? "function"
: t >= Rv.OBJECT ? "object" : "undefined";
}
}
public final boolean instanceOf(Rv rv) {
int t;
boolean found = false;
if (rv.type > Rv.CTOR_MASK && (t = this.type) >= Rv.OBJECT && t < Rv.CTOR_MASK) {
Rv ctor, prot, left, right;
for (left = this.ctorOrProt, right = rv; !(found = left == right)
&& (prot = left.ctorOrProt) != null
&& (ctor = prot.ctorOrProt) != null; left = ctor)
;
}
return found;
}
public final boolean equals(Object o) {
if (this == o) return true;
Rv rv;
if (this.type != (rv = (Rv) o).type) return false;
boolean ret = false;
switch (rv.type) {
case Rv.NUMBER:
return this.num == rv.num;
case Rv.STRING:
case Rv.SYMBOL:
return this.str.equals(rv.str);
case Rv.LVALUE:
return this.str.equals(rv.str) && this.co == rv.co;
default: // Object etc.
ret = this.ctorOrProt == rv.ctorOrProt && this.prop.equals(rv.prop);
}
if (!ret) return false;
switch (rv.type) {
case Rv.ARRAY:
case Rv.ARGUMENTS:
case Rv.NUMBER_OBJECT:
return this.num == rv.num;
case Rv.NATIVE:
case Rv.NATIVE | Rv.CTOR_MASK:
case Rv.STRING_OBJECT:
return this.str.equals(rv.str);
case Rv.FUNCTION:
case Rv.FUNCTION | Rv.CTOR_MASK:
return this.obj == rv.obj;
}
return false;
}
public String toString() {
String s = "";
StringBuffer buf = new StringBuffer();
switch (this.type) {
case Rv.UNDEFINED:
return this == Rv._undefined ? "undefined" : this == Rv._null ? "null" : "error";
case Rv.NUMBER_OBJECT:
s = "_object";
case Rv.NUMBER:
return "number" + s + "(" + this.num + ")";
case Rv.STRING_OBJECT:
s = "_object";
case Rv.STRING:
return "string" + s + "(" + this.str + ")";
case Rv.SYMBOL:
return "symbol(" + this.str + ")";
case Rv.LVALUE:
return "lvalue(" + this.co + "." + this.str + ")";
case Rv.OBJECT:
buf.append("object{");
Rhash ht = this.prop;
Pack keys = ht.keys();
for (int i = 0, n = keys.oSize; i < n; i++) {
if (i > 0) buf.append(", ");
String k = (String) keys.oArray[i]; // String
Rv v = ht.get(k); // Rv
buf.append(k).append(": ").append(v.toStr().str);
}
return buf.append('}').toString();
case Rv.ARGUMENTS:
s = "arguments";
case Rv.ARRAY:
if (s.length() == 0) s = "array";
buf.append(s);
ht = this.prop;
int len = (int)this.num;
buf.append('(').append(len).append(")[");
for (int i = 0; i < len; i++) {
if (i > 0) buf.append(", ");
Object elem = ht.get(Integer.toString(i));
buf.append(elem);
}
return buf.append(']').toString();
case Rv.FUNCTION:
case Rv.FUNCTION | Rv.CTOR_MASK:
return "function(" + this.num + ")$" + this.obj + "$";
case Rv.NATIVE:
case Rv.NATIVE | Rv.CTOR_MASK:
return "native(" + this.num + ")$" + this.str + "$";
case Rv.ERROR:
return "error('" + this.get("message") + "')";
default:
return "unknown(" + this.type + ")";
}
}
public static final Rv _null;
public static final Rv _undefined;
public static final Rv _NaN;
public static final Rv _true;
public static final Rv _false;
public static final Rv _empty;
public static final Rv _Object;
public static final Rv _Function;
public static final Rv _Array;
public static final Rv _Arguments;
public static final Rv _Number;
public static final Rv _String;
public static final Rv _Date;
public static final Rv _Error;
static {
(_null = new Rv(0)).type = Rv.UNDEFINED;
(_undefined = new Rv(0)).type = Rv.UNDEFINED;
_NaN = new Rv(0);
_true = new Rv(1);
_false = new Rv(0);
_empty = new Rv("");
_Object = new Rv();
_Function = new Rv();
_Array = new Rv();
_Arguments = new Rv();
_Number = new Rv();
_String = new Rv();
_Date = new Rv();
_Error = new Rv();
}
private static final boolean isEq(Rv r1, Rv r2) {
int t1, t2;
if ((t1 = r1.type) == (t2 = r2.type)) {
switch (t1) {
case Rv.UNDEFINED: return true;
case Rv.NUMBER: return r1 != Rv._NaN && r2 != Rv._NaN && r1.num == r2.num;
case Rv.STRING: return r1.str.equals(r2.str);
default: return r1.equals(r2);
}
}
if (t1 == Rv.UNDEFINED || t2 == Rv.UNDEFINED) return false;
boolean first;
if ((first = t1 == Rv.NUMBER) && t2 == Rv.STRING || t1 == Rv.STRING && t2 == Rv.NUMBER) {
Rv ns = first ? r2.toNum() : r1.toNum();
if (ns == Rv._NaN) return false;
Rv nn = first ? r1 : r2;
return ns.num == nn.num;
}
if ((first = t1 <= Rv.STRING) && t2 >= Rv.OBJECT || t1 >= Rv.OBJECT && t2 <= Rv.STRING) {
Rv po = first ? r2.toPrim() : r1.toPrim();
if (po == Rv._undefined) return false;
Rv pp = first ? r1 : r2;
return pp.equals(po);
}
return false;
}
private static final boolean isIden(Rv r1, Rv r2) {
int t1;
if ((t1 = r1.type) != r2.type) {
switch (t1) {
case Rv.UNDEFINED: return true;
case Rv.NUMBER: return r1 != Rv._NaN && r2 != Rv._NaN && r1.num == r2.num;
case Rv.STRING: return r1.str.equals(r2.str);
default: return r1 == r2;
}
}
return false;
}
}
| davidedc/javascript4P5 | Rv.java |
110 | package com.immediasemi.blink;
public final class R
{
public static final class anim
{
public static final int abc_fade_in = 2130968576;
public static final int abc_fade_out = 2130968577;
public static final int abc_grow_fade_in_from_bottom = 2130968578;
public static final int abc_popup_enter = 2130968579;
public static final int abc_popup_exit = 2130968580;
public static final int abc_shrink_fade_out_from_bottom = 2130968581;
public static final int abc_slide_in_bottom = 2130968582;
public static final int abc_slide_in_top = 2130968583;
public static final int abc_slide_out_bottom = 2130968584;
public static final int abc_slide_out_top = 2130968585;
public static final int slide_in_bottom = 2130968586;
public static final int slide_in_top = 2130968587;
public static final int slide_out_bottom = 2130968588;
public static final int slide_out_top = 2130968589;
}
public static final class array
{
public static final int drawer_signed_in_titles = 2131427328;
public static final int drawer_signed_out_titles = 2131427329;
public static final int liveview_whitelist = 2131427330;
public static final int manual_ssid_security_types = 2131427331;
public static final int regions_array = 2131427332;
public static final int server_list = 2131427333;
public static final int weekdays = 2131427334;
}
public static final class attr
{
public static final int actionBarDivider = 2130772130;
public static final int actionBarItemBackground = 2130772131;
public static final int actionBarPopupTheme = 2130772124;
public static final int actionBarSize = 2130772129;
public static final int actionBarSplitStyle = 2130772126;
public static final int actionBarStyle = 2130772125;
public static final int actionBarTabBarStyle = 2130772120;
public static final int actionBarTabStyle = 2130772119;
public static final int actionBarTabTextStyle = 2130772121;
public static final int actionBarTheme = 2130772127;
public static final int actionBarWidgetTheme = 2130772128;
public static final int actionButtonStyle = 2130772156;
public static final int actionDropDownStyle = 2130772152;
public static final int actionLayout = 2130772080;
public static final int actionMenuTextAppearance = 2130772132;
public static final int actionMenuTextColor = 2130772133;
public static final int actionModeBackground = 2130772136;
public static final int actionModeCloseButtonStyle = 2130772135;
public static final int actionModeCloseDrawable = 2130772138;
public static final int actionModeCopyDrawable = 2130772140;
public static final int actionModeCutDrawable = 2130772139;
public static final int actionModeFindDrawable = 2130772144;
public static final int actionModePasteDrawable = 2130772141;
public static final int actionModePopupWindowStyle = 2130772146;
public static final int actionModeSelectAllDrawable = 2130772142;
public static final int actionModeShareDrawable = 2130772143;
public static final int actionModeSplitBackground = 2130772137;
public static final int actionModeStyle = 2130772134;
public static final int actionModeWebSearchDrawable = 2130772145;
public static final int actionOverflowButtonStyle = 2130772122;
public static final int actionOverflowMenuStyle = 2130772123;
public static final int actionProviderClass = 2130772082;
public static final int actionViewClass = 2130772081;
public static final int activityChooserViewStyle = 2130772164;
public static final int adSize = 2130772008;
public static final int adSizes = 2130772009;
public static final int adUnitId = 2130772010;
public static final int alertDialogButtonGroupStyle = 2130772199;
public static final int alertDialogCenterButtons = 2130772200;
public static final int alertDialogStyle = 2130772198;
public static final int alertDialogTheme = 2130772201;
public static final int allowStacking = 2130772017;
public static final int ambientEnabled = 2130772077;
public static final int appTheme = 2130772237;
public static final int arrowHeadLength = 2130772051;
public static final int arrowShaftLength = 2130772052;
public static final int autoCompleteTextViewStyle = 2130772206;
public static final int background = 2130771989;
public static final int backgroundSplit = 2130771991;
public static final int backgroundStacked = 2130771990;
public static final int backgroundTint = 2130772235;
public static final int backgroundTintMode = 2130772236;
public static final int barLength = 2130772053;
public static final int borderlessButtonStyle = 2130772161;
public static final int buttonBarButtonStyle = 2130772158;
public static final int buttonBarNegativeButtonStyle = 2130772204;
public static final int buttonBarNeutralButtonStyle = 2130772205;
public static final int buttonBarPositiveButtonStyle = 2130772203;
public static final int buttonBarStyle = 2130772157;
public static final int buttonPanelSideLayout = 2130772011;
public static final int buttonSize = 2130772099;
public static final int buttonStyle = 2130772207;
public static final int buttonStyleSmall = 2130772208;
public static final int buttonTint = 2130772018;
public static final int buttonTintMode = 2130772019;
public static final int buyButtonAppearance = 2130772244;
public static final int buyButtonHeight = 2130772241;
public static final int buyButtonText = 2130772243;
public static final int buyButtonWidth = 2130772242;
public static final int cameraBearing = 2130772062;
public static final int cameraTargetLat = 2130772063;
public static final int cameraTargetLng = 2130772064;
public static final int cameraTilt = 2130772065;
public static final int cameraZoom = 2130772066;
public static final int checkboxStyle = 2130772209;
public static final int checkedTextViewStyle = 2130772210;
public static final int circleCrop = 2130772060;
public static final int closeIcon = 2130772090;
public static final int closeItemLayout = 2130772005;
public static final int collapseContentDescription = 2130772226;
public static final int collapseIcon = 2130772225;
public static final int color = 2130772047;
public static final int colorAccent = 2130772191;
public static final int colorButtonNormal = 2130772195;
public static final int colorControlActivated = 2130772193;
public static final int colorControlHighlight = 2130772194;
public static final int colorControlNormal = 2130772192;
public static final int colorPrimary = 2130772189;
public static final int colorPrimaryDark = 2130772190;
public static final int colorScheme = 2130772100;
public static final int colorSwitchThumbNormal = 2130772196;
public static final int commitIcon = 2130772095;
public static final int contentInsetEnd = 2130772000;
public static final int contentInsetLeft = 2130772001;
public static final int contentInsetRight = 2130772002;
public static final int contentInsetStart = 2130771999;
public static final int controlBackground = 2130772197;
public static final int customBackgroundMask = 2130772038;
public static final int customDrawableOff = 2130772025;
public static final int customDrawableOn = 2130772024;
public static final int customLeftBackground = 2130772036;
public static final int customNavigationLayout = 2130771992;
public static final int customOrientation = 2130772035;
public static final int customPushStyle = 2130772026;
public static final int customRightBackground = 2130772037;
public static final int customSwitchMinHeight = 2130772033;
public static final int customSwitchMinWidth = 2130772032;
public static final int customSwitchPadding = 2130772034;
public static final int customSwitchStyleAttr = 2130771968;
public static final int customSwitchTextAppearanceAttrib = 2130772031;
public static final int customTextOff = 2130772023;
public static final int customTextOn = 2130772022;
public static final int customTextOnThumb = 2130772027;
public static final int customThumb = 2130772020;
public static final int customThumbExtraMovement = 2130772028;
public static final int customThumbTextPadding = 2130772029;
public static final int customTrack = 2130772021;
public static final int customTrackTextPadding = 2130772030;
public static final int defaultQueryHint = 2130772089;
public static final int dialogPreferredPadding = 2130772150;
public static final int dialogTheme = 2130772149;
public static final int displayOptions = 2130771982;
public static final int divider = 2130771988;
public static final int dividerHorizontal = 2130772163;
public static final int dividerPadding = 2130772057;
public static final int dividerVertical = 2130772162;
public static final int drawableSize = 2130772049;
public static final int drawerArrowStyle = 2130771969;
public static final int dropDownListViewStyle = 2130772181;
public static final int dropdownListPreferredItemHeight = 2130772153;
public static final int editTextBackground = 2130772170;
public static final int editTextColor = 2130772169;
public static final int editTextStyle = 2130772211;
public static final int elevation = 2130772003;
public static final int environment = 2130772238;
public static final int expandActivityOverflowButtonDrawable = 2130772007;
public static final int externalRouteEnabledDrawable = 2130772078;
public static final int fragmentMode = 2130772240;
public static final int fragmentStyle = 2130772239;
public static final int gapBetweenBars = 2130772050;
public static final int goIcon = 2130772091;
public static final int height = 2130771970;
public static final int hideOnContentScroll = 2130771998;
public static final int homeAsUpIndicator = 2130772155;
public static final int homeLayout = 2130771993;
public static final int icon = 2130771986;
public static final int iconifiedByDefault = 2130772087;
public static final int imageAspectRatio = 2130772059;
public static final int imageAspectRatioAdjust = 2130772058;
public static final int imageButtonStyle = 2130772171;
public static final int indeterminateProgressStyle = 2130771995;
public static final int initialActivityCount = 2130772006;
public static final int isLightTheme = 2130771971;
public static final int itemPadding = 2130771997;
public static final int layout = 2130772086;
public static final int listChoiceBackgroundIndicator = 2130772188;
public static final int listDividerAlertDialog = 2130772151;
public static final int listItemLayout = 2130772015;
public static final int listLayout = 2130772012;
public static final int listPopupWindowStyle = 2130772182;
public static final int listPreferredItemHeight = 2130772176;
public static final int listPreferredItemHeightLarge = 2130772178;
public static final int listPreferredItemHeightSmall = 2130772177;
public static final int listPreferredItemPaddingLeft = 2130772179;
public static final int listPreferredItemPaddingRight = 2130772180;
public static final int liteMode = 2130772067;
public static final int logo = 2130771987;
public static final int logoDescription = 2130772229;
public static final int mapType = 2130772061;
public static final int maskedWalletDetailsBackground = 2130772247;
public static final int maskedWalletDetailsButtonBackground = 2130772249;
public static final int maskedWalletDetailsButtonTextAppearance = 2130772248;
public static final int maskedWalletDetailsHeaderTextAppearance = 2130772246;
public static final int maskedWalletDetailsLogoImageType = 2130772251;
public static final int maskedWalletDetailsLogoTextColor = 2130772250;
public static final int maskedWalletDetailsTextAppearance = 2130772245;
public static final int maxButtonHeight = 2130772224;
public static final int measureWithLargestChild = 2130772055;
public static final int mediaRouteButtonStyle = 2130771972;
public static final int mediaRouteCastDrawable = 2130771973;
public static final int mediaRouteConnectingDrawable = 2130771974;
public static final int mediaRouteOffDrawable = 2130771975;
public static final int mediaRouteOnDrawable = 2130771976;
public static final int mediaRoutePauseDrawable = 2130771977;
public static final int mediaRoutePlayDrawable = 2130771978;
public static final int mediaRouteSettingsDrawable = 2130771979;
public static final int multiChoiceItemLayout = 2130772013;
public static final int navigationContentDescription = 2130772228;
public static final int navigationIcon = 2130772227;
public static final int navigationMode = 2130771981;
public static final int overlapAnchor = 2130772084;
public static final int paddingEnd = 2130772233;
public static final int paddingStart = 2130772232;
public static final int panelBackground = 2130772185;
public static final int panelMenuListTheme = 2130772187;
public static final int panelMenuListWidth = 2130772186;
public static final int popupMenuStyle = 2130772167;
public static final int popupTheme = 2130772004;
public static final int popupWindowStyle = 2130772168;
public static final int preserveIconSpacing = 2130772083;
public static final int progressBarPadding = 2130771996;
public static final int progressBarStyle = 2130771994;
public static final int queryBackground = 2130772097;
public static final int queryHint = 2130772088;
public static final int radioButtonStyle = 2130772212;
public static final int ratingBarStyle = 2130772213;
public static final int scopeUris = 2130772101;
public static final int searchHintIcon = 2130772093;
public static final int searchIcon = 2130772092;
public static final int searchViewStyle = 2130772175;
public static final int seekBarStyle = 2130772214;
public static final int selectableItemBackground = 2130772159;
public static final int selectableItemBackgroundBorderless = 2130772160;
public static final int showAsAction = 2130772079;
public static final int showDividers = 2130772056;
public static final int showText = 2130772108;
public static final int singleChoiceItemLayout = 2130772014;
public static final int spinBars = 2130772048;
public static final int spinnerDropDownItemStyle = 2130772154;
public static final int spinnerStyle = 2130772215;
public static final int splitTrack = 2130772107;
public static final int state_above_anchor = 2130772085;
public static final int submitBackground = 2130772098;
public static final int subtitle = 2130771983;
public static final int subtitleTextAppearance = 2130772218;
public static final int subtitleTextColor = 2130772231;
public static final int subtitleTextStyle = 2130771985;
public static final int suggestionRowLayout = 2130772096;
public static final int switchMinWidth = 2130772105;
public static final int switchPadding = 2130772106;
public static final int switchStyle = 2130772216;
public static final int switchTextAppearance = 2130772104;
public static final int textAllCaps = 2130772016;
public static final int textAppearanceLargePopupMenu = 2130772147;
public static final int textAppearanceListItem = 2130772183;
public static final int textAppearanceListItemSmall = 2130772184;
public static final int textAppearanceSearchResultSubtitle = 2130772173;
public static final int textAppearanceSearchResultTitle = 2130772172;
public static final int textAppearanceSmallPopupMenu = 2130772148;
public static final int textColor = 2130772039;
public static final int textColorAlertDialogListItem = 2130772202;
public static final int textColorHighlight = 2130772043;
public static final int textColorHint = 2130772044;
public static final int textColorLink = 2130772045;
public static final int textColorSearchUrl = 2130772174;
public static final int textSize = 2130772040;
public static final int textStyle = 2130772041;
public static final int theme = 2130772234;
public static final int thickness = 2130772054;
public static final int thumbTextPadding = 2130772103;
public static final int title = 2130771980;
public static final int titleMarginBottom = 2130772223;
public static final int titleMarginEnd = 2130772221;
public static final int titleMarginStart = 2130772220;
public static final int titleMarginTop = 2130772222;
public static final int titleMargins = 2130772219;
public static final int titleTextAppearance = 2130772217;
public static final int titleTextColor = 2130772230;
public static final int titleTextStyle = 2130771984;
public static final int toolbarNavigationButtonStyle = 2130772166;
public static final int toolbarStyle = 2130772165;
public static final int track = 2130772102;
public static final int typeface = 2130772042;
public static final int uiCompass = 2130772068;
public static final int uiMapToolbar = 2130772076;
public static final int uiRotateGestures = 2130772069;
public static final int uiScrollGestures = 2130772070;
public static final int uiTiltGestures = 2130772071;
public static final int uiZoomControls = 2130772072;
public static final int uiZoomGestures = 2130772073;
public static final int useViewLifecycle = 2130772074;
public static final int voiceIcon = 2130772094;
public static final int windowActionBar = 2130772109;
public static final int windowActionBarOverlay = 2130772111;
public static final int windowActionModeOverlay = 2130772112;
public static final int windowFixedHeightMajor = 2130772116;
public static final int windowFixedHeightMinor = 2130772114;
public static final int windowFixedWidthMajor = 2130772113;
public static final int windowFixedWidthMinor = 2130772115;
public static final int windowMinWidthMajor = 2130772117;
public static final int windowMinWidthMinor = 2130772118;
public static final int windowNoTitle = 2130772110;
public static final int windowTransitionStyle = 2130772046;
public static final int zOrderOnTop = 2130772075;
}
public static final class bool
{
public static final int abc_action_bar_embed_tabs = 2131165187;
public static final int abc_action_bar_embed_tabs_pre_jb = 2131165185;
public static final int abc_action_bar_expanded_action_views_exclusive = 2131165188;
public static final int abc_allow_stacked_button_bar = 2131165184;
public static final int abc_config_actionMenuItemAllCaps = 2131165189;
public static final int abc_config_allowActionMenuItemTextWithIcon = 2131165186;
public static final int abc_config_closeDialogWhenTouchOutside = 2131165190;
public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 2131165191;
}
public static final class color
{
public static final int abc_background_cache_hint_selector_material_dark = 2131492973;
public static final int abc_background_cache_hint_selector_material_light = 2131492974;
public static final int abc_color_highlight_material = 2131492975;
public static final int abc_input_method_navigation_guard = 2131492864;
public static final int abc_primary_text_disable_only_material_dark = 2131492976;
public static final int abc_primary_text_disable_only_material_light = 2131492977;
public static final int abc_primary_text_material_dark = 2131492978;
public static final int abc_primary_text_material_light = 2131492979;
public static final int abc_search_url_text = 2131492980;
public static final int abc_search_url_text_normal = 2131492865;
public static final int abc_search_url_text_pressed = 2131492866;
public static final int abc_search_url_text_selected = 2131492867;
public static final int abc_secondary_text_material_dark = 2131492981;
public static final int abc_secondary_text_material_light = 2131492982;
public static final int accent_material_dark = 2131492868;
public static final int accent_material_light = 2131492869;
public static final int background_floating_material_dark = 2131492870;
public static final int background_floating_material_light = 2131492871;
public static final int background_material_dark = 2131492872;
public static final int background_material_light = 2131492873;
public static final int black = 2131492874;
public static final int blink_green = 2131492875;
public static final int blink_green_dark = 2131492876;
public static final int blink_green_hardly_transparent = 2131492877;
public static final int blink_green_semi_transparent = 2131492878;
public static final int blink_pale_grey = 2131492879;
public static final int bright_foreground_disabled_material_dark = 2131492880;
public static final int bright_foreground_disabled_material_light = 2131492881;
public static final int bright_foreground_inverse_material_dark = 2131492882;
public static final int bright_foreground_inverse_material_light = 2131492883;
public static final int bright_foreground_material_dark = 2131492884;
public static final int bright_foreground_material_light = 2131492885;
public static final int button_blue = 2131492886;
public static final int button_material_dark = 2131492887;
public static final int button_material_light = 2131492888;
public static final int common_action_bar_splitter = 2131492889;
public static final int common_google_signin_btn_text_dark = 2131492983;
public static final int common_google_signin_btn_text_dark_default = 2131492890;
public static final int common_google_signin_btn_text_dark_disabled = 2131492891;
public static final int common_google_signin_btn_text_dark_focused = 2131492892;
public static final int common_google_signin_btn_text_dark_pressed = 2131492893;
public static final int common_google_signin_btn_text_light = 2131492984;
public static final int common_google_signin_btn_text_light_default = 2131492894;
public static final int common_google_signin_btn_text_light_disabled = 2131492895;
public static final int common_google_signin_btn_text_light_focused = 2131492896;
public static final int common_google_signin_btn_text_light_pressed = 2131492897;
public static final int common_plus_signin_btn_text_dark = 2131492985;
public static final int common_plus_signin_btn_text_dark_default = 2131492898;
public static final int common_plus_signin_btn_text_dark_disabled = 2131492899;
public static final int common_plus_signin_btn_text_dark_focused = 2131492900;
public static final int common_plus_signin_btn_text_dark_pressed = 2131492901;
public static final int common_plus_signin_btn_text_light = 2131492986;
public static final int common_plus_signin_btn_text_light_default = 2131492902;
public static final int common_plus_signin_btn_text_light_disabled = 2131492903;
public static final int common_plus_signin_btn_text_light_focused = 2131492904;
public static final int common_plus_signin_btn_text_light_pressed = 2131492905;
public static final int dark_gray = 2131492906;
public static final int dim_foreground_disabled_material_dark = 2131492907;
public static final int dim_foreground_disabled_material_light = 2131492908;
public static final int dim_foreground_material_dark = 2131492909;
public static final int dim_foreground_material_light = 2131492910;
public static final int foreground_material_dark = 2131492911;
public static final int foreground_material_light = 2131492912;
public static final int gray = 2131492913;
public static final int highlighted_text_material_dark = 2131492914;
public static final int highlighted_text_material_light = 2131492915;
public static final int hint_foreground_material_dark = 2131492916;
public static final int hint_foreground_material_light = 2131492917;
public static final int light_gray = 2131492918;
public static final int material_blue_grey_800 = 2131492919;
public static final int material_blue_grey_900 = 2131492920;
public static final int material_blue_grey_950 = 2131492921;
public static final int material_deep_teal_200 = 2131492922;
public static final int material_deep_teal_500 = 2131492923;
public static final int material_grey_100 = 2131492924;
public static final int material_grey_300 = 2131492925;
public static final int material_grey_50 = 2131492926;
public static final int material_grey_600 = 2131492927;
public static final int material_grey_800 = 2131492928;
public static final int material_grey_850 = 2131492929;
public static final int material_grey_900 = 2131492930;
public static final int place_autocomplete_prediction_primary_text = 2131492931;
public static final int place_autocomplete_prediction_primary_text_highlight = 2131492932;
public static final int place_autocomplete_prediction_secondary_text = 2131492933;
public static final int place_autocomplete_search_hint = 2131492934;
public static final int place_autocomplete_search_text = 2131492935;
public static final int place_autocomplete_separator = 2131492936;
public static final int primary_dark_material_dark = 2131492937;
public static final int primary_dark_material_light = 2131492938;
public static final int primary_material_dark = 2131492939;
public static final int primary_material_light = 2131492940;
public static final int primary_text_default_material_dark = 2131492941;
public static final int primary_text_default_material_light = 2131492942;
public static final int primary_text_disabled_material_dark = 2131492943;
public static final int primary_text_disabled_material_light = 2131492944;
public static final int red = 2131492945;
public static final int ripple_material_dark = 2131492946;
public static final int ripple_material_light = 2131492947;
public static final int secondary_text_default_material_dark = 2131492948;
public static final int secondary_text_default_material_light = 2131492949;
public static final int secondary_text_disabled_material_dark = 2131492950;
public static final int secondary_text_disabled_material_light = 2131492951;
public static final int switch_thumb_disabled_material_dark = 2131492952;
public static final int switch_thumb_disabled_material_light = 2131492953;
public static final int switch_thumb_material_dark = 2131492987;
public static final int switch_thumb_material_light = 2131492988;
public static final int switch_thumb_normal_material_dark = 2131492954;
public static final int switch_thumb_normal_material_light = 2131492955;
public static final int transparent = 2131492956;
public static final int very_light_gray = 2131492957;
public static final int very_light_gray_semi_transparent = 2131492958;
public static final int wallet_bright_foreground_disabled_holo_light = 2131492959;
public static final int wallet_bright_foreground_holo_dark = 2131492960;
public static final int wallet_bright_foreground_holo_light = 2131492961;
public static final int wallet_dim_foreground_disabled_holo_dark = 2131492962;
public static final int wallet_dim_foreground_holo_dark = 2131492963;
public static final int wallet_dim_foreground_inverse_disabled_holo_dark = 2131492964;
public static final int wallet_dim_foreground_inverse_holo_dark = 2131492965;
public static final int wallet_highlighted_text_holo_dark = 2131492966;
public static final int wallet_highlighted_text_holo_light = 2131492967;
public static final int wallet_hint_foreground_holo_dark = 2131492968;
public static final int wallet_hint_foreground_holo_light = 2131492969;
public static final int wallet_holo_blue_light = 2131492970;
public static final int wallet_link_text_light = 2131492971;
public static final int wallet_primary_text_holo_light = 2131492989;
public static final int wallet_secondary_text_holo_dark = 2131492990;
public static final int white = 2131492972;
}
public static final class dimen
{
public static final int abc_action_bar_content_inset_material = 2131230735;
public static final int abc_action_bar_default_height_material = 2131230721;
public static final int abc_action_bar_default_padding_end_material = 2131230736;
public static final int abc_action_bar_default_padding_start_material = 2131230737;
public static final int abc_action_bar_icon_vertical_padding_material = 2131230740;
public static final int abc_action_bar_overflow_padding_end_material = 2131230741;
public static final int abc_action_bar_overflow_padding_start_material = 2131230742;
public static final int abc_action_bar_progress_bar_size = 2131230722;
public static final int abc_action_bar_stacked_max_height = 2131230743;
public static final int abc_action_bar_stacked_tab_max_width = 2131230744;
public static final int abc_action_bar_subtitle_bottom_margin_material = 2131230745;
public static final int abc_action_bar_subtitle_top_margin_material = 2131230746;
public static final int abc_action_button_min_height_material = 2131230747;
public static final int abc_action_button_min_width_material = 2131230748;
public static final int abc_action_button_min_width_overflow_material = 2131230749;
public static final int abc_alert_dialog_button_bar_height = 2131230720;
public static final int abc_button_inset_horizontal_material = 2131230750;
public static final int abc_button_inset_vertical_material = 2131230751;
public static final int abc_button_padding_horizontal_material = 2131230752;
public static final int abc_button_padding_vertical_material = 2131230753;
public static final int abc_config_prefDialogWidth = 2131230727;
public static final int abc_control_corner_material = 2131230754;
public static final int abc_control_inset_material = 2131230755;
public static final int abc_control_padding_material = 2131230756;
public static final int abc_dialog_fixed_height_major = 2131230728;
public static final int abc_dialog_fixed_height_minor = 2131230729;
public static final int abc_dialog_fixed_width_major = 2131230730;
public static final int abc_dialog_fixed_width_minor = 2131230731;
public static final int abc_dialog_list_padding_vertical_material = 2131230757;
public static final int abc_dialog_min_width_major = 2131230732;
public static final int abc_dialog_min_width_minor = 2131230733;
public static final int abc_dialog_padding_material = 2131230758;
public static final int abc_dialog_padding_top_material = 2131230759;
public static final int abc_disabled_alpha_material_dark = 2131230760;
public static final int abc_disabled_alpha_material_light = 2131230761;
public static final int abc_dropdownitem_icon_width = 2131230762;
public static final int abc_dropdownitem_text_padding_left = 2131230763;
public static final int abc_dropdownitem_text_padding_right = 2131230764;
public static final int abc_edit_text_inset_bottom_material = 2131230765;
public static final int abc_edit_text_inset_horizontal_material = 2131230766;
public static final int abc_edit_text_inset_top_material = 2131230767;
public static final int abc_floating_window_z = 2131230768;
public static final int abc_list_item_padding_horizontal_material = 2131230769;
public static final int abc_panel_menu_list_width = 2131230770;
public static final int abc_search_view_preferred_width = 2131230771;
public static final int abc_search_view_text_min_width = 2131230734;
public static final int abc_seekbar_track_background_height_material = 2131230772;
public static final int abc_seekbar_track_progress_height_material = 2131230773;
public static final int abc_select_dialog_padding_start_material = 2131230774;
public static final int abc_switch_padding = 2131230739;
public static final int abc_text_size_body_1_material = 2131230775;
public static final int abc_text_size_body_2_material = 2131230776;
public static final int abc_text_size_button_material = 2131230777;
public static final int abc_text_size_caption_material = 2131230778;
public static final int abc_text_size_display_1_material = 2131230779;
public static final int abc_text_size_display_2_material = 2131230780;
public static final int abc_text_size_display_3_material = 2131230781;
public static final int abc_text_size_display_4_material = 2131230782;
public static final int abc_text_size_headline_material = 2131230783;
public static final int abc_text_size_large_material = 2131230784;
public static final int abc_text_size_medium_material = 2131230785;
public static final int abc_text_size_menu_material = 2131230786;
public static final int abc_text_size_small_material = 2131230787;
public static final int abc_text_size_subhead_material = 2131230788;
public static final int abc_text_size_subtitle_material_toolbar = 2131230723;
public static final int abc_text_size_title_material = 2131230789;
public static final int abc_text_size_title_material_toolbar = 2131230724;
public static final int about_text_size = 2131230790;
public static final int activity_horizontal_margin = 2131230725;
public static final int activity_vertical_margin = 2131230791;
public static final int add_camera_icon_top_margin = 2131230792;
public static final int add_camera_prompt_top_padding = 2131230793;
public static final int advanced_settings_item_height = 2131230794;
public static final int advanced_settings_text_size = 2131230795;
public static final int bottom_button_margin = 2131230796;
public static final int btn_padding = 2131230797;
public static final int button_margin = 2131230798;
public static final int button_outline_corner_radius = 2131230799;
public static final int button_outline_text_size = 2131230800;
public static final int button_outline_thickness = 2131230801;
public static final int camera_settings_bottom_section_height = 2131230802;
public static final int card_divider_height = 2131230803;
public static final int dialog_title_text_size = 2131230804;
public static final int disabled_alpha_material_dark = 2131230805;
public static final int disabled_alpha_material_light = 2131230806;
public static final int edit_text_top_margin = 2131230807;
public static final int event_item_text_height = 2131230808;
public static final int event_item_title_height = 2131230809;
public static final int event_list_icon_width = 2131230810;
public static final int form_line_top_margin = 2131230726;
public static final int highlight_alpha_material_colored = 2131230811;
public static final int highlight_alpha_material_dark = 2131230812;
public static final int highlight_alpha_material_light = 2131230813;
public static final int image_padding = 2131230814;
public static final int list_item_header_bottom_padding = 2131230815;
public static final int list_item_header_top_padding = 2131230816;
public static final int list_view_left_right_margin = 2131230817;
public static final int live_play_button_padding = 2131230818;
public static final int login_margins = 2131230819;
public static final int login_text_entry_height = 2131230820;
public static final int medium_btn_height = 2131230821;
public static final int medium_btn_width = 2131230822;
public static final int min_list_top_bottom_margin = 2131230823;
public static final int mr_media_route_controller_art_max_height = 2131230738;
public static final int nav_item_icon_right_margin = 2131230824;
public static final int nav_item_left_margin = 2131230825;
public static final int navigation_drawer_width = 2131230826;
public static final int notification_large_icon_height = 2131230827;
public static final int notification_large_icon_width = 2131230828;
public static final int notification_subtext_size = 2131230829;
public static final int onboard_1_margins = 2131230830;
public static final int place_autocomplete_button_padding = 2131230831;
public static final int place_autocomplete_powered_by_google_height = 2131230832;
public static final int place_autocomplete_powered_by_google_start = 2131230833;
public static final int place_autocomplete_prediction_height = 2131230834;
public static final int place_autocomplete_prediction_horizontal_margin = 2131230835;
public static final int place_autocomplete_prediction_primary_text = 2131230836;
public static final int place_autocomplete_prediction_secondary_text = 2131230837;
public static final int place_autocomplete_progress_horizontal_margin = 2131230838;
public static final int place_autocomplete_progress_size = 2131230839;
public static final int place_autocomplete_separator_start = 2131230840;
public static final int retry_add_camera_text_size = 2131230841;
public static final int screen_bottom_margin = 2131230842;
public static final int serial_number_entry_height = 2131230843;
public static final int serial_number_entry_width = 2131230844;
public static final int settings_item_height = 2131230845;
public static final int settings_update_date_text_size = 2131230846;
public static final int show_pw_text_size = 2131230847;
public static final int small_btn_height = 2131230848;
public static final int small_btn_padding = 2131230849;
public static final int small_btn_width = 2131230850;
public static final int splash_screen_margin_padding = 2131230851;
public static final int splash_screen_text_padding = 2131230852;
public static final int status_line_height = 2131230853;
public static final int status_line_padding = 2131230854;
public static final int switch_label_text_size = 2131230855;
public static final int text_padding = 2131230856;
public static final int text_padding_large = 2131230857;
public static final int thumbnail_camera_name_size = 2131230858;
public static final int thumbnail_divider_height = 2131230859;
public static final int thumbnail_height = 2131230860;
public static final int title_bar_title_size = 2131230861;
public static final int title_text_size = 2131230862;
public static final int video_clip_cam_name_size = 2131230863;
public static final int video_item_text_height = 2131230864;
public static final int video_list_item_height = 2131230865;
public static final int wait_msg_text_size = 2131230866;
}
public static final class drawable
{
public static final int abc_ab_share_pack_mtrl_alpha = 2130837504;
public static final int abc_action_bar_item_background_material = 2130837505;
public static final int abc_btn_borderless_material = 2130837506;
public static final int abc_btn_check_material = 2130837507;
public static final int abc_btn_check_to_on_mtrl_000 = 2130837508;
public static final int abc_btn_check_to_on_mtrl_015 = 2130837509;
public static final int abc_btn_colored_material = 2130837510;
public static final int abc_btn_default_mtrl_shape = 2130837511;
public static final int abc_btn_radio_material = 2130837512;
public static final int abc_btn_radio_to_on_mtrl_000 = 2130837513;
public static final int abc_btn_radio_to_on_mtrl_015 = 2130837514;
public static final int abc_btn_rating_star_off_mtrl_alpha = 2130837515;
public static final int abc_btn_rating_star_on_mtrl_alpha = 2130837516;
public static final int abc_btn_switch_to_on_mtrl_00001 = 2130837517;
public static final int abc_btn_switch_to_on_mtrl_00012 = 2130837518;
public static final int abc_cab_background_internal_bg = 2130837519;
public static final int abc_cab_background_top_material = 2130837520;
public static final int abc_cab_background_top_mtrl_alpha = 2130837521;
public static final int abc_control_background_material = 2130837522;
public static final int abc_dialog_material_background_dark = 2130837523;
public static final int abc_dialog_material_background_light = 2130837524;
public static final int abc_edit_text_material = 2130837525;
public static final int abc_ic_ab_back_mtrl_am_alpha = 2130837526;
public static final int abc_ic_clear_mtrl_alpha = 2130837527;
public static final int abc_ic_commit_search_api_mtrl_alpha = 2130837528;
public static final int abc_ic_go_search_api_mtrl_alpha = 2130837529;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 2130837530;
public static final int abc_ic_menu_cut_mtrl_alpha = 2130837531;
public static final int abc_ic_menu_moreoverflow_mtrl_alpha = 2130837532;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 2130837533;
public static final int abc_ic_menu_selectall_mtrl_alpha = 2130837534;
public static final int abc_ic_menu_share_mtrl_alpha = 2130837535;
public static final int abc_ic_search_api_mtrl_alpha = 2130837536;
public static final int abc_ic_voice_search_api_mtrl_alpha = 2130837537;
public static final int abc_item_background_holo_dark = 2130837538;
public static final int abc_item_background_holo_light = 2130837539;
public static final int abc_list_divider_mtrl_alpha = 2130837540;
public static final int abc_list_focused_holo = 2130837541;
public static final int abc_list_longpressed_holo = 2130837542;
public static final int abc_list_pressed_holo_dark = 2130837543;
public static final int abc_list_pressed_holo_light = 2130837544;
public static final int abc_list_selector_background_transition_holo_dark = 2130837545;
public static final int abc_list_selector_background_transition_holo_light = 2130837546;
public static final int abc_list_selector_disabled_holo_dark = 2130837547;
public static final int abc_list_selector_disabled_holo_light = 2130837548;
public static final int abc_list_selector_holo_dark = 2130837549;
public static final int abc_list_selector_holo_light = 2130837550;
public static final int abc_menu_hardkey_panel_mtrl_mult = 2130837551;
public static final int abc_popup_background_mtrl_mult = 2130837552;
public static final int abc_ratingbar_full_material = 2130837553;
public static final int abc_scrubber_control_off_mtrl_alpha = 2130837554;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 2130837555;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 2130837556;
public static final int abc_scrubber_primary_mtrl_alpha = 2130837557;
public static final int abc_scrubber_track_mtrl_alpha = 2130837558;
public static final int abc_seekbar_thumb_material = 2130837559;
public static final int abc_seekbar_track_material = 2130837560;
public static final int abc_spinner_mtrl_am_alpha = 2130837561;
public static final int abc_spinner_textfield_background_material = 2130837562;
public static final int abc_switch_thumb_material = 2130837563;
public static final int abc_switch_track_mtrl_alpha = 2130837564;
public static final int abc_tab_indicator_material = 2130837565;
public static final int abc_tab_indicator_mtrl_alpha = 2130837566;
public static final int abc_text_cursor_material = 2130837567;
public static final int abc_textfield_activated_mtrl_alpha = 2130837568;
public static final int abc_textfield_default_mtrl_alpha = 2130837569;
public static final int abc_textfield_search_activated_mtrl_alpha = 2130837570;
public static final int abc_textfield_search_default_mtrl_alpha = 2130837571;
public static final int abc_textfield_search_material = 2130837572;
public static final int actionbar_background = 2130837573;
public static final int actionbar_transparent_background = 2130837574;
public static final int alarm_icon = 2130837575;
public static final int alert_80 = 2130837576;
public static final int appicon_192 = 2130837577;
public static final int appicon_29 = 2130837578;
public static final int appicon_29_2x = 2130837579;
public static final int appicon_40 = 2130837580;
public static final int appicon_40_2x = 2130837581;
public static final int appicon_57 = 2130837582;
public static final int appicon_57_2x = 2130837583;
public static final int appicon_60_2x = 2130837584;
public static final int appicon_76 = 2130837585;
public static final int appicon_76_2x = 2130837586;
public static final int appicon_ios7_40_2x = 2130837587;
public static final int apptheme_btn_default_focused_holo_light = 2130837588;
public static final int apptheme_btn_default_normal_holo_light = 2130837589;
public static final int apptheme_btn_selected_left = 2130837590;
public static final int apptheme_btn_selected_right = 2130837591;
public static final int back_yard_80 = 2130837592;
public static final int back_yard_80_2x = 2130837593;
public static final int background_fenced = 2130837594;
public static final int bars_1bars = 2130837595;
public static final int bars_2bars = 2130837596;
public static final int bars_3bars = 2130837597;
public static final int bars_4bars = 2130837598;
public static final int bars_5bars = 2130837599;
public static final int battery_high = 2130837600;
public static final int battery_low = 2130837601;
public static final int battery_medium = 2130837602;
public static final int blink_activity_icon_armed = 2130837603;
public static final int blink_activity_icon_disarmed = 2130837604;
public static final int blink_activiy_icon_power = 2130837605;
public static final int blink_checkbox = 2130837606;
public static final int blink_clip_roll_blue_dot_icon = 2130837607;
public static final int blink_clip_roll_icon = 2130837608;
public static final int blink_login_background = 2130837609;
public static final int blink_login_background_2x = 2130837610;
public static final int blink_logo_action_title = 2130837611;
public static final int blink_logo_small = 2130837612;
public static final int blink_logo_small_jk = 2130837613;
public static final int blink_logo_title_custom = 2130837614;
public static final int blink_speaker_button = 2130837615;
public static final int blink_speaker_button_muted = 2130837616;
public static final int btn_check_off = 2130837617;
public static final int btn_check_off_pressed = 2130837618;
public static final int btn_check_on = 2130837619;
public static final int btn_check_on_pressed = 2130837620;
public static final int button_outline_drawable = 2130837621;
public static final int button_outline_semitransparent_green = 2130837622;
public static final int camera_icon_green = 2130837623;
public static final int cast_ic_notification_0 = 2130837624;
public static final int cast_ic_notification_1 = 2130837625;
public static final int cast_ic_notification_2 = 2130837626;
public static final int cast_ic_notification_connecting = 2130837627;
public static final int cast_ic_notification_on = 2130837628;
public static final int common_full_open_on_phone = 2130837629;
public static final int common_google_signin_btn_icon_dark = 2130837630;
public static final int common_google_signin_btn_icon_dark_disabled = 2130837631;
public static final int common_google_signin_btn_icon_dark_focused = 2130837632;
public static final int common_google_signin_btn_icon_dark_normal = 2130837633;
public static final int common_google_signin_btn_icon_dark_pressed = 2130837634;
public static final int common_google_signin_btn_icon_light = 2130837635;
public static final int common_google_signin_btn_icon_light_disabled = 2130837636;
public static final int common_google_signin_btn_icon_light_focused = 2130837637;
public static final int common_google_signin_btn_icon_light_normal = 2130837638;
public static final int common_google_signin_btn_icon_light_pressed = 2130837639;
public static final int common_google_signin_btn_text_dark = 2130837640;
public static final int common_google_signin_btn_text_dark_disabled = 2130837641;
public static final int common_google_signin_btn_text_dark_focused = 2130837642;
public static final int common_google_signin_btn_text_dark_normal = 2130837643;
public static final int common_google_signin_btn_text_dark_pressed = 2130837644;
public static final int common_google_signin_btn_text_light = 2130837645;
public static final int common_google_signin_btn_text_light_disabled = 2130837646;
public static final int common_google_signin_btn_text_light_focused = 2130837647;
public static final int common_google_signin_btn_text_light_normal = 2130837648;
public static final int common_google_signin_btn_text_light_pressed = 2130837649;
public static final int common_ic_googleplayservices = 2130837650;
public static final int common_plus_signin_btn_icon_dark = 2130837651;
public static final int common_plus_signin_btn_icon_dark_disabled = 2130837652;
public static final int common_plus_signin_btn_icon_dark_focused = 2130837653;
public static final int common_plus_signin_btn_icon_dark_normal = 2130837654;
public static final int common_plus_signin_btn_icon_dark_pressed = 2130837655;
public static final int common_plus_signin_btn_icon_light = 2130837656;
public static final int common_plus_signin_btn_icon_light_disabled = 2130837657;
public static final int common_plus_signin_btn_icon_light_focused = 2130837658;
public static final int common_plus_signin_btn_icon_light_normal = 2130837659;
public static final int common_plus_signin_btn_icon_light_pressed = 2130837660;
public static final int common_plus_signin_btn_text_dark = 2130837661;
public static final int common_plus_signin_btn_text_dark_disabled = 2130837662;
public static final int common_plus_signin_btn_text_dark_focused = 2130837663;
public static final int common_plus_signin_btn_text_dark_normal = 2130837664;
public static final int common_plus_signin_btn_text_dark_pressed = 2130837665;
public static final int common_plus_signin_btn_text_light = 2130837666;
public static final int common_plus_signin_btn_text_light_disabled = 2130837667;
public static final int common_plus_signin_btn_text_light_focused = 2130837668;
public static final int common_plus_signin_btn_text_light_normal = 2130837669;
public static final int common_plus_signin_btn_text_light_pressed = 2130837670;
public static final int custom_button_background = 2130837671;
public static final int custom_switch_background = 2130837672;
public static final int custom_switch_left = 2130837673;
public static final int custom_switch_right = 2130837674;
public static final int custom_switch_thumb = 2130837675;
public static final int custom_switch_thumb_disabled = 2130837676;
public static final int custom_switch_thumb_enabled = 2130837677;
public static final int diagram_1 = 2130837678;
public static final int diagram_2 = 2130837679;
public static final int diagram_3 = 2130837680;
public static final int diagram_4 = 2130837681;
public static final int drawer_shadow = 2130837682;
public static final int firstboot = 2130837683;
public static final int green_outline = 2130837684;
public static final int ic_blink_notif_b = 2130837685;
public static final int ic_cancel_black_24dp = 2130837686;
public static final int ic_cast_dark = 2130837687;
public static final int ic_cast_disabled_light = 2130837688;
public static final int ic_cast_light = 2130837689;
public static final int ic_cast_off_light = 2130837690;
public static final int ic_cast_on_0_light = 2130837691;
public static final int ic_cast_on_1_light = 2130837692;
public static final int ic_cast_on_2_light = 2130837693;
public static final int ic_cast_on_light = 2130837694;
public static final int ic_drawer = 2130837695;
public static final int ic_drawer_am = 2130837696;
public static final int ic_keyboard_arrow_right_black = 2130837697;
public static final int ic_media_pause = 2130837698;
public static final int ic_media_play = 2130837699;
public static final int ic_media_route_disabled_mono_dark = 2130837700;
public static final int ic_media_route_off_mono_dark = 2130837701;
public static final int ic_media_route_on_0_mono_dark = 2130837702;
public static final int ic_media_route_on_1_mono_dark = 2130837703;
public static final int ic_media_route_on_2_mono_dark = 2130837704;
public static final int ic_media_route_on_mono_dark = 2130837705;
public static final int ic_pause_dark = 2130837706;
public static final int ic_pause_light = 2130837707;
public static final int ic_play_dark = 2130837708;
public static final int ic_play_light = 2130837709;
public static final int ic_plusone_medium_off_client = 2130837710;
public static final int ic_plusone_small_off_client = 2130837711;
public static final int ic_plusone_standard_off_client = 2130837712;
public static final int ic_plusone_tall_off_client = 2130837713;
public static final int ic_setting_dark = 2130837714;
public static final int ic_setting_light = 2130837715;
public static final int ic_settings_white = 2130837716;
public static final int icon_about22x22 = 2130837717;
public static final int icon_about_drawer = 2130837718;
public static final int icon_activity = 2130837719;
public static final int icon_alarm = 2130837720;
public static final int icon_alarm_armed_circle = 2130837721;
public static final int icon_alarm_disabled_circe = 2130837722;
public static final int icon_alarm_disarmed_circle = 2130837723;
public static final int icon_battery_warning_circle = 2130837724;
public static final int icon_battery_warning_padded = 2130837725;
public static final int icon_blue_dot = 2130837726;
public static final int icon_bulb22x22 = 2130837727;
public static final int icon_bulb_drawer = 2130837728;
public static final int icon_close_drawer = 2130837729;
public static final int icon_delete = 2130837730;
public static final int icon_eye = 2130837731;
public static final int icon_feed22x22 = 2130837732;
public static final int icon_feedback = 2130837733;
public static final int icon_feedback_drawer = 2130837734;
public static final int icon_help22x22 = 2130837735;
public static final int icon_key22x22 = 2130837736;
public static final int icon_key_drawer = 2130837737;
public static final int icon_lock = 2130837738;
public static final int icon_lock_open = 2130837739;
public static final int icon_networks22x22 = 2130837740;
public static final int icon_profile22x22 = 2130837741;
public static final int icon_recording_circle = 2130837742;
public static final int icon_save = 2130837743;
public static final int icon_settings22x22 = 2130837744;
public static final int icon_settings_drawer = 2130837745;
public static final int icon_share = 2130837746;
public static final int icon_signin2x22 = 2130837747;
public static final int icon_signin_drawer = 2130837748;
public static final int icon_signout2x22 = 2130837749;
public static final int icon_signout_drawer = 2130837750;
public static final int icon_snapshot_camera22x22 = 2130837751;
public static final int icon_snapshot_camera_padded = 2130837752;
public static final int icon_temp_high_circle = 2130837753;
public static final int icon_temp_low_circle = 2130837754;
public static final int icon_wifi_warning_circle = 2130837755;
public static final int inside_garage_80 = 2130837756;
public static final int inside_garage_80_2x = 2130837757;
public static final int kitchen_80 = 2130837758;
public static final int kitchen_80_2x = 2130837759;
public static final int live_view_button = 2130837760;
public static final int live_view_button_corner = 2130837761;
public static final int living_room_80 = 2130837762;
public static final int living_room_80_2x = 2130837763;
public static final int mr_ic_cast_dark = 2130837764;
public static final int mr_ic_cast_light = 2130837765;
public static final int mr_ic_media_route_connecting_mono_dark = 2130837766;
public static final int mr_ic_media_route_connecting_mono_light = 2130837767;
public static final int mr_ic_media_route_mono_dark = 2130837768;
public static final int mr_ic_media_route_mono_light = 2130837769;
public static final int mr_ic_pause_dark = 2130837770;
public static final int mr_ic_pause_light = 2130837771;
public static final int mr_ic_play_dark = 2130837772;
public static final int mr_ic_play_light = 2130837773;
public static final int mr_ic_settings_dark = 2130837774;
public static final int mr_ic_settings_light = 2130837775;
public static final int notification_template_icon_bg = 2130837822;
public static final int onboarding_2 = 2130837776;
public static final int pageview_test = 2130837777;
public static final int places_ic_clear = 2130837778;
public static final int places_ic_search = 2130837779;
public static final int play_alpha_1 = 2130837780;
public static final int powered_by_google_dark = 2130837781;
public static final int powered_by_google_light = 2130837782;
public static final int progress_spinner = 2130837783;
public static final int reveal_icon = 2130837784;
public static final int reveal_icon_2x = 2130837785;
public static final int running_man = 2130837786;
public static final int running_man_gray = 2130837787;
public static final int screen_1 = 2130837788;
public static final int screen_2 = 2130837789;
public static final int screen_3 = 2130837790;
public static final int screen_4 = 2130837791;
public static final int screen_5 = 2130837792;
public static final int scrollbar_handle_holo_dark = 2130837793;
public static final int scrollbar_handle_holo_light = 2130837794;
public static final int settings_gear = 2130837795;
public static final int sgroove = 2130837796;
public static final int sgroove_sm = 2130837797;
public static final int sgroove_sm_green = 2130837798;
public static final int sgroove_sm_white = 2130837799;
public static final int sgroove_vert = 2130837800;
public static final int signal_status_low_icon = 2130837801;
public static final int sleft_background = 2130837802;
public static final int sleft_background_sm = 2130837803;
public static final int sm_icon_green = 2130837804;
public static final int small_button_drawable = 2130837805;
public static final int small_spinner = 2130837806;
public static final int smask_background = 2130837807;
public static final int smask_background_sm = 2130837808;
public static final int sright_background = 2130837809;
public static final int sright_background_sm = 2130837810;
public static final int stoggle = 2130837811;
public static final int stoggle_sm = 2130837812;
public static final int switch_track_green = 2130837813;
public static final int switch_track_white = 2130837814;
public static final int thumbnail_border = 2130837815;
public static final int thumbnail_button = 2130837816;
public static final int thumbnail_button_corner = 2130837817;
public static final int up_down = 2130837818;
public static final int welcome_image = 2130837819;
public static final int welcome_image_2x = 2130837820;
public static final int welcome_to_blink_banner = 2130837821;
}
public static final class id
{
public static final int action0 = 2131558736;
public static final int action_bar = 2131558511;
public static final int action_bar_activity_content = 2131558400;
public static final int action_bar_container = 2131558510;
public static final int action_bar_root = 2131558506;
public static final int action_bar_spinner = 2131558401;
public static final int action_bar_subtitle = 2131558480;
public static final int action_bar_title = 2131558479;
public static final int action_cancel = 2131558538;
public static final int action_clip_roll = 2131558771;
public static final int action_container = 2131558540;
public static final int action_context_bar = 2131558512;
public static final int action_divider = 2131558740;
public static final int action_done = 2131558539;
public static final int action_filter = 2131558772;
public static final int action_menu_divider = 2131558402;
public static final int action_menu_presenter = 2131558403;
public static final int action_mode_bar = 2131558508;
public static final int action_mode_bar_stub = 2131558507;
public static final int action_mode_close_button = 2131558481;
public static final int action_settings = 2131558770;
public static final int activity_chooser_view_content = 2131558482;
public static final int activity_feed = 2131558714;
public static final int activity_type_group = 2131558573;
public static final int activity_type_header = 2131558572;
public static final int add_another_camera = 2131558595;
public static final int add_camera_first_line_prompt = 2131558579;
public static final int add_camera_second_line_prompt = 2131558580;
public static final int add_camera_view = 2131558634;
public static final int add_system_dialog_listview = 2131558532;
public static final int add_system_from_picker = 2131558765;
public static final int adjust_height = 2131558436;
public static final int adjust_width = 2131558437;
public static final int alertTitle = 2131558494;
public static final int all_activity_header = 2131558574;
public static final int all_cameras_header = 2131558571;
public static final int always = 2131558441;
public static final int android_pay = 2131558478;
public static final int android_pay_dark = 2131558469;
public static final int android_pay_light = 2131558470;
public static final int android_pay_light_with_border = 2131558471;
public static final int anytime_header = 2131558561;
public static final int arm_label_container = 2131558638;
public static final int arm_switch = 2131558642;
public static final int arm_switch_container = 2131558639;
public static final int armed_status_icon = 2131558637;
public static final int armed_status_label = 2131558641;
public static final int armed_status_progress = 2131558640;
public static final int art = 2131558725;
public static final int auto = 2131558449;
public static final int battery_header = 2131558578;
public static final int battery_value = 2131558627;
public static final int beginning = 2131558433;
public static final int blue_dot = 2131558678;
public static final int bold = 2131558427;
public static final int book_now = 2131558462;
public static final int border_view = 2131558700;
public static final int bottom_prompt = 2131558546;
public static final int build_number = 2131558527;
public static final int buttonPanel = 2131558489;
public static final int button_bar = 2131558646;
public static final int buttons = 2131558730;
public static final int buyButton = 2131558459;
public static final int buy_now = 2131558463;
public static final int buy_with = 2131558464;
public static final int buy_with_google = 2131558465;
public static final int cam_name = 2131558680;
public static final int camera_name = 2131558592;
public static final int cameras_group = 2131558570;
public static final int cancel_action = 2131558737;
public static final int carret1 = 2131558703;
public static final int carret2 = 2131558706;
public static final int carret3 = 2131558715;
public static final int carret4 = 2131558717;
public static final int cast_notification_id = 2131558404;
public static final int change_email_button = 2131558666;
public static final int change_password_button = 2131558669;
public static final int checkbox = 2131558503;
public static final int chronometer = 2131558743;
public static final int classic = 2131558472;
public static final int clip_length_slider = 2131558610;
public static final int clip_length_value = 2131558611;
public static final int clip_player_title = 2131558689;
public static final int clip_player_title_bar = 2131558688;
public static final int collapseActionView = 2131558442;
public static final int container = 2131558643;
public static final int content = 2131558671;
public static final int contentPanel = 2131558495;
public static final int continue_button = 2131558554;
public static final int continue_to_home = 2131558559;
public static final int continue_to_onboard_1 = 2131558670;
public static final int continue_to_onboard_3 = 2131558543;
public static final int continue_to_onboard_5 = 2131558548;
public static final int continue_to_onboard_8 = 2131558557;
public static final int controls_container = 2131558685;
public static final int create_account_button = 2131558760;
public static final int create_account_region_picker = 2131558659;
public static final int current_system_button = 2131558535;
public static final int custom = 2131558501;
public static final int customPanel = 2131558500;
public static final int dark = 2131558450;
public static final int decor_content_parent = 2131558509;
public static final int default_activity_button = 2131558485;
public static final int default_control_frame = 2131558724;
public static final int delay_value = 2131558607;
public static final int delete_button = 2131558675;
public static final int delete_camera_button = 2131558628;
public static final int delete_check = 2131558679;
public static final int delete_item_button = 2131558683;
public static final int delete_system = 2131558718;
public static final int disableHome = 2131558413;
public static final int disconnect = 2131558731;
public static final int donate_with = 2131558466;
public static final int donate_with_google = 2131558467;
public static final int drawer_layout = 2131558693;
public static final int edit_button = 2131558673;
public static final int edit_email = 2131558704;
public static final int edit_password = 2131558653;
public static final int edit_query = 2131558513;
public static final int edit_text = 2131558603;
public static final int edit_user_name = 2131558651;
public static final int enable_audio_switch = 2131558620;
public static final int enable_motion_switch = 2131558605;
public static final int enable_progress = 2131558699;
public static final int encryption = 2131558735;
public static final int end = 2131558434;
public static final int end_padder = 2131558747;
public static final int enddate_group = 2131558568;
public static final int enddate_header = 2131558567;
public static final int enddate_value = 2131558569;
public static final int enter_serial_number = 2131558582;
public static final int enter_serial_number_button = 2131558581;
public static final int event_list = 2131558629;
public static final int expand_activities_button = 2131558483;
public static final int expanded_menu = 2131558502;
public static final int extra_button = 2131558757;
public static final int field_param_label = 2131558600;
public static final int forgot_password = 2131558654;
public static final int fragment_container = 2131558537;
public static final int google_wallet_classic = 2131558473;
public static final int google_wallet_grayscale = 2131558474;
public static final int google_wallet_monochrome = 2131558475;
public static final int grayscale = 2131558476;
public static final int hide_pw_switch_group = 2131558655;
public static final int holo_dark = 2131558453;
public static final int holo_light = 2131558454;
public static final int home = 2131558405;
public static final int homeAsUp = 2131558414;
public static final int horizontal = 2131558425;
public static final int hybrid = 2131558438;
public static final int icon = 2131558487;
public static final int icon_only = 2131558446;
public static final int ifRoom = 2131558443;
public static final int illuminator_auto = 2131558615;
public static final int illuminator_control_group = 2131558612;
public static final int illuminator_off = 2131558613;
public static final int illuminator_on = 2131558614;
public static final int image = 2131558484;
public static final int imageView = 2131558758;
public static final int imageView2 = 2131558534;
public static final int img = 2131558630;
public static final int info = 2131558746;
public static final int intensity_control_group = 2131558616;
public static final int intensity_high = 2131558619;
public static final int intensity_low = 2131558617;
public static final int intensity_medium = 2131558618;
public static final int italic = 2131558428;
public static final int label = 2131558602;
public static final int lfr_text = 2131558587;
public static final int light = 2131558451;
public static final int line1 = 2131558741;
public static final int line3 = 2131558744;
public static final int linearLayout = 2131558544;
public static final int list = 2131558536;
public static final int listMode = 2131558410;
public static final int list_item = 2131558486;
public static final int live_button = 2131558690;
public static final int live_view_mute_button = 2131558649;
public static final int live_view_thumbnail = 2131558644;
public static final int live_view_title = 2131558648;
public static final int login_button = 2131558657;
public static final int logo_only = 2131558468;
public static final int logout_button = 2131558663;
public static final int main_camera_list_container = 2131558633;
public static final int main_camera_scroll_view = 2131558632;
public static final int manage_account_email = 2131558702;
public static final int manage_account_password = 2131558705;
public static final int manage_email_confirm = 2131558665;
public static final int manage_email_new = 2131558664;
public static final int manage_password_confirm = 2131558668;
public static final int manage_password_new = 2131558667;
public static final int manage_system_name = 2131558709;
public static final int manual_ssid = 2131558550;
public static final int mark_all_button = 2131558674;
public static final int match_parent = 2131558461;
public static final int measure_signal_strength = 2131558589;
public static final int media_actions = 2131558739;
public static final int media_route_control_frame = 2131558723;
public static final int media_route_list = 2131558719;
public static final int media_route_volume_layout = 2131558728;
public static final int media_route_volume_slider = 2131558729;
public static final int middle = 2131558435;
public static final int monochrome = 2131558477;
public static final int monospace = 2131558429;
public static final int motion_delay_slider = 2131558606;
public static final int motion_recordings_header = 2131558575;
public static final int motion_sensitivity_slider = 2131558608;
public static final int multiply = 2131558420;
public static final int name_entry = 2131558604;
public static final int navigation_drawer = 2131558694;
public static final int network_list = 2131558551;
public static final int never = 2131558444;
public static final int no_clip_items_text = 2131558676;
public static final int none = 2131558415;
public static final int normal = 2131558411;
public static final int onboard_help_image = 2131558672;
public static final int onboard_image_2 = 2131558542;
public static final int open_wifi_settings = 2131558545;
public static final int parentPanel = 2131558491;
public static final int password = 2131558756;
public static final int password_wifi = 2131558553;
public static final int path = 2131558597;
public static final int path_param_container = 2131558598;
public static final int path_param_ids = 2131558599;
public static final int pic_button = 2131558701;
public static final int picker_listview = 2131558764;
public static final int place_autocomplete_clear_button = 2131558750;
public static final int place_autocomplete_powered_by_google = 2131558752;
public static final int place_autocomplete_prediction_primary_text = 2131558754;
public static final int place_autocomplete_prediction_secondary_text = 2131558755;
public static final int place_autocomplete_progress = 2131558753;
public static final int place_autocomplete_search_button = 2131558748;
public static final int place_autocomplete_search_input = 2131558749;
public static final int place_autocomplete_separator = 2131558751;
public static final int play_date = 2131558687;
public static final int play_pause = 2131558726;
public static final int player_action_bar_container = 2131558769;
public static final int player_view = 2131558686;
public static final int privacy_policy = 2131558529;
public static final int production = 2131558455;
public static final int progress = 2131558541;
public static final int progress_circular = 2131558406;
public static final int progress_horizontal = 2131558407;
public static final int progress_live_view = 2131558645;
public static final int progress_wifi_connect = 2131558556;
public static final int prompt_text = 2131558547;
public static final int quality = 2131558733;
public static final int radio = 2131558505;
public static final int reconfigure_sync = 2131558716;
public static final int region_picker = 2131558661;
public static final int region_picker_confirm_button = 2131558662;
public static final int route_name = 2131558721;
public static final int running = 2131558698;
public static final int sandbox = 2131558456;
public static final int sans = 2131558430;
public static final int satellite = 2131558439;
public static final int screen = 2131558421;
public static final int scrollIndicatorDown = 2131558499;
public static final int scrollIndicatorUp = 2131558496;
public static final int scrollView = 2131558497;
public static final int search_badge = 2131558515;
public static final int search_bar = 2131558514;
public static final int search_button = 2131558516;
public static final int search_close_btn = 2131558521;
public static final int search_edit_frame = 2131558517;
public static final int search_go_btn = 2131558523;
public static final int search_mag_icon = 2131558518;
public static final int search_plate = 2131558519;
public static final int search_src_text = 2131558520;
public static final int search_voice_btn = 2131558524;
public static final int select_dialog_listview = 2131558525;
public static final int select_overlay = 2131558684;
public static final int selectionDetails = 2131558460;
public static final int send_request_btn = 2131558601;
public static final int sensitivity_value = 2131558609;
public static final int serif = 2131558431;
public static final int settings = 2131558722;
public static final int settings_icon = 2131558697;
public static final int settings_update_button = 2131558622;
public static final int share_button = 2131558691;
public static final int shortcut = 2131558504;
public static final int showCustom = 2131558416;
public static final int showHome = 2131558417;
public static final int showTitle = 2131558418;
public static final int show_password = 2131558656;
public static final int signal = 2131558734;
public static final int signal_strength_lfr = 2131558588;
public static final int signal_strength_text = 2131558584;
public static final int signal_strength_wifi = 2131558586;
public static final int slide = 2131558432;
public static final int sm_connected_text = 2131558558;
public static final int spacer = 2131558490;
public static final int specific_range_group = 2131558563;
public static final int specific_range_header = 2131558562;
public static final int splash_screen_version_text = 2131558762;
public static final int split_action_bar = 2131558408;
public static final int src_atop = 2131558422;
public static final int src_in = 2131558423;
public static final int src_over = 2131558424;
public static final int ssid = 2131558552;
public static final int standard = 2131558447;
public static final int startdate_group = 2131558565;
public static final int startdate_header = 2131558564;
public static final int startdate_value = 2131558566;
public static final int statusProgressBar = 2131558623;
public static final int status_bar1 = 2131558695;
public static final int status_bar_latest_event_content = 2131558738;
public static final int status_label = 2131558696;
public static final int stop = 2131558732;
public static final int stop_button = 2131558647;
public static final int strict_sandbox = 2131558457;
public static final int submit_area = 2131558522;
public static final int subtitle = 2131558727;
public static final int support_container = 2131558707;
public static final int sync_module_signal_strength = 2131558626;
public static final int system_arm_disarm_header = 2131558577;
public static final int system_picker_header = 2131558763;
public static final int system_picker_item_arm_status = 2131558768;
public static final int system_picker_item_name = 2131558767;
public static final int system_picker_menuitem = 2131558766;
public static final int systemname = 2131558708;
public static final int tabMode = 2131558412;
public static final int take_thumbnail = 2131558593;
public static final int tap_prompt_label = 2131558636;
public static final int tap_to_add_camera_btn = 2131558635;
public static final int tap_to_see = 2131558590;
public static final int temp_units_c_switch = 2131558713;
public static final int temp_units_f_switch = 2131558712;
public static final int temp_units_label = 2131558710;
public static final int temp_units_switch = 2131558711;
public static final int temperature_alerts_header = 2131558576;
public static final int temperature_value = 2131558624;
public static final int terms_and_conditions = 2131558658;
public static final int terms_of_service = 2131558528;
public static final int terrain = 2131558440;
public static final int test = 2131558458;
public static final int text = 2131558745;
public static final int text1 = 2131558530;
public static final int text2 = 2131558531;
public static final int textSpacerNoButtons = 2131558498;
public static final int textView = 2131558650;
public static final int textView2 = 2131558652;
public static final int textView3 = 2131558660;
public static final int textView4 = 2131558759;
public static final int textView5 = 2131558761;
public static final int textView6 = 2131558596;
public static final int textView7 = 2131558594;
public static final int textView8 = 2131558555;
public static final int textView9 = 2131558533;
public static final int thumbnail_image = 2131558591;
public static final int time = 2131558742;
public static final int time_frame_group = 2131558560;
public static final int time_stamp = 2131558631;
public static final int title = 2131558488;
public static final int title_bar = 2131558720;
public static final int title_template = 2131558493;
public static final int topPanel = 2131558492;
public static final int txt1 = 2131558681;
public static final int txt2 = 2131558682;
public static final int up = 2131558409;
public static final int updated_date = 2131558621;
public static final int useLogo = 2131558419;
public static final int version = 2131558526;
public static final int vertical = 2131558426;
public static final int video_list = 2131558677;
public static final int visit_blink = 2131558692;
public static final int wait_for_camera_message = 2131558583;
public static final int wide = 2131558448;
public static final int wifi_list_header = 2131558549;
public static final int wifi_signal_strength = 2131558625;
public static final int wifi_text = 2131558585;
public static final int withText = 2131558445;
public static final int wrap_content = 2131558452;
}
public static final class integer
{
public static final int abc_config_activityDefaultDur = 2131361793;
public static final int abc_config_activityShortDur = 2131361794;
public static final int abc_max_action_buttons = 2131361792;
public static final int cancel_button_image_alpha = 2131361795;
public static final int google_play_services_version = 2131361796;
public static final int status_bar_notification_info_maxnum = 2131361797;
}
public static final class layout
{
public static final int abc_action_bar_title_item = 2130903040;
public static final int abc_action_bar_up_container = 2130903041;
public static final int abc_action_bar_view_list_nav_layout = 2130903042;
public static final int abc_action_menu_item_layout = 2130903043;
public static final int abc_action_menu_layout = 2130903044;
public static final int abc_action_mode_bar = 2130903045;
public static final int abc_action_mode_close_item_material = 2130903046;
public static final int abc_activity_chooser_view = 2130903047;
public static final int abc_activity_chooser_view_list_item = 2130903048;
public static final int abc_alert_dialog_button_bar_material = 2130903049;
public static final int abc_alert_dialog_material = 2130903050;
public static final int abc_dialog_title_material = 2130903051;
public static final int abc_expanded_menu_layout = 2130903052;
public static final int abc_list_menu_item_checkbox = 2130903053;
public static final int abc_list_menu_item_icon = 2130903054;
public static final int abc_list_menu_item_layout = 2130903055;
public static final int abc_list_menu_item_radio = 2130903056;
public static final int abc_popup_menu_item_layout = 2130903057;
public static final int abc_screen_content_include = 2130903058;
public static final int abc_screen_simple = 2130903059;
public static final int abc_screen_simple_overlay_action_mode = 2130903060;
public static final int abc_screen_toolbar = 2130903061;
public static final int abc_search_dropdown_item_icons_2line = 2130903062;
public static final int abc_search_view = 2130903063;
public static final int abc_select_dialog_material = 2130903064;
public static final int about_activity = 2130903065;
public static final int about_list_item = 2130903066;
public static final int add_system_dialog_choices = 2130903067;
public static final int alert_header = 2130903068;
public static final int blink_actionbar_layout = 2130903069;
public static final int blink_logo_title_view = 2130903070;
public static final int blink_system_button_title_view = 2130903071;
public static final int choose_network_dialog = 2130903072;
public static final int clip_player_controls = 2130903073;
public static final int container = 2130903074;
public static final int custom_add_camera_action_bar = 2130903075;
public static final int custom_advanced_settings_action_bar = 2130903076;
public static final int custom_camera_settings_action_bar = 2130903077;
public static final int custom_filter_action_bar = 2130903078;
public static final int custom_send_feedback_action_bar = 2130903079;
public static final int custom_sm_setup_action_bar = 2130903080;
public static final int dialog_item = 2130903081;
public static final int fragment_2_setup_wait_for_blue_light = 2130903082;
public static final int fragment_3_setup_connect_to_blink = 2130903083;
public static final int fragment_4_setup_connected_to_sync = 2130903084;
public static final int fragment_5_show_wifi = 2130903085;
public static final int fragment_6_enter_wifi_credentials = 2130903086;
public static final int fragment_7_onboard_network = 2130903087;
public static final int fragment_8_setup_complete = 2130903088;
public static final int fragment_activity_filter_fragment = 2130903089;
public static final int fragment_add_camera_1_explain = 2130903090;
public static final int fragment_add_camera_2 = 2130903091;
public static final int fragment_add_camera_3_wait_for_camera = 2130903092;
public static final int fragment_add_camera_4_success = 2130903093;
public static final int fragment_add_camera_5_name_camera = 2130903094;
public static final int fragment_add_camera_6_take_snapshot = 2130903095;
public static final int fragment_add_camera_7_add_camera = 2130903096;
public static final int fragment_advanced_settings = 2130903097;
public static final int fragment_apitest = 2130903098;
public static final int fragment_apitest_request = 2130903099;
public static final int fragment_apitest_request_list_item = 2130903100;
public static final int fragment_camera_settings_fragment = 2130903101;
public static final int fragment_event_list = 2130903102;
public static final int fragment_event_list_header = 2130903103;
public static final int fragment_event_list_item = 2130903104;
public static final int fragment_home_screen = 2130903105;
public static final int fragment_live_video = 2130903106;
public static final int fragment_login = 2130903107;
public static final int fragment_logout = 2130903108;
public static final int fragment_manage_email = 2130903109;
public static final int fragment_manage_password = 2130903110;
public static final int fragment_navigation_drawer = 2130903111;
public static final int fragment_onboard_1 = 2130903112;
public static final int fragment_onboard_help = 2130903113;
public static final int fragment_retry_add_camera = 2130903114;
public static final int fragment_video_list = 2130903115;
public static final int fragment_video_list_header = 2130903116;
public static final int fragment_video_list_item = 2130903117;
public static final int fragment_video_player = 2130903118;
public static final int fragment_visit_blink = 2130903119;
public static final int home_screen_activity = 2130903120;
public static final int main_camera_thumbnail_view = 2130903121;
public static final int manage_account_activity = 2130903122;
public static final int manage_systems_activity = 2130903123;
public static final int mr_media_route_chooser_dialog = 2130903124;
public static final int mr_media_route_controller_material_dialog_b = 2130903125;
public static final int mr_media_route_list_item = 2130903126;
public static final int nav_drawer_list_item = 2130903127;
public static final int network_info_item = 2130903128;
public static final int notification_media_action = 2130903129;
public static final int notification_media_cancel_action = 2130903130;
public static final int notification_template_big_media = 2130903131;
public static final int notification_template_big_media_narrow = 2130903132;
public static final int notification_template_lines = 2130903133;
public static final int notification_template_media = 2130903134;
public static final int notification_template_part_chronometer = 2130903135;
public static final int notification_template_part_time = 2130903136;
public static final int place_autocomplete_fragment = 2130903137;
public static final int place_autocomplete_item_powered_by_google = 2130903138;
public static final int place_autocomplete_item_prediction = 2130903139;
public static final int place_autocomplete_progress = 2130903140;
public static final int select_dialog_item_material = 2130903141;
public static final int select_dialog_multichoice_material = 2130903142;
public static final int select_dialog_singlechoice_material = 2130903143;
public static final int sign_in_dialog = 2130903144;
public static final int splash_screen = 2130903145;
public static final int support_simple_spinner_dropdown_item = 2130903146;
public static final int system_picker_listview = 2130903147;
public static final int system_picker_menuitem = 2130903148;
public static final int video_player_action_bar = 2130903149;
}
public static final class menu
{
public static final int global = 2131623936;
public static final int main = 2131623937;
public static final int menu_events = 2131623938;
public static final int menu_login = 2131623939;
public static final int menu_logout = 2131623940;
public static final int menu_video_list_view = 2131623941;
public static final int menu_video_live_view = 2131623942;
public static final int menu_video_player = 2131623943;
public static final int menu_visit_blink = 2131623944;
public static final int system_picker = 2131623945;
}
public static final class raw
{
public static final int gtm_analytics = 2131034112;
}
public static final class string
{
public static final int None = 2131099711;
public static final int WEP = 2131099712;
public static final int WPA = 2131099713;
public static final int WPA2 = 2131099714;
public static final int abc_action_bar_home_description = 2131099648;
public static final int abc_action_bar_home_description_format = 2131099649;
public static final int abc_action_bar_home_subtitle_description_format = 2131099650;
public static final int abc_action_bar_up_description = 2131099651;
public static final int abc_action_menu_overflow_description = 2131099652;
public static final int abc_action_mode_done = 2131099653;
public static final int abc_activity_chooser_view_see_all = 2131099654;
public static final int abc_activitychooserview_choose_application = 2131099655;
public static final int abc_capital_off = 2131099656;
public static final int abc_capital_on = 2131099657;
public static final int abc_search_hint = 2131099658;
public static final int abc_searchview_description_clear = 2131099659;
public static final int abc_searchview_description_query = 2131099660;
public static final int abc_searchview_description_search = 2131099661;
public static final int abc_searchview_description_submit = 2131099662;
public static final int abc_searchview_description_voice = 2131099663;
public static final int abc_shareactionprovider_share_with = 2131099664;
public static final int abc_shareactionprovider_share_with_application = 2131099665;
public static final int abc_toolbar_collapse_description = 2131099666;
public static final int about_blink = 2131099715;
public static final int about_build_number_label = 2131099716;
public static final int about_privacy_policy_label = 2131099717;
public static final int about_terms_of_service_label = 2131099718;
public static final int about_version_label = 2131099719;
public static final int accept = 2131099720;
public static final int account_is_not_authorized = 2131099721;
public static final int action_activity = 2131099722;
public static final int action_cancel = 2131099723;
public static final int action_done = 2131099724;
public static final int action_filter = 2131099725;
public static final int action_refresh = 2131099726;
public static final int action_save = 2131099727;
public static final int action_settings = 2131099728;
public static final int action_title = 2131099729;
public static final int activity_feed_label = 2131099730;
public static final int add_camera_explaination_1 = 2131099731;
public static final int add_camera_explaination_2 = 2131099732;
public static final int add_camera_failed_explaination = 2131099733;
public static final int add_camera_first_line_prompt = 2131099734;
public static final int add_camera_measure_signal_strength_text = 2131099735;
public static final int add_camera_second_line_prompt = 2131099736;
public static final int add_camera_signal_strength_text = 2131099737;
public static final int add_camera_success_text = 2131099738;
public static final int add_camera_take_snapshot = 2131099739;
public static final int add_camera_tap_to_see_what_camera_sees = 2131099740;
public static final int add_camera_when_your_all_set = 2131099741;
public static final int add_camera_you_can_add_another = 2131099742;
public static final int advanced_settings_label = 2131099743;
public static final int already_have_an_account = 2131099744;
public static final int app_name = 2131099745;
public static final int are_you_sure = 2131099746;
public static final int arm_button = 2131099747;
public static final int armed = 2131099748;
public static final int at_end_of_list = 2131099749;
public static final int auth_google_play_services_client_facebook_display_name = 2131099750;
public static final int auth_google_play_services_client_google_display_name = 2131099751;
public static final int auth_token_label = 2131099752;
public static final int blink_email_address = 2131099753;
public static final int blink_gcm_device_id = 2131099754;
public static final int buffer_time_label = 2131099755;
public static final int button_text_return_to_blink = 2131099756;
public static final int camera_hint_name = 2131099757;
public static final int camera_settings_advanced_label = 2131099758;
public static final int camera_settings_audio_label = 2131099759;
public static final int camera_settings_battery_label = 2131099760;
public static final int camera_settings_clip_length_label = 2131099761;
public static final int camera_settings_header_audio = 2131099762;
public static final int camera_settings_header_general = 2131099763;
public static final int camera_settings_header_illuminator = 2131099764;
public static final int camera_settings_header_motion_detection = 2131099765;
public static final int camera_settings_header_other = 2131099766;
public static final int camera_settings_header_status = 2131099767;
public static final int camera_settings_illuminator_intensity_label = 2131099768;
public static final int camera_settings_illuminator_label = 2131099769;
public static final int camera_settings_last_update_label = 2131099770;
public static final int camera_settings_motion_delay_label = 2131099771;
public static final int camera_settings_motion_enable_label = 2131099772;
public static final int camera_settings_motion_sensitivity_label = 2131099773;
public static final int camera_settings_name_label = 2131099774;
public static final int camera_settings_synd_strength_label = 2131099775;
public static final int camera_settings_temperature_label = 2131099776;
public static final int camera_settings_wifi_label = 2131099777;
public static final int cancel_button = 2131099778;
public static final int cant_use_external_storage = 2131099779;
public static final int cast_notification_connected_message = 2131099780;
public static final int cast_notification_connecting_message = 2131099781;
public static final int cast_notification_disconnect = 2131099782;
public static final int centigrade = 2131099783;
public static final int centigrade_abbrev = 2131099784;
public static final int checkmark = 2131099785;
public static final int choose_server = 2131099786;
public static final int clear_all_recent_alerts_button = 2131099787;
public static final int clone_switch_label = 2131099788;
public static final int common_google_play_services_api_unavailable_text = 2131099667;
public static final int common_google_play_services_enable_button = 2131099668;
public static final int common_google_play_services_enable_text = 2131099669;
public static final int common_google_play_services_enable_title = 2131099670;
public static final int common_google_play_services_install_button = 2131099671;
public static final int common_google_play_services_install_text_phone = 2131099672;
public static final int common_google_play_services_install_text_tablet = 2131099673;
public static final int common_google_play_services_install_title = 2131099674;
public static final int common_google_play_services_invalid_account_text = 2131099675;
public static final int common_google_play_services_invalid_account_title = 2131099676;
public static final int common_google_play_services_network_error_text = 2131099677;
public static final int common_google_play_services_network_error_title = 2131099678;
public static final int common_google_play_services_notification_ticker = 2131099679;
public static final int common_google_play_services_restricted_profile_text = 2131099680;
public static final int common_google_play_services_restricted_profile_title = 2131099681;
public static final int common_google_play_services_sign_in_failed_text = 2131099682;
public static final int common_google_play_services_sign_in_failed_title = 2131099683;
public static final int common_google_play_services_unknown_issue = 2131099684;
public static final int common_google_play_services_unsupported_text = 2131099685;
public static final int common_google_play_services_unsupported_title = 2131099686;
public static final int common_google_play_services_update_button = 2131099687;
public static final int common_google_play_services_update_text = 2131099688;
public static final int common_google_play_services_update_title = 2131099689;
public static final int common_google_play_services_updating_text = 2131099690;
public static final int common_google_play_services_updating_title = 2131099691;
public static final int common_google_play_services_wear_update_text = 2131099692;
public static final int common_open_on_phone = 2131099693;
public static final int common_signin_button_text = 2131099694;
public static final int common_signin_button_text_long = 2131099695;
public static final int confirm_password_title = 2131099789;
public static final int continue_to_home = 2131099790;
public static final int continue_to_onboard_1 = 2131099791;
public static final int continue_to_onboard_2 = 2131099792;
public static final int create_account = 2131099793;
public static final int create_account_button = 2131099794;
public static final int create_account_terms = 2131099795;
public static final int create_calendar_message = 2131099796;
public static final int create_calendar_title = 2131099797;
public static final int create_new_account_button = 2131099798;
public static final int decline = 2131099799;
public static final int default_subdomain = 2131099800;
public static final int degrees_c = 2131099801;
public static final int degrees_f = 2131099802;
public static final int delete_button_label = 2131099803;
public static final int delete_camera_btn = 2131099804;
public static final int dev_token_label = 2131099805;
public static final int direct_live_video_button = 2131099806;
public static final int disarm_button = 2131099807;
public static final int disarmed = 2131099808;
public static final int dismiss_button = 2131099809;
public static final int done_button = 2131099810;
public static final int duration_label = 2131099811;
public static final int edit_button_label = 2131099812;
public static final int email_label = 2131099813;
public static final int encryption_label = 2131099814;
public static final int enter_email_first = 2131099815;
public static final int error = 2131099816;
public static final int event_armed_string = 2131099817;
public static final int event_battery_string = 2131099818;
public static final int event_connected_string = 2131099819;
public static final int event_disarmed_string = 2131099820;
public static final int event_first_boot_string = 2131099821;
public static final int event_heart_beat_string = 2131099822;
public static final int event_liveview_string = 2131099823;
public static final int event_motion_string = 2131099824;
public static final int event_sync_string = 2131099825;
public static final int event_tb_error_string = 2131099826;
public static final int event_temperature_string = 2131099827;
public static final int event_type_label = 2131099828;
public static final int event_unknown_string = 2131099829;
public static final int event_watchdog_string = 2131099830;
public static final int ext_storage_justification = 2131099831;
public static final int fahrenheit = 2131099832;
public static final int fahrenheit_abbrev = 2131099833;
public static final int failed_signed_out = 2131099834;
public static final int filter_header_activity_type = 2131099835;
public static final int filter_header_cameras = 2131099836;
public static final int filter_header_time_frame = 2131099837;
public static final int filter_item_all_activity = 2131099838;
public static final int filter_item_all_cameras = 2131099839;
public static final int filter_item_anytime = 2131099840;
public static final int filter_item_battery = 2131099841;
public static final int filter_item_end_date = 2131099842;
public static final int filter_item_motion_recordings = 2131099843;
public static final int filter_item_specific_range = 2131099844;
public static final int filter_item_start_date = 2131099845;
public static final int filter_item_system_arm_disarm = 2131099846;
public static final int filter_item_temperature_alerts = 2131099847;
public static final int forgot_password = 2131099848;
public static final int friday = 2131099849;
public static final int gcm_defaultSenderId = 2131099850;
public static final int hello_blank_fragment = 2131099851;
public static final int hide_pw = 2131099852;
public static final int illuminator_auto = 2131099853;
public static final int illuminator_off = 2131099854;
public static final int illuminator_on = 2131099855;
public static final int intensity_high = 2131099856;
public static final int intensity_low = 2131099857;
public static final int intensity_medium = 2131099858;
public static final int invalid_confirm_password = 2131099859;
public static final int invalid_email = 2131099860;
public static final int invalid_login_entries = 2131099861;
public static final int invalid_password = 2131099862;
public static final int ip_label = 2131099863;
public static final int ip_switch_label = 2131099864;
public static final int keep_trying = 2131099865;
public static final int lets_name_your_camera = 2131099866;
public static final int live_button = 2131099867;
public static final int live_button_label = 2131099868;
public static final int live_view_beta = 2131099869;
public static final int live_view_mode = 2131099870;
public static final int live_view_not_supported_text = 2131099871;
public static final int live_view_not_supported_title = 2131099872;
public static final int live_view_timeout_label = 2131099873;
public static final int login_button = 2131099874;
public static final int logout_button_label = 2131099875;
public static final int manage_account = 2131099876;
public static final int manage_systems = 2131099877;
public static final int mark_all = 2131099878;
public static final int mark_all_button_label = 2131099879;
public static final int missing_email = 2131099880;
public static final int monday = 2131099881;
public static final int moto_x_XT1058 = 2131099882;
public static final int mr_media_route_button_content_description = 2131099696;
public static final int mr_media_route_chooser_searching = 2131099697;
public static final int mr_media_route_chooser_title = 2131099698;
public static final int mr_media_route_controller_disconnect = 2131099699;
public static final int mr_media_route_controller_no_info_available = 2131099700;
public static final int mr_media_route_controller_pause = 2131099701;
public static final int mr_media_route_controller_play = 2131099702;
public static final int mr_media_route_controller_settings_description = 2131099703;
public static final int mr_media_route_controller_stop = 2131099704;
public static final int mr_system_route_name = 2131099705;
public static final int mr_user_route_category_name = 2131099706;
public static final int navigation_drawer_close = 2131099883;
public static final int navigation_drawer_open = 2131099884;
public static final int need_ext_storage = 2131099885;
public static final int network_passphrase = 2131099886;
public static final int new_to_blink_prompt = 2131099887;
public static final int no_button = 2131099888;
public static final int no_clip_items_text = 2131099889;
public static final int no_networks_available = 2131099890;
public static final int ok_button = 2131099891;
public static final int onboard_1_text = 2131099892;
public static final int onboard_2_text = 2131099893;
public static final int onboard_3a_text = 2131099894;
public static final int onboard_3b_text = 2131099895;
public static final int onboard_3c_text = 2131099896;
public static final int onboard_3d_text = 2131099897;
public static final int onboard_3e_text = 2131099898;
public static final int onboard_3f_text = 2131099899;
public static final int onboard_3g_text = 2131099900;
public static final int onboard_4_text = 2131099901;
public static final int onboard_5_text = 2131099902;
public static final int onboard_6_text = 2131099903;
public static final int onboard_7_text = 2131099904;
public static final int onboard_8_failed_text = 2131099905;
public static final int onboard_8_text = 2131099906;
public static final int onboard_SSID_hint = 2131099907;
public static final int onboard_passphrase_hint = 2131099908;
public static final int password = 2131099909;
public static final int password_label = 2131099910;
public static final int password_title = 2131099911;
public static final int past_event_header = 2131099912;
public static final int past_video_header = 2131099913;
public static final int pic_button = 2131099914;
public static final int place_autocomplete_clear_button = 2131099707;
public static final int place_autocomplete_search_hint = 2131099708;
public static final int please_enter_password = 2131099915;
public static final int please_wait_for_download = 2131099916;
public static final int port_label = 2131099917;
public static final int privacy_policy_url = 2131099918;
public static final int prod_switch_label = 2131099919;
public static final int production_url = 2131099920;
public static final int profile_title = 2131099921;
public static final int quality_label = 2131099922;
public static final int reconfigure_sync_module_label = 2131099923;
public static final int region_picker_instructions = 2131099924;
public static final int resend_token_button = 2131099925;
public static final int reset_all_button = 2131099926;
public static final int reset_db_button = 2131099927;
public static final int retry_button = 2131099928;
public static final int rtsp_label = 2131099929;
public static final int samsung_galaxy_note5_SM_N920G = 2131099930;
public static final int saturday = 2131099931;
public static final int send_feedback = 2131099932;
public static final int send_feedback_url = 2131099933;
public static final int serial_number_button = 2131099934;
public static final int serial_number_hint = 2131099935;
public static final int settings_update_btn = 2131099936;
public static final int share_video_clip_body = 2131099937;
public static final int share_video_clip_choose = 2131099938;
public static final int share_video_clip_title = 2131099939;
public static final int show_password = 2131099940;
public static final int show_pw = 2131099941;
public static final int show_video = 2131099942;
public static final int sign_in = 2131099943;
public static final int sign_in_button = 2131099944;
public static final int sign_in_title = 2131099945;
public static final int sign_out = 2131099946;
public static final int signal_label = 2131099947;
public static final int signal_status_label_low = 2131099948;
public static final int signal_status_label_medium = 2131099949;
public static final int signal_status_label_strong = 2131099950;
public static final int signed_out = 2131099951;
public static final int simulate_alert = 2131099952;
public static final int simulate_motion_detect_button = 2131099953;
public static final int sorry = 2131099954;
public static final int ssid_label = 2131099955;
public static final int stage_switch_label = 2131099956;
public static final int status_bar_notification_info_overflow = 2131099709;
public static final int status_label = 2131099957;
public static final int stop_button = 2131099958;
public static final int store_picture_message = 2131099959;
public static final int store_picture_title = 2131099960;
public static final int sunday = 2131099961;
public static final int sync_module_name = 2131099962;
public static final int tap_to_add_camera = 2131099963;
public static final int tap_to_add_sm = 2131099964;
public static final int temperature_units_label = 2131099965;
public static final int terms_of_service_url = 2131099966;
public static final int test_api = 2131099967;
public static final int test_api_fields_header = 2131099968;
public static final int test_api_path = 2131099969;
public static final int test_api_path_header = 2131099970;
public static final int test_request_btn = 2131099971;
public static final int test_switch_label = 2131099972;
public static final int text_lfr_signal_strength = 2131099973;
public static final int text_wifi_signal_strength = 2131099974;
public static final int textview_return_to_blink = 2131099975;
public static final int three_spaces = 2131099976;
public static final int thursday = 2131099977;
public static final int title_about_blink_activity = 2131099978;
public static final int title_account_settings = 2131099979;
public static final int title_activity_add_camera = 2131099980;
public static final int title_activity_apitest = 2131099981;
public static final int title_activity_apitest_request = 2131099982;
public static final int title_activity_create_account = 2131099983;
public static final int title_activity_events = 2131099984;
public static final int title_activity_filter_fragment = 2131099985;
public static final int title_activity_homescreen = 2131099986;
public static final int title_activity_login_fragment = 2131099987;
public static final int title_activity_logout = 2131099988;
public static final int title_activity_onboarding_1 = 2131099989;
public static final int title_activity_setup = 2131099990;
public static final int title_activity_video_list_filter_view = 2131099991;
public static final int title_activity_video_list_view = 2131099992;
public static final int title_activity_video_live_view = 2131099993;
public static final int title_activity_video_player = 2131099994;
public static final int title_activity_visit_blink = 2131099995;
public static final int title_advanced = 2131099996;
public static final int title_advanced_settings_fragment = 2131099997;
public static final int title_camera_settings_fragment = 2131099998;
public static final int title_configure_sync = 2131099999;
public static final int title_manage_account = 2131100000;
public static final int title_manage_systems = 2131100001;
public static final int title_send_feedback_activity = 2131100002;
public static final int title_sync_wifi = 2131100003;
public static final int todays_event_header = 2131100004;
public static final int todays_video_header = 2131100005;
public static final int try_again = 2131100006;
public static final int try_again_button_label = 2131100007;
public static final int try_again_message = 2131100008;
public static final int try_login_again = 2131100009;
public static final int tuesday = 2131100010;
public static final int user_name_title = 2131100011;
public static final int username = 2131100012;
public static final int version_prefix = 2131100013;
public static final int view_alert_button = 2131100014;
public static final int view_button = 2131100015;
public static final int visit_blink = 2131100016;
public static final int visit_blink_url = 2131100017;
public static final int wait_while_we_add_camera = 2131100018;
public static final int wait_while_we_add_module = 2131100019;
public static final int wallet_buy_button_place_holder = 2131099710;
public static final int wednesday = 2131100020;
public static final int wifi_watchdog_dialog = 2131100021;
public static final int wifi_watchdog_dialog_retry = 2131100022;
public static final int would_you_like_to_onboard = 2131100023;
public static final int yes_button = 2131100024;
public static final int yesterdays_event_header = 2131100025;
public static final int yesterdays_video_header = 2131100026;
}
public static final class style
{
public static final int AlertDialog_AppCompat = 2131296382;
public static final int AlertDialog_AppCompat_Light = 2131296383;
public static final int Animation_AppCompat_Dialog = 2131296384;
public static final int Animation_AppCompat_DropDownUp = 2131296385;
public static final int AppTheme = 2131296386;
public static final int Base_AlertDialog_AppCompat = 2131296387;
public static final int Base_AlertDialog_AppCompat_Light = 2131296388;
public static final int Base_Animation_AppCompat_Dialog = 2131296389;
public static final int Base_Animation_AppCompat_DropDownUp = 2131296390;
public static final int Base_DialogWindowTitleBackground_AppCompat = 2131296392;
public static final int Base_DialogWindowTitle_AppCompat = 2131296391;
public static final int Base_TextAppearance_AppCompat = 2131296304;
public static final int Base_TextAppearance_AppCompat_Body1 = 2131296305;
public static final int Base_TextAppearance_AppCompat_Body2 = 2131296306;
public static final int Base_TextAppearance_AppCompat_Button = 2131296282;
public static final int Base_TextAppearance_AppCompat_Caption = 2131296307;
public static final int Base_TextAppearance_AppCompat_Display1 = 2131296308;
public static final int Base_TextAppearance_AppCompat_Display2 = 2131296309;
public static final int Base_TextAppearance_AppCompat_Display3 = 2131296310;
public static final int Base_TextAppearance_AppCompat_Display4 = 2131296311;
public static final int Base_TextAppearance_AppCompat_Headline = 2131296312;
public static final int Base_TextAppearance_AppCompat_Inverse = 2131296260;
public static final int Base_TextAppearance_AppCompat_Large = 2131296313;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 2131296261;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131296314;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131296315;
public static final int Base_TextAppearance_AppCompat_Medium = 2131296316;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 2131296262;
public static final int Base_TextAppearance_AppCompat_Menu = 2131296317;
public static final int Base_TextAppearance_AppCompat_SearchResult = 2131296393;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131296318;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 2131296319;
public static final int Base_TextAppearance_AppCompat_Small = 2131296320;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 2131296263;
public static final int Base_TextAppearance_AppCompat_Subhead = 2131296321;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131296264;
public static final int Base_TextAppearance_AppCompat_Title = 2131296322;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 2131296265;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131296323;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131296324;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131296325;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131296326;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131296327;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131296328;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131296329;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 2131296330;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131296378;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131296394;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131296331;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131296332;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 2131296333;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131296334;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131296395;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131296335;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131296336;
public static final int Base_ThemeOverlay_AppCompat = 2131296404;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 2131296405;
public static final int Base_ThemeOverlay_AppCompat_Dark = 2131296406;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131296407;
public static final int Base_ThemeOverlay_AppCompat_Light = 2131296408;
public static final int Base_Theme_AppCompat = 2131296337;
public static final int Base_Theme_AppCompat_CompactMenu = 2131296396;
public static final int Base_Theme_AppCompat_Dialog = 2131296266;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 2131296257;
public static final int Base_Theme_AppCompat_Dialog_Alert = 2131296397;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 2131296398;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 2131296399;
public static final int Base_Theme_AppCompat_Light = 2131296338;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 2131296400;
public static final int Base_Theme_AppCompat_Light_Dialog = 2131296267;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131296258;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 2131296401;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131296402;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131296403;
public static final int Base_V11_Theme_AppCompat_Dialog = 2131296268;
public static final int Base_V11_Theme_AppCompat_Light_Dialog = 2131296269;
public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView = 2131296278;
public static final int Base_V12_Widget_AppCompat_EditText = 2131296279;
public static final int Base_V21_Theme_AppCompat = 2131296339;
public static final int Base_V21_Theme_AppCompat_Dialog = 2131296340;
public static final int Base_V21_Theme_AppCompat_Light = 2131296341;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 2131296342;
public static final int Base_V22_Theme_AppCompat = 2131296376;
public static final int Base_V22_Theme_AppCompat_Light = 2131296377;
public static final int Base_V23_Theme_AppCompat = 2131296379;
public static final int Base_V23_Theme_AppCompat_Light = 2131296380;
public static final int Base_V7_Theme_AppCompat = 2131296409;
public static final int Base_V7_Theme_AppCompat_Dialog = 2131296410;
public static final int Base_V7_Theme_AppCompat_Light = 2131296411;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 2131296412;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131296413;
public static final int Base_V7_Widget_AppCompat_EditText = 2131296414;
public static final int Base_Widget_AppCompat_ActionBar = 2131296415;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 2131296416;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 2131296417;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 2131296343;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 2131296344;
public static final int Base_Widget_AppCompat_ActionButton = 2131296345;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 2131296346;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 2131296347;
public static final int Base_Widget_AppCompat_ActionMode = 2131296418;
public static final int Base_Widget_AppCompat_ActivityChooserView = 2131296419;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 2131296280;
public static final int Base_Widget_AppCompat_Button = 2131296348;
public static final int Base_Widget_AppCompat_ButtonBar = 2131296352;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131296421;
public static final int Base_Widget_AppCompat_Button_Borderless = 2131296349;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 2131296350;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131296420;
public static final int Base_Widget_AppCompat_Button_Colored = 2131296381;
public static final int Base_Widget_AppCompat_Button_Small = 2131296351;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131296353;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131296354;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 2131296422;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 2131296256;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131296423;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 2131296355;
public static final int Base_Widget_AppCompat_EditText = 2131296281;
public static final int Base_Widget_AppCompat_ImageButton = 2131296356;
public static final int Base_Widget_AppCompat_Light_ActionBar = 2131296424;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131296425;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131296426;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131296357;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131296358;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131296359;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 2131296360;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131296361;
public static final int Base_Widget_AppCompat_ListPopupWindow = 2131296362;
public static final int Base_Widget_AppCompat_ListView = 2131296363;
public static final int Base_Widget_AppCompat_ListView_DropDown = 2131296364;
public static final int Base_Widget_AppCompat_ListView_Menu = 2131296365;
public static final int Base_Widget_AppCompat_PopupMenu = 2131296366;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 2131296367;
public static final int Base_Widget_AppCompat_PopupWindow = 2131296427;
public static final int Base_Widget_AppCompat_ProgressBar = 2131296270;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131296271;
public static final int Base_Widget_AppCompat_RatingBar = 2131296368;
public static final int Base_Widget_AppCompat_SearchView = 2131296428;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 2131296429;
public static final int Base_Widget_AppCompat_SeekBar = 2131296369;
public static final int Base_Widget_AppCompat_Spinner = 2131296370;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 2131296259;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 2131296371;
public static final int Base_Widget_AppCompat_Toolbar = 2131296430;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131296372;
public static final int Platform_AppCompat = 2131296272;
public static final int Platform_AppCompat_Light = 2131296273;
public static final int Platform_ThemeOverlay_AppCompat = 2131296373;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 2131296374;
public static final int Platform_ThemeOverlay_AppCompat_Light = 2131296375;
public static final int Platform_V11_AppCompat = 2131296274;
public static final int Platform_V11_AppCompat_Light = 2131296275;
public static final int Platform_V14_AppCompat = 2131296283;
public static final int Platform_V14_AppCompat_Light = 2131296284;
public static final int Platform_Widget_AppCompat_Spinner = 2131296276;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 2131296290;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131296291;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131296292;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131296293;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131296294;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131296295;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131296301;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131296296;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131296297;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131296298;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131296299;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131296300;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 2131296302;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131296303;
public static final int SwitchStyling = 2131296431;
public static final int TextAppearance_AppCompat = 2131296432;
public static final int TextAppearance_AppCompat_Body1 = 2131296433;
public static final int TextAppearance_AppCompat_Body2 = 2131296434;
public static final int TextAppearance_AppCompat_Button = 2131296435;
public static final int TextAppearance_AppCompat_Caption = 2131296436;
public static final int TextAppearance_AppCompat_Display1 = 2131296437;
public static final int TextAppearance_AppCompat_Display2 = 2131296438;
public static final int TextAppearance_AppCompat_Display3 = 2131296439;
public static final int TextAppearance_AppCompat_Display4 = 2131296440;
public static final int TextAppearance_AppCompat_Headline = 2131296441;
public static final int TextAppearance_AppCompat_Inverse = 2131296442;
public static final int TextAppearance_AppCompat_Large = 2131296443;
public static final int TextAppearance_AppCompat_Large_Inverse = 2131296444;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131296445;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 2131296446;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131296447;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131296448;
public static final int TextAppearance_AppCompat_Medium = 2131296449;
public static final int TextAppearance_AppCompat_Medium_Inverse = 2131296450;
public static final int TextAppearance_AppCompat_Menu = 2131296451;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 2131296452;
public static final int TextAppearance_AppCompat_SearchResult_Title = 2131296453;
public static final int TextAppearance_AppCompat_Small = 2131296454;
public static final int TextAppearance_AppCompat_Small_Inverse = 2131296455;
public static final int TextAppearance_AppCompat_Subhead = 2131296456;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 2131296457;
public static final int TextAppearance_AppCompat_Title = 2131296458;
public static final int TextAppearance_AppCompat_Title_Inverse = 2131296459;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131296460;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131296461;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131296462;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131296463;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131296464;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131296465;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131296466;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131296467;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131296468;
public static final int TextAppearance_AppCompat_Widget_Button = 2131296469;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 2131296470;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 2131296471;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131296472;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131296473;
public static final int TextAppearance_AppCompat_Widget_Switch = 2131296474;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131296475;
public static final int TextAppearance_StatusBar_EventContent = 2131296285;
public static final int TextAppearance_StatusBar_EventContent_Info = 2131296286;
public static final int TextAppearance_StatusBar_EventContent_Line2 = 2131296287;
public static final int TextAppearance_StatusBar_EventContent_Time = 2131296288;
public static final int TextAppearance_StatusBar_EventContent_Title = 2131296289;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131296476;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131296477;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131296478;
public static final int ThemeOverlay_AppCompat = 2131296497;
public static final int ThemeOverlay_AppCompat_ActionBar = 2131296498;
public static final int ThemeOverlay_AppCompat_Dark = 2131296499;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 2131296500;
public static final int ThemeOverlay_AppCompat_Light = 2131296501;
public static final int Theme_AppCompat = 2131296479;
public static final int Theme_AppCompat_CompactMenu = 2131296480;
public static final int Theme_AppCompat_Dialog = 2131296481;
public static final int Theme_AppCompat_DialogWhenLarge = 2131296484;
public static final int Theme_AppCompat_Dialog_Alert = 2131296482;
public static final int Theme_AppCompat_Dialog_MinWidth = 2131296483;
public static final int Theme_AppCompat_Light = 2131296485;
public static final int Theme_AppCompat_Light_DarkActionBar = 2131296486;
public static final int Theme_AppCompat_Light_Dialog = 2131296487;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 2131296490;
public static final int Theme_AppCompat_Light_Dialog_Alert = 2131296488;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 2131296489;
public static final int Theme_AppCompat_Light_NoActionBar = 2131296491;
public static final int Theme_AppCompat_NoActionBar = 2131296492;
public static final int Theme_AppInvite_Preview = 2131296493;
public static final int Theme_AppInvite_Preview_Base = 2131296277;
public static final int Theme_IAPTheme = 2131296494;
public static final int Theme_MediaRouter = 2131296495;
public static final int Theme_MediaRouter_Light = 2131296496;
public static final int WalletFragmentDefaultButtonTextAppearance = 2131296502;
public static final int WalletFragmentDefaultDetailsHeaderTextAppearance = 2131296503;
public static final int WalletFragmentDefaultDetailsTextAppearance = 2131296504;
public static final int WalletFragmentDefaultStyle = 2131296505;
public static final int Widget_AppCompat_ActionBar = 2131296506;
public static final int Widget_AppCompat_ActionBar_Solid = 2131296507;
public static final int Widget_AppCompat_ActionBar_TabBar = 2131296508;
public static final int Widget_AppCompat_ActionBar_TabText = 2131296509;
public static final int Widget_AppCompat_ActionBar_TabView = 2131296510;
public static final int Widget_AppCompat_ActionButton = 2131296511;
public static final int Widget_AppCompat_ActionButton_CloseMode = 2131296512;
public static final int Widget_AppCompat_ActionButton_Overflow = 2131296513;
public static final int Widget_AppCompat_ActionMode = 2131296514;
public static final int Widget_AppCompat_ActivityChooserView = 2131296515;
public static final int Widget_AppCompat_AutoCompleteTextView = 2131296516;
public static final int Widget_AppCompat_Button = 2131296517;
public static final int Widget_AppCompat_ButtonBar = 2131296523;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 2131296524;
public static final int Widget_AppCompat_Button_Borderless = 2131296518;
public static final int Widget_AppCompat_Button_Borderless_Colored = 2131296519;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131296520;
public static final int Widget_AppCompat_Button_Colored = 2131296521;
public static final int Widget_AppCompat_Button_Small = 2131296522;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 2131296525;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 2131296526;
public static final int Widget_AppCompat_CompoundButton_Switch = 2131296527;
public static final int Widget_AppCompat_DrawerArrowToggle = 2131296528;
public static final int Widget_AppCompat_DropDownItem_Spinner = 2131296529;
public static final int Widget_AppCompat_EditText = 2131296530;
public static final int Widget_AppCompat_ImageButton = 2131296531;
public static final int Widget_AppCompat_Light_ActionBar = 2131296532;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 2131296533;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131296534;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 2131296535;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131296536;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 2131296537;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131296538;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 2131296539;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131296540;
public static final int Widget_AppCompat_Light_ActionButton = 2131296541;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 2131296542;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 2131296543;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 2131296544;
public static final int Widget_AppCompat_Light_ActivityChooserView = 2131296545;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 2131296546;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 2131296547;
public static final int Widget_AppCompat_Light_ListPopupWindow = 2131296548;
public static final int Widget_AppCompat_Light_ListView_DropDown = 2131296549;
public static final int Widget_AppCompat_Light_PopupMenu = 2131296550;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 2131296551;
public static final int Widget_AppCompat_Light_SearchView = 2131296552;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131296553;
public static final int Widget_AppCompat_ListPopupWindow = 2131296554;
public static final int Widget_AppCompat_ListView = 2131296555;
public static final int Widget_AppCompat_ListView_DropDown = 2131296556;
public static final int Widget_AppCompat_ListView_Menu = 2131296557;
public static final int Widget_AppCompat_PopupMenu = 2131296558;
public static final int Widget_AppCompat_PopupMenu_Overflow = 2131296559;
public static final int Widget_AppCompat_PopupWindow = 2131296560;
public static final int Widget_AppCompat_ProgressBar = 2131296561;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 2131296562;
public static final int Widget_AppCompat_RatingBar = 2131296563;
public static final int Widget_AppCompat_SearchView = 2131296564;
public static final int Widget_AppCompat_SearchView_ActionBar = 2131296565;
public static final int Widget_AppCompat_SeekBar = 2131296566;
public static final int Widget_AppCompat_Spinner = 2131296567;
public static final int Widget_AppCompat_Spinner_DropDown = 2131296568;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131296569;
public static final int Widget_AppCompat_Spinner_Underlined = 2131296570;
public static final int Widget_AppCompat_TextView_SpinnerItem = 2131296571;
public static final int Widget_AppCompat_Toolbar = 2131296572;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 2131296573;
public static final int Widget_MediaRouter_Light_MediaRouteButton = 2131296574;
public static final int Widget_MediaRouter_MediaRouteButton = 2131296575;
public static final int customSwitchStyle = 2131296576;
public static final int customSwitchTextAppearance = 2131296577;
}
public static final class styleable
{
public static final int[] ActionBar = { 2130771970, 2130771980, 2130771981, 2130771982, 2130771983, 2130771984, 2130771985, 2130771986, 2130771987, 2130771988, 2130771989, 2130771990, 2130771991, 2130771992, 2130771993, 2130771994, 2130771995, 2130771996, 2130771997, 2130771998, 2130771999, 2130772000, 2130772001, 2130772002, 2130772003, 2130772004, 2130772155 };
public static final int[] ActionBarLayout = { 16842931 };
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int ActionBar_background = 10;
public static final int ActionBar_backgroundSplit = 12;
public static final int ActionBar_backgroundStacked = 11;
public static final int ActionBar_contentInsetEnd = 21;
public static final int ActionBar_contentInsetLeft = 22;
public static final int ActionBar_contentInsetRight = 23;
public static final int ActionBar_contentInsetStart = 20;
public static final int ActionBar_customNavigationLayout = 13;
public static final int ActionBar_displayOptions = 3;
public static final int ActionBar_divider = 9;
public static final int ActionBar_elevation = 24;
public static final int ActionBar_height = 0;
public static final int ActionBar_hideOnContentScroll = 19;
public static final int ActionBar_homeAsUpIndicator = 26;
public static final int ActionBar_homeLayout = 14;
public static final int ActionBar_icon = 7;
public static final int ActionBar_indeterminateProgressStyle = 16;
public static final int ActionBar_itemPadding = 18;
public static final int ActionBar_logo = 8;
public static final int ActionBar_navigationMode = 2;
public static final int ActionBar_popupTheme = 25;
public static final int ActionBar_progressBarPadding = 17;
public static final int ActionBar_progressBarStyle = 15;
public static final int ActionBar_subtitle = 4;
public static final int ActionBar_subtitleTextStyle = 6;
public static final int ActionBar_title = 1;
public static final int ActionBar_titleTextStyle = 5;
public static final int[] ActionMenuItemView = { 16843071 };
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMenuView = new int[0];
public static final int[] ActionMode = { 2130771970, 2130771984, 2130771985, 2130771989, 2130771991, 2130772005 };
public static final int ActionMode_background = 3;
public static final int ActionMode_backgroundSplit = 4;
public static final int ActionMode_closeItemLayout = 5;
public static final int ActionMode_height = 0;
public static final int ActionMode_subtitleTextStyle = 2;
public static final int ActionMode_titleTextStyle = 1;
public static final int[] ActivityChooserView = { 2130772006, 2130772007 };
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
public static final int ActivityChooserView_initialActivityCount = 0;
public static final int[] AdsAttrs = { 2130772008, 2130772009, 2130772010 };
public static final int AdsAttrs_adSize = 0;
public static final int AdsAttrs_adSizes = 1;
public static final int AdsAttrs_adUnitId = 2;
public static final int[] AlertDialog = { 16842994, 2130772011, 2130772012, 2130772013, 2130772014, 2130772015 };
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonPanelSideLayout = 1;
public static final int AlertDialog_listItemLayout = 5;
public static final int AlertDialog_listLayout = 2;
public static final int AlertDialog_multiChoiceItemLayout = 3;
public static final int AlertDialog_singleChoiceItemLayout = 4;
public static final int[] AppCompatTextView = { 16842804, 2130772016 };
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_textAllCaps = 1;
public static final int[] ButtonBarLayout = { 2130772017 };
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] CompoundButton = { 16843015, 2130772018, 2130772019 };
public static final int CompoundButton_android_button = 0;
public static final int CompoundButton_buttonTint = 1;
public static final int CompoundButton_buttonTintMode = 2;
public static final int[] CustomSwitch = { 2130772020, 2130772021, 2130772022, 2130772023, 2130772024, 2130772025, 2130772026, 2130772027, 2130772028, 2130772029, 2130772030, 2130772031, 2130772032, 2130772033, 2130772034, 2130772035, 2130772036, 2130772037, 2130772038 };
public static final int[] CustomSwitchTextAppearanceAttrib = { 2130772039, 2130772040, 2130772041, 2130772042, 2130772043, 2130772044, 2130772045 };
public static final int CustomSwitchTextAppearanceAttrib_textColor = 0;
public static final int CustomSwitchTextAppearanceAttrib_textColorHighlight = 4;
public static final int CustomSwitchTextAppearanceAttrib_textColorHint = 5;
public static final int CustomSwitchTextAppearanceAttrib_textColorLink = 6;
public static final int CustomSwitchTextAppearanceAttrib_textSize = 1;
public static final int CustomSwitchTextAppearanceAttrib_textStyle = 2;
public static final int CustomSwitchTextAppearanceAttrib_typeface = 3;
public static final int CustomSwitch_customBackgroundMask = 18;
public static final int CustomSwitch_customDrawableOff = 5;
public static final int CustomSwitch_customDrawableOn = 4;
public static final int CustomSwitch_customLeftBackground = 16;
public static final int CustomSwitch_customOrientation = 15;
public static final int CustomSwitch_customPushStyle = 6;
public static final int CustomSwitch_customRightBackground = 17;
public static final int CustomSwitch_customSwitchMinHeight = 13;
public static final int CustomSwitch_customSwitchMinWidth = 12;
public static final int CustomSwitch_customSwitchPadding = 14;
public static final int CustomSwitch_customSwitchTextAppearanceAttrib = 11;
public static final int CustomSwitch_customTextOff = 3;
public static final int CustomSwitch_customTextOn = 2;
public static final int CustomSwitch_customTextOnThumb = 7;
public static final int CustomSwitch_customThumb = 0;
public static final int CustomSwitch_customThumbExtraMovement = 8;
public static final int CustomSwitch_customThumbTextPadding = 9;
public static final int CustomSwitch_customTrack = 1;
public static final int CustomSwitch_customTrackTextPadding = 10;
public static final int[] CustomWalletTheme = { 2130772046 };
public static final int CustomWalletTheme_windowTransitionStyle = 0;
public static final int[] DrawerArrowToggle = { 2130772047, 2130772048, 2130772049, 2130772050, 2130772051, 2130772052, 2130772053, 2130772054 };
public static final int DrawerArrowToggle_arrowHeadLength = 4;
public static final int DrawerArrowToggle_arrowShaftLength = 5;
public static final int DrawerArrowToggle_barLength = 6;
public static final int DrawerArrowToggle_color = 0;
public static final int DrawerArrowToggle_drawableSize = 2;
public static final int DrawerArrowToggle_gapBetweenBars = 3;
public static final int DrawerArrowToggle_spinBars = 1;
public static final int DrawerArrowToggle_thickness = 7;
public static final int[] LinearLayoutCompat = { 16842927, 16842948, 16843046, 16843047, 16843048, 2130771988, 2130772055, 2130772056, 2130772057 };
public static final int[] LinearLayoutCompat_Layout = { 16842931, 16842996, 16842997, 16843137 };
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
public static final int LinearLayoutCompat_android_baselineAligned = 2;
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static final int LinearLayoutCompat_android_gravity = 0;
public static final int LinearLayoutCompat_android_orientation = 1;
public static final int LinearLayoutCompat_android_weightSum = 4;
public static final int LinearLayoutCompat_divider = 5;
public static final int LinearLayoutCompat_dividerPadding = 8;
public static final int LinearLayoutCompat_measureWithLargestChild = 6;
public static final int LinearLayoutCompat_showDividers = 7;
public static final int[] ListPopupWindow = { 16843436, 16843437 };
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] LoadingImageView = { 2130772058, 2130772059, 2130772060 };
public static final int LoadingImageView_circleCrop = 2;
public static final int LoadingImageView_imageAspectRatio = 1;
public static final int LoadingImageView_imageAspectRatioAdjust = 0;
public static final int[] MapAttrs = { 2130772061, 2130772062, 2130772063, 2130772064, 2130772065, 2130772066, 2130772067, 2130772068, 2130772069, 2130772070, 2130772071, 2130772072, 2130772073, 2130772074, 2130772075, 2130772076, 2130772077 };
public static final int MapAttrs_ambientEnabled = 16;
public static final int MapAttrs_cameraBearing = 1;
public static final int MapAttrs_cameraTargetLat = 2;
public static final int MapAttrs_cameraTargetLng = 3;
public static final int MapAttrs_cameraTilt = 4;
public static final int MapAttrs_cameraZoom = 5;
public static final int MapAttrs_liteMode = 6;
public static final int MapAttrs_mapType = 0;
public static final int MapAttrs_uiCompass = 7;
public static final int MapAttrs_uiMapToolbar = 15;
public static final int MapAttrs_uiRotateGestures = 8;
public static final int MapAttrs_uiScrollGestures = 9;
public static final int MapAttrs_uiTiltGestures = 10;
public static final int MapAttrs_uiZoomControls = 11;
public static final int MapAttrs_uiZoomGestures = 12;
public static final int MapAttrs_useViewLifecycle = 13;
public static final int MapAttrs_zOrderOnTop = 14;
public static final int[] MediaRouteButton = { 16843071, 16843072, 2130772078 };
public static final int MediaRouteButton_android_minHeight = 1;
public static final int MediaRouteButton_android_minWidth = 0;
public static final int MediaRouteButton_externalRouteEnabledDrawable = 2;
public static final int[] MenuGroup = { 16842766, 16842960, 16843156, 16843230, 16843231, 16843232 };
public static final int MenuGroup_android_checkableBehavior = 5;
public static final int MenuGroup_android_enabled = 0;
public static final int MenuGroup_android_id = 1;
public static final int MenuGroup_android_menuCategory = 3;
public static final int MenuGroup_android_orderInCategory = 4;
public static final int MenuGroup_android_visible = 2;
public static final int[] MenuItem = { 16842754, 16842766, 16842960, 16843014, 16843156, 16843230, 16843231, 16843233, 16843234, 16843235, 16843236, 16843237, 16843375, 2130772079, 2130772080, 2130772081, 2130772082 };
public static final int MenuItem_actionLayout = 14;
public static final int MenuItem_actionProviderClass = 16;
public static final int MenuItem_actionViewClass = 15;
public static final int MenuItem_android_alphabeticShortcut = 9;
public static final int MenuItem_android_checkable = 11;
public static final int MenuItem_android_checked = 3;
public static final int MenuItem_android_enabled = 1;
public static final int MenuItem_android_icon = 0;
public static final int MenuItem_android_id = 2;
public static final int MenuItem_android_menuCategory = 5;
public static final int MenuItem_android_numericShortcut = 10;
public static final int MenuItem_android_onClick = 12;
public static final int MenuItem_android_orderInCategory = 6;
public static final int MenuItem_android_title = 7;
public static final int MenuItem_android_titleCondensed = 8;
public static final int MenuItem_android_visible = 4;
public static final int MenuItem_showAsAction = 13;
public static final int[] MenuView = { 16842926, 16843052, 16843053, 16843054, 16843055, 16843056, 16843057, 2130772083 };
public static final int MenuView_android_headerBackground = 4;
public static final int MenuView_android_horizontalDivider = 2;
public static final int MenuView_android_itemBackground = 5;
public static final int MenuView_android_itemIconDisabledAlpha = 6;
public static final int MenuView_android_itemTextAppearance = 1;
public static final int MenuView_android_verticalDivider = 3;
public static final int MenuView_android_windowAnimationStyle = 0;
public static final int MenuView_preserveIconSpacing = 7;
public static final int[] PopupWindow = { 16843126, 2130772084 };
public static final int[] PopupWindowBackgroundState = { 2130772085 };
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int PopupWindow_android_popupBackground = 0;
public static final int PopupWindow_overlapAnchor = 1;
public static final int[] SearchView = { 16842970, 16843039, 16843296, 16843364, 2130772086, 2130772087, 2130772088, 2130772089, 2130772090, 2130772091, 2130772092, 2130772093, 2130772094, 2130772095, 2130772096, 2130772097, 2130772098 };
public static final int SearchView_android_focusable = 0;
public static final int SearchView_android_imeOptions = 3;
public static final int SearchView_android_inputType = 2;
public static final int SearchView_android_maxWidth = 1;
public static final int SearchView_closeIcon = 8;
public static final int SearchView_commitIcon = 13;
public static final int SearchView_defaultQueryHint = 7;
public static final int SearchView_goIcon = 9;
public static final int SearchView_iconifiedByDefault = 5;
public static final int SearchView_layout = 4;
public static final int SearchView_queryBackground = 15;
public static final int SearchView_queryHint = 6;
public static final int SearchView_searchHintIcon = 11;
public static final int SearchView_searchIcon = 10;
public static final int SearchView_submitBackground = 16;
public static final int SearchView_suggestionRowLayout = 14;
public static final int SearchView_voiceIcon = 12;
public static final int[] SignInButton = { 2130772099, 2130772100, 2130772101 };
public static final int SignInButton_buttonSize = 0;
public static final int SignInButton_colorScheme = 1;
public static final int SignInButton_scopeUris = 2;
public static final int[] Spinner = { 16843126, 16843131, 16843362, 2130772004 };
public static final int Spinner_android_dropDownWidth = 2;
public static final int Spinner_android_popupBackground = 0;
public static final int Spinner_android_prompt = 1;
public static final int Spinner_popupTheme = 3;
public static final int[] SwitchCompat = { 16843044, 16843045, 16843074, 2130772102, 2130772103, 2130772104, 2130772105, 2130772106, 2130772107, 2130772108 };
public static final int SwitchCompat_android_textOff = 1;
public static final int SwitchCompat_android_textOn = 0;
public static final int SwitchCompat_android_thumb = 2;
public static final int SwitchCompat_showText = 9;
public static final int SwitchCompat_splitTrack = 8;
public static final int SwitchCompat_switchMinWidth = 6;
public static final int SwitchCompat_switchPadding = 7;
public static final int SwitchCompat_switchTextAppearance = 5;
public static final int SwitchCompat_thumbTextPadding = 4;
public static final int SwitchCompat_track = 3;
public static final int[] TextAppearance = { 16842901, 16842902, 16842903, 16842904, 16843105, 16843106, 16843107, 16843108, 2130772016 };
public static final int TextAppearance_android_shadowColor = 4;
public static final int TextAppearance_android_shadowDx = 5;
public static final int TextAppearance_android_shadowDy = 6;
public static final int TextAppearance_android_shadowRadius = 7;
public static final int TextAppearance_android_textColor = 3;
public static final int TextAppearance_android_textSize = 0;
public static final int TextAppearance_android_textStyle = 2;
public static final int TextAppearance_android_typeface = 1;
public static final int TextAppearance_textAllCaps = 8;
public static final int[] Theme = { 16842839, 16842926, 2130772109, 2130772110, 2130772111, 2130772112, 2130772113, 2130772114, 2130772115, 2130772116, 2130772117, 2130772118, 2130772119, 2130772120, 2130772121, 2130772122, 2130772123, 2130772124, 2130772125, 2130772126, 2130772127, 2130772128, 2130772129, 2130772130, 2130772131, 2130772132, 2130772133, 2130772134, 2130772135, 2130772136, 2130772137, 2130772138, 2130772139, 2130772140, 2130772141, 2130772142, 2130772143, 2130772144, 2130772145, 2130772146, 2130772147, 2130772148, 2130772149, 2130772150, 2130772151, 2130772152, 2130772153, 2130772154, 2130772155, 2130772156, 2130772157, 2130772158, 2130772159, 2130772160, 2130772161, 2130772162, 2130772163, 2130772164, 2130772165, 2130772166, 2130772167, 2130772168, 2130772169, 2130772170, 2130772171, 2130772172, 2130772173, 2130772174, 2130772175, 2130772176, 2130772177, 2130772178, 2130772179, 2130772180, 2130772181, 2130772182, 2130772183, 2130772184, 2130772185, 2130772186, 2130772187, 2130772188, 2130772189, 2130772190, 2130772191, 2130772192, 2130772193, 2130772194, 2130772195, 2130772196, 2130772197, 2130772198, 2130772199, 2130772200, 2130772201, 2130772202, 2130772203, 2130772204, 2130772205, 2130772206, 2130772207, 2130772208, 2130772209, 2130772210, 2130772211, 2130772212, 2130772213, 2130772214, 2130772215, 2130772216 };
public static final int Theme_actionBarDivider = 23;
public static final int Theme_actionBarItemBackground = 24;
public static final int Theme_actionBarPopupTheme = 17;
public static final int Theme_actionBarSize = 22;
public static final int Theme_actionBarSplitStyle = 19;
public static final int Theme_actionBarStyle = 18;
public static final int Theme_actionBarTabBarStyle = 13;
public static final int Theme_actionBarTabStyle = 12;
public static final int Theme_actionBarTabTextStyle = 14;
public static final int Theme_actionBarTheme = 20;
public static final int Theme_actionBarWidgetTheme = 21;
public static final int Theme_actionButtonStyle = 49;
public static final int Theme_actionDropDownStyle = 45;
public static final int Theme_actionMenuTextAppearance = 25;
public static final int Theme_actionMenuTextColor = 26;
public static final int Theme_actionModeBackground = 29;
public static final int Theme_actionModeCloseButtonStyle = 28;
public static final int Theme_actionModeCloseDrawable = 31;
public static final int Theme_actionModeCopyDrawable = 33;
public static final int Theme_actionModeCutDrawable = 32;
public static final int Theme_actionModeFindDrawable = 37;
public static final int Theme_actionModePasteDrawable = 34;
public static final int Theme_actionModePopupWindowStyle = 39;
public static final int Theme_actionModeSelectAllDrawable = 35;
public static final int Theme_actionModeShareDrawable = 36;
public static final int Theme_actionModeSplitBackground = 30;
public static final int Theme_actionModeStyle = 27;
public static final int Theme_actionModeWebSearchDrawable = 38;
public static final int Theme_actionOverflowButtonStyle = 15;
public static final int Theme_actionOverflowMenuStyle = 16;
public static final int Theme_activityChooserViewStyle = 57;
public static final int Theme_alertDialogButtonGroupStyle = 92;
public static final int Theme_alertDialogCenterButtons = 93;
public static final int Theme_alertDialogStyle = 91;
public static final int Theme_alertDialogTheme = 94;
public static final int Theme_android_windowAnimationStyle = 1;
public static final int Theme_android_windowIsFloating = 0;
public static final int Theme_autoCompleteTextViewStyle = 99;
public static final int Theme_borderlessButtonStyle = 54;
public static final int Theme_buttonBarButtonStyle = 51;
public static final int Theme_buttonBarNegativeButtonStyle = 97;
public static final int Theme_buttonBarNeutralButtonStyle = 98;
public static final int Theme_buttonBarPositiveButtonStyle = 96;
public static final int Theme_buttonBarStyle = 50;
public static final int Theme_buttonStyle = 100;
public static final int Theme_buttonStyleSmall = 101;
public static final int Theme_checkboxStyle = 102;
public static final int Theme_checkedTextViewStyle = 103;
public static final int Theme_colorAccent = 84;
public static final int Theme_colorButtonNormal = 88;
public static final int Theme_colorControlActivated = 86;
public static final int Theme_colorControlHighlight = 87;
public static final int Theme_colorControlNormal = 85;
public static final int Theme_colorPrimary = 82;
public static final int Theme_colorPrimaryDark = 83;
public static final int Theme_colorSwitchThumbNormal = 89;
public static final int Theme_controlBackground = 90;
public static final int Theme_dialogPreferredPadding = 43;
public static final int Theme_dialogTheme = 42;
public static final int Theme_dividerHorizontal = 56;
public static final int Theme_dividerVertical = 55;
public static final int Theme_dropDownListViewStyle = 74;
public static final int Theme_dropdownListPreferredItemHeight = 46;
public static final int Theme_editTextBackground = 63;
public static final int Theme_editTextColor = 62;
public static final int Theme_editTextStyle = 104;
public static final int Theme_homeAsUpIndicator = 48;
public static final int Theme_imageButtonStyle = 64;
public static final int Theme_listChoiceBackgroundIndicator = 81;
public static final int Theme_listDividerAlertDialog = 44;
public static final int Theme_listPopupWindowStyle = 75;
public static final int Theme_listPreferredItemHeight = 69;
public static final int Theme_listPreferredItemHeightLarge = 71;
public static final int Theme_listPreferredItemHeightSmall = 70;
public static final int Theme_listPreferredItemPaddingLeft = 72;
public static final int Theme_listPreferredItemPaddingRight = 73;
public static final int Theme_panelBackground = 78;
public static final int Theme_panelMenuListTheme = 80;
public static final int Theme_panelMenuListWidth = 79;
public static final int Theme_popupMenuStyle = 60;
public static final int Theme_popupWindowStyle = 61;
public static final int Theme_radioButtonStyle = 105;
public static final int Theme_ratingBarStyle = 106;
public static final int Theme_searchViewStyle = 68;
public static final int Theme_seekBarStyle = 107;
public static final int Theme_selectableItemBackground = 52;
public static final int Theme_selectableItemBackgroundBorderless = 53;
public static final int Theme_spinnerDropDownItemStyle = 47;
public static final int Theme_spinnerStyle = 108;
public static final int Theme_switchStyle = 109;
public static final int Theme_textAppearanceLargePopupMenu = 40;
public static final int Theme_textAppearanceListItem = 76;
public static final int Theme_textAppearanceListItemSmall = 77;
public static final int Theme_textAppearanceSearchResultSubtitle = 66;
public static final int Theme_textAppearanceSearchResultTitle = 65;
public static final int Theme_textAppearanceSmallPopupMenu = 41;
public static final int Theme_textColorAlertDialogListItem = 95;
public static final int Theme_textColorSearchUrl = 67;
public static final int Theme_toolbarNavigationButtonStyle = 59;
public static final int Theme_toolbarStyle = 58;
public static final int Theme_windowActionBar = 2;
public static final int Theme_windowActionBarOverlay = 4;
public static final int Theme_windowActionModeOverlay = 5;
public static final int Theme_windowFixedHeightMajor = 9;
public static final int Theme_windowFixedHeightMinor = 7;
public static final int Theme_windowFixedWidthMajor = 6;
public static final int Theme_windowFixedWidthMinor = 8;
public static final int Theme_windowMinWidthMajor = 10;
public static final int Theme_windowMinWidthMinor = 11;
public static final int Theme_windowNoTitle = 3;
public static final int[] Toolbar = { 16842927, 16843072, 2130771980, 2130771983, 2130771987, 2130771999, 2130772000, 2130772001, 2130772002, 2130772004, 2130772217, 2130772218, 2130772219, 2130772220, 2130772221, 2130772222, 2130772223, 2130772224, 2130772225, 2130772226, 2130772227, 2130772228, 2130772229, 2130772230, 2130772231 };
public static final int Toolbar_android_gravity = 0;
public static final int Toolbar_android_minHeight = 1;
public static final int Toolbar_collapseContentDescription = 19;
public static final int Toolbar_collapseIcon = 18;
public static final int Toolbar_contentInsetEnd = 6;
public static final int Toolbar_contentInsetLeft = 7;
public static final int Toolbar_contentInsetRight = 8;
public static final int Toolbar_contentInsetStart = 5;
public static final int Toolbar_logo = 4;
public static final int Toolbar_logoDescription = 22;
public static final int Toolbar_maxButtonHeight = 17;
public static final int Toolbar_navigationContentDescription = 21;
public static final int Toolbar_navigationIcon = 20;
public static final int Toolbar_popupTheme = 9;
public static final int Toolbar_subtitle = 3;
public static final int Toolbar_subtitleTextAppearance = 11;
public static final int Toolbar_subtitleTextColor = 24;
public static final int Toolbar_title = 2;
public static final int Toolbar_titleMarginBottom = 16;
public static final int Toolbar_titleMarginEnd = 14;
public static final int Toolbar_titleMarginStart = 13;
public static final int Toolbar_titleMarginTop = 15;
public static final int Toolbar_titleMargins = 12;
public static final int Toolbar_titleTextAppearance = 10;
public static final int Toolbar_titleTextColor = 23;
public static final int[] View = { 16842752, 16842970, 2130772232, 2130772233, 2130772234 };
public static final int[] ViewBackgroundHelper = { 16842964, 2130772235, 2130772236 };
public static final int ViewBackgroundHelper_android_background = 0;
public static final int ViewBackgroundHelper_backgroundTint = 1;
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
public static final int[] ViewStubCompat = { 16842960, 16842994, 16842995 };
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_inflatedId = 2;
public static final int ViewStubCompat_android_layout = 1;
public static final int View_android_focusable = 1;
public static final int View_android_theme = 0;
public static final int View_paddingEnd = 3;
public static final int View_paddingStart = 2;
public static final int View_theme = 4;
public static final int[] WalletFragmentOptions = { 2130772237, 2130772238, 2130772239, 2130772240 };
public static final int WalletFragmentOptions_appTheme = 0;
public static final int WalletFragmentOptions_environment = 1;
public static final int WalletFragmentOptions_fragmentMode = 3;
public static final int WalletFragmentOptions_fragmentStyle = 2;
public static final int[] WalletFragmentStyle = { 2130772241, 2130772242, 2130772243, 2130772244, 2130772245, 2130772246, 2130772247, 2130772248, 2130772249, 2130772250, 2130772251 };
public static final int WalletFragmentStyle_buyButtonAppearance = 3;
public static final int WalletFragmentStyle_buyButtonHeight = 0;
public static final int WalletFragmentStyle_buyButtonText = 2;
public static final int WalletFragmentStyle_buyButtonWidth = 1;
public static final int WalletFragmentStyle_maskedWalletDetailsBackground = 6;
public static final int WalletFragmentStyle_maskedWalletDetailsButtonBackground = 8;
public static final int WalletFragmentStyle_maskedWalletDetailsButtonTextAppearance = 7;
public static final int WalletFragmentStyle_maskedWalletDetailsHeaderTextAppearance = 5;
public static final int WalletFragmentStyle_maskedWalletDetailsLogoImageType = 10;
public static final int WalletFragmentStyle_maskedWalletDetailsLogoTextColor = 9;
public static final int WalletFragmentStyle_maskedWalletDetailsTextAppearance = 4;
}
}
/* Location: /home/zips/Android/Apktool/Blink4Home/Blink-136-dex2jar.jar!/com/immediasemi/blink/R.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/ | ericlagergren/Blink | R.java |
112 | import java.util.*;
class Employee
{
String name;
int age;
long phoneno;
String address;
long salary;
void print_salary(long salary)
{
this.salary=salary;
System.out.println("Salary:"+salary);
}
}
class Officer extends Employee
{
String specialization;
}
class Manager extends Employee
{
String department;
}
class main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
Officer ob1=new Officer();
System.out.println("Enter the details of officer");
System.out.print("Name:");
ob1.name=sc.nextLine();
System.out.print("Age:");
ob1.age=sc.nextInt();
System.out.print("Phone no:");
ob1.phoneno=sc.nextLong();
sc.nextLine();
System.out.print("Address:");
ob1.address=sc.nextLine();
System.out.print("Salary:");
ob1.salary=sc.nextLong();
sc.nextLine();
System.out.print("Specialization:");
ob1.specialization=sc.nextLine();
Manager ob2=new Manager();
System.out.println("Enter the details of Manager");
System.out.print("Name:");
ob2.name=sc.nextLine();
System.out.print("Age:");
ob2.age=sc.nextInt();
System.out.print("Phone no:");
ob2.phoneno=sc.nextLong();
sc.nextLine();
System.out.print("Address:");
ob2.address=sc.nextLine();
System.out.print("Salary:");
ob2.salary=sc.nextLong();
sc.nextLine();
System.out.print("Department:");
ob2.department=sc.nextLine();
System.out.println();
System.out.println();
System.out.println("The details of the officer is");
System.out.println("Name:"+ob1.name);
System.out.println("Age:"+ob1.age);
System.out.println("Phone no:"+ob1.phoneno);
System.out.println("Address:"+ob1.address);
System.out.println("Salary:"+ob1.salary);
System.out.println("Specialization:"+ob1.specialization);
System.out.println();
System.out.println();
System.out.println("The details of the manager is");
System.out.println("Name:"+ob2.name);
System.out.println("Age:"+ob2.age);
System.out.println("Phone no:"+ob2.phoneno);
System.out.println("Address:"+ob2.address);
System.out.println("Salary:"+ob2.salary);
System.out.println("Department:"+ob2.department);
}
}
| miraz00/exp4 | 1.java |
114 | class Solution {
int mod = 1_000_000_007;
private int dfs(int n, int m, int k, int i, int max, int cost, Integer[][][]dp){
if(i==n){
if(k==cost){
return 1;
}
return 0;
}
if(dp[i][max][cost] != null) return dp[i][max][cost];
int ans=0;
for(int num=1; num<=m; num++){
int newCost = cost;
int newMax = max;
if(num>max){
newCost++;
newMax = num;
}
if(newCost>k) break;
ans += dfs(n, m, k, i+1, newMax, newCost, dp);
ans%=mod;
}
return dp[i][max][cost]=ans;
}
public int numOfArrays(int n, int m, int k) {
Integer[][][] dp = new Integer[n+1][m+1][k+1]; // Initilization of DP-Array
return dfs(n, m, k, 0, 0, 0, dp);
}
| dhruvabhat24/Leetcode_October | 9.java |
115 | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Comparator;
class Student {
String name;
String USN;
int IA1;
int IA2;
int IA3;
int sumOfBestTwoIAs;
int CTA;
int CIE;
public Student(String name, String USN, int IA1, int IA2, int IA3, int sumOfBestTwoIAs, int CTA, int CIE) {
this.name = name;
this.USN = USN;
this.IA1 = IA1;
this.IA2 = IA2;
this.IA3 = IA3;
this.sumOfBestTwoIAs = sumOfBestTwoIAs;
this.CTA = CTA;
this.CIE = CIE;
}
public int getTotalMarks() {
return sumOfBestTwoIAs + CTA + CIE;
}
@Override
public String toString() {
return "Name: " + name + ", USN: " + USN + ", Total Marks: " + getTotalMarks();
}
}
public class StudentDataAnalyzer {
private static final int MAX_STUDENTS = 100; // Maximum number of students, adjust as needed
public static void main(String[] args) {
Student[] students = new Student[MAX_STUDENTS];
int studentCount = 0;
try (BufferedReader br = new BufferedReader(new FileReader("data.csv"))) {
String line;
while ((line = br.readLine()) != null) {
String[] data = line.split(",");
if (data.length == 8 && studentCount < MAX_STUDENTS) {
String name = data[0];
String USN = data[1];
int IA1 = Integer.parseInt(data[2]);
int IA2 = Integer.parseInt(data[3]);
int IA3 = Integer.parseInt(data[4]);
int sumOfBestTwoIAs = Integer.parseInt(data[5]);
int CTA = Integer.parseInt(data[6]);
int CIE = Integer.parseInt(data[7]);
students[studentCount++] = new Student(name, USN, IA1, IA2, IA3, sumOfBestTwoIAs, CTA, CIE);
}
}
} catch (IOException e) {
e.printStackTrace();
}
showMenu(students, studentCount);
}
private static void showMenu(Student[] students, int studentCount) {
System.out.println("Choose an option:");
System.out.println("1. Find Topper based on Sum of Best Two IAs");
System.out.println("2. Find Topper based on CTA");
System.out.println("3. Find Topper based on CIE");
System.out.println("4. Find Topper based on Total Marks");
System.out.println("5. Exit");
java.util.Scanner scanner = new java.util.Scanner(System.in);
int choice = scanner.nextInt();
switch (choice) {
case 1:
findTopper(students, studentCount, Comparator.comparingInt(s -> s.sumOfBestTwoIAs));
break;
case 2:
findTopper(students, studentCount, Comparator.comparingInt(s -> s.CTA));
break;
case 3:
findTopper(students, studentCount, Comparator.comparingInt(s -> s.CIE));
break;
case 4:
findTopper(students, studentCount, Comparator.comparingInt(Student::getTotalMarks));
break;
case 5:
System.out.println("Exiting the program.");
break;
default:
System.out.println("Invalid choice.");
break;
}
scanner.close();
}
private static void findTopper(Student[] students, int studentCount, Comparator<Student> comparator) {
Student topper = null;
for (int i = 0; i < studentCount; i++) {
if (topper == null || comparator.compare(students[i], topper) > 0) {
topper = students[i];
}
}
if (topper != null) {
System.out.println("Topper:");
System.out.println(topper);
} else {
System.out.println("No students found in the list.");
}
}
}
| r-vb/OOP | 02.java |
116 | import java.util.Scanner;
import java.util.Vector;
import ts.display;
class declarations {
// Variable Declarations
public static int i = 0, j = 0, l = 0, k = 0, c = 0, noOfVariables = 0, maxBit = 0, noOfMinTerms = 0;
public static int[] minTermsDec = new int[16];
public static int[][] minTermsBin = new int[16][16];
public static int[] noOfOnes = new int[16];
public static int[][] g0 = new int[14][5];
public static int[][] g1 = new int[16][5];
public static int[][] g2 = new int[16][5];
public static int[][] g3 = new int[16][5];
public static int[][] g4 = new int[16][5];
public static int[][] h0 = new int[16][7];
public static int[][] h1 = new int[16][7];
public static int[][] h2 = new int[16][7];
public static int[][] h3 = new int[16][7];
public static int[][] i0 = new int[16][9];
public static int[][] i1 = new int[16][9];
public static int[][] i2 = new int[16][9];
public static int[][] k0 = new int[16][13];
public static int[][] k1 = new int[16][13];
public static int[][] parityTable = new int[20][24];
public static int gzero = 0, gone = 0, gtwo = 0, gthree = 0, gfour = 0;
public static int hzero = 0, hone = 0, htwo = 0, hthree = 0;
public static int izero = 0, ione = 0, itwo = 0;
public static int kzero = 0, kone = 0;
public static int[][] Final = new int[100][5];
public static int finalc = 0;
public static int parityCnt = 0;
static Scanner s = new Scanner(System.in);
//Constructor to initialize parity
declarations() {
for (i = 0; i < 20; i++)
for (j = 0; j < 24; j++)
parityTable[i][j] = -1;
}
// Function Definitions
public static int parityToEqt() // Function to generate the parity bits
{
for (j = 0; j < 16; j++) {
if (checkForSingle(j) != 100) {
Final[finalc][0] = parityTable[checkForSingle(j)][20];
Final[finalc][1] = parityTable[checkForSingle(j)][21];
Final[finalc][2] = parityTable[checkForSingle(j)][22];
Final[finalc][3] = parityTable[checkForSingle(j)][23];
finalc++;
}
}
return 0;
}
// Function to compare the parity table and final parities for equation
public static int compareSamefinal(int a[][], int size)
{
for (i = 0; i < size; i++) {
for (j = i + 1; j < size;) {
if ((a[j][0] == a[i][0]) && (a[j][1] == a[i][1]) && (a[j][2] == a[i][2]) && (a[j][3] == a[i][3])) {
for (k = j; k < size; k++) {
a[k][0] = a[k + 1][0];
a[k][1] = a[k + 1][1];
a[k][2] = a[k + 1][2];
a[k][3] = a[k + 1][3];
}
size--;
} else {
j++;
}
}
}
return size;
}
// Function to check for parity that are necessary for equation as they are lone contributers for a minterm
public static int checkForSingle(int column)
{
int patc = 0, temp121 = 0;
for (i = 0; i < parityCnt; i++) {
if (parityTable[i][column] == 999) {
temp121 = i;
patc++;
}
}
if (patc == 1)
return temp121;
else
return 100;
}
public static int paritycheck3(int a[][], int b[][], int h[][], int first, int second,
int third)
{
int t = 0;
while (t != first) {
int c = 0;
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != b[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
for (i = 0; i < third; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != h[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
if (c == 0) {
parityTable[parityCnt][16] = a[t][4];
parityTable[parityCnt][17] = a[t][5];
parityTable[parityCnt][18] = a[t][6];
parityTable[parityCnt][19] = a[t][7];
parityTable[parityCnt][23] = a[t][3];
parityTable[parityCnt][22] = a[t][2];
parityTable[parityCnt][21] = a[t][1];
parityTable[parityCnt][20] = a[t][0];
parityTable[parityCnt][a[t][7]] = 999;
parityTable[parityCnt][a[t][6]] = 999;
parityTable[parityCnt][a[t][5]] = 999;
parityTable[parityCnt][a[t][4]] = 999;
parityCnt++;
}
t++;
}
return 0;
}
public static int paritycheck2(int a[][], int b[][], int h[][], int first, int second,
int third) // Function to check parity
{
int t = 0;
while (t != first) {
int c = 0;
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != b[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
for (i = 0; i < third; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != h[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
if (c == 0) {
parityTable[parityCnt][16] = a[t][4];
parityTable[parityCnt][17] = a[t][5];
parityTable[parityCnt][23] = a[t][3];
parityTable[parityCnt][22] = a[t][2];
parityTable[parityCnt][21] = a[t][1];
parityTable[parityCnt][20] = a[t][0];
parityTable[parityCnt][a[t][5]] = 999;
parityTable[parityCnt][a[t][4]] = 999;
parityCnt++;
}
t++;
}
return 0;
}
public static int paritycheck1(int a[][], int b[][], int h[][], int first, int second,
int third) // Function to check parity
{
int t = 0;
while (t != first) {
int c = 0;
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != b[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
for (i = 0; i < third; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] != h[i][j]) {
flag++;
}
}
if (flag == 1) {
c++;
}
}
if (c == 0) {
parityTable[parityCnt][16] = a[t][4];
parityTable[parityCnt][23] = a[t][3];
parityTable[parityCnt][22] = a[t][2];
parityTable[parityCnt][21] = a[t][1];
parityTable[parityCnt][20] = a[t][0];
parityTable[parityCnt][a[t][4]] = 999;
parityCnt++;
}
t++;
}
return 0;
}
public static int totalSizeCalc() // Function to check the maximum no of minterms possible for the no of variables
{
for (i = 0; i < noOfVariables; i++) {
maxBit = maxBit + (int) Math.pow(2, i);
}
return maxBit + 1;
}
public static void inputMinTerms() // Function to input the minterms
{
int inp = 0;
Vector<Integer> vec = new Vector<Integer>(16);
System.out.print("Enter the minterms to be minimized: \n");
for (i = 0; i < maxBit; i++) {
inp = s.nextInt();
if (inp >= (maxBit)) {
for (i = 0; i < noOfMinTerms; i++)
minTermsDec[i] = vec.get(i);
return;
}
else if (inp == (-1)) {
for (i = 0; i < noOfMinTerms; i++)
minTermsDec[i] = vec.get(i);
return;
} else {
vec.add(inp);
noOfMinTerms++;
}
}
}
public static int calcNoOfOnes(int num[]) // Function to calculate the no of ones in the minterms binary value
{
int flag = 0;
for (i = 0; i < maxBit; i++) {
if (num[i] == 1)
flag++;
}
return flag;
}
public static void minTermsDectoBin() // Function to convert the minterms in decimal to their binary equivalents
{
int temp;
for (i = 0; i <= noOfMinTerms; i++) {
for (j = 0; j < noOfMinTerms; j++) {
temp = minTermsDec[j];
minTermsBin[j][4] = temp;
for (l = 3; l >= 0; l--) {
minTermsBin[j][l] = temp % 2;
temp = temp / 2;
}
if (minTermsDec[j] == 1)
noOfOnes[j] = 1;
else
noOfOnes[j] = calcNoOfOnes(minTermsBin[j]);
}
}
}
public static void firstStage() // Function for first stage comparisons
{
for (i = 0; i < noOfMinTerms; i++) {
if (noOfOnes[i] == 0) {
for (j = 0; j < 5; j++) {
g0[gzero][j] = minTermsBin[i][j];
}
gzero++;
}
if (noOfOnes[i] == 1) {
for (j = 0; j < 5; j++) {
g1[gone][j] = minTermsBin[i][j];
}
gone++;
}
if (noOfOnes[i] == 2) {
for (j = 0; j < 5; j++) {
g2[gtwo][j] = minTermsBin[i][j];
}
gtwo++;
}
if (noOfOnes[i] == 3) {
for (j = 0; j < 5; j++) {
g3[gthree][j] = minTermsBin[i][j];
}
gthree++;
}
if (noOfOnes[i] == 4) {
for (j = 0; j < 5; j++) {
g4[gfour][j] = minTermsBin[i][j];
}
gfour++;
}
}
}
public static void display() // Display function to display the no of ones
{
for (j = 0; j < noOfMinTerms; j++) {
System.out.print(noOfOnes[j] + "\t");
}
}
public void displayFinal() // Function to display the final table
{
for (i = 0; i < finalc; i++) {
for (j = 0; j < 4; j++) {
System.out.print(Final[i][j] + "\t");
}
System.out.print("\n");
}
}
public static void displayArray(int a[][], int n) // Dsiplay Function
{
for (i = 0; i < n; i++) {
for (j = 0; j < 4; j++) {
System.out.print(a[i][j] + "\t");
}
System.out.print("\n");
}
}
static int compare(int a[][], int b[][], int h[][], int first, int second) // Compare Function
{
int y = 0, t = 0;
while (t < first) {
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] == b[i][j]) {
h[y][j] = b[i][j];
} else {
h[y][j] = 9;
flag++;
}
}
if (flag == 1) {
h[y][4] = a[t][4];
h[y][5] = b[i][4];
if (h[y][6] == 0)
h[y][6] = 1;
y++;
}
}
t++;
}
return y;
}
public static int compare1(int a[][], int b[][], int h[][], int first, int second) // Compare Function
{
int y = 0, t = 0;
while (t != first) {
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] == b[i][j]) {
h[y][j] = b[i][j];
} else {
flag++;
h[y][j] = 9;
}
}
if (flag == 1) {
h[y][4] = a[t][4];
h[y][5] = a[t][5];
h[y][6] = b[i][4];
h[y][7] = b[i][5];
y++;
}
}
t++;
}
return y;
}
public static int compare2(int a[][], int b[][], int h[][], int first, int second) // Compare function
{
int y = 0, t = 0;
while (t != first) {
for (i = 0; i < second; i++) {
int flag = 0;
for (j = 0; j < 4; j++) {
if (a[t][j] == b[i][j]) {
h[y][j] = b[i][j];
} else {
flag++;
h[y][j] = 9;
}
}
if (flag == 1) {
h[y][4] = a[t][4];
h[y][5] = a[t][5];
h[y][6] = a[t][6];
h[y][7] = a[t][7];
h[y][8] = b[i][4];
h[y][9] = b[i][5];
h[y][10] = b[i][6];
h[y][11] = b[i][7];
if (h[y][12] == 0)
h[y][12] = 1;
y++;
}
}
t++;
}
return y;
}
public static int compareSame(int a[][], int size) // Compare Function
{
for (i = 0; i < size; i++) {
for (j = i + 1; j < size;) {
if ((a[j][0] == a[i][0]) && (a[j][1] == a[i][1]) && (a[j][2] == a[i][2]) && (a[j][3] == a[i][3])) {
for (k = j; k < size; k++) {
a[k][0] = a[k + 1][0];
a[k][1] = a[k + 1][1];
a[k][2] = a[k + 1][2];
a[k][3] = a[k + 1][3];
a[k][4] = a[k + 1][4];
a[k][5] = a[k + 1][5];
a[k][6] = a[k + 1][6];
a[k][7] = a[k + 1][7];
a[k][8] = a[k + 1][8];
}
size--;
} else {
j++;
}
}
}
return size;
}
public static int compareSame2(int a[][], int size) // Compare Function
{
for (i = 0; i < size; i++) {
for (j = i + 1; j < size;) {
if ((a[j][0] == a[i][0]) && (a[j][1] == a[i][1]) && (a[j][2] == a[i][2]) && (a[j][3] == a[i][3])) {
for (k = j; k < size; k++) {
a[k][0] = a[k + 1][0];
a[k][1] = a[k + 1][1];
a[k][2] = a[k + 1][2];
a[k][3] = a[k + 1][3];
a[k][4] = a[k + 1][4];
a[k][5] = a[k + 1][5];
a[k][6] = a[k + 1][6];
a[k][7] = a[k + 1][7];
a[k][8] = a[k + 1][8];
a[k][9] = a[k + 1][9];
a[k][10] = a[k + 1][10];
a[k][11] = a[k + 1][11];
a[k][12] = a[k + 1][12];
}
size--;
} else {
j++;
}
}
}
return size;
}
static void parityInit() // Function to initialize the parity table
{
for (i = 0; i < 20; i++)
for (j = 0; j < 24; j++)
parityTable[i][j] = -1;
}
static void printParityTable() // Function to print the parity table
{
for (i = 0; i < parityCnt; i++) {
System.out.print("\n P" + i + 1 + " : ");
for (j = 16; j < 20; j++) {
if (parityTable[i][j] == -1)
continue;
else {
System.out.print(" " + parityTable[i][j] + " ");
if (j != 19 && parityTable[i][j + 1] != -1)
System.out.print(",");
}
}
System.out.print("\n");
}
}
static void eqnGenerator() // Function to generate the equation from the parity
{
System.out.print("\n The Equation is : \t");
for (i = 0; i < finalc; i++) {
if (i != 0)
System.out.print(" + ");
for (j = 0; j < 4; j++) {
if (j == 0 && j < noOfVariables) {
if (Final[i][j] == 0)
System.out.print("A'");
else if (Final[i][j] == 1)
System.out.print("A");
} else if (j == 1 && j < noOfVariables) {
if (Final[i][j] == 0)
System.out.print("B'");
else if (Final[i][j] == 1)
System.out.print("B");
} else if (j == 2 && j < noOfVariables) {
if (Final[i][j] == 0)
System.out.print("C'");
else if (Final[i][j] == 1)
System.out.print("C");
} else if (j == 3) {
if (Final[i][j] == 0 && j < noOfVariables)
System.out.print("D'");
else if (Final[i][j] == 1)
System.out.print("D");
}
}
}
}
}
class l extends declarations {
public static void main(String args[]) {
try {
Scanner sc = new Scanner(System.in);
System.out.println("Please enter your name");
String s = sc.next();
System.out.print("Enter the number of variables to be Minimized: ");
noOfVariables = sc.nextInt();
maxBit = totalSizeCalc();
parityInit();
inputMinTerms();
System.out.println();
minTermsDectoBin();
System.out.print("\n\n **STAGE 1**\n\n");
firstStage();
if (gzero != 0) {
System.out.print("\ngroup of 0s\n");
displayArray(g0, gzero);
}
if (gone != 0) {
System.out.print("\ngroup of 1s\n");
displayArray(g1, gone);
}
if (gtwo != 0) {
System.out.print("\ngroup of 2s\n");
displayArray(g2, gtwo);
}
if (gthree != 0) {
System.out.print("\ngroup of 3s\n");
displayArray(g3, gthree);
}
if (gfour != 0) {
System.out.print("\ngroup of 4s\n");
displayArray(g4, gfour);
}
System.out.print("\n\n **STAGE 2**\n\n");
hzero = compare(g0, g1, h0, gzero, gone);
if (hzero != 0) {
System.out.print("\n\nComparing Group 0 with 1:\n");
displayArray(h0, hzero);
}
hone = compare(g1, g2, h1, gone, gtwo);
if (hone != 0) {
System.out.print("\n\nComparing Group 1 with 2:\n");
displayArray(h1, hone);
}
htwo = compare(g2, g3, h2, gtwo, gthree);
if (htwo != 0) {
System.out.print("\n\nComparing Group 2 with 3:\n");
displayArray(h2, htwo);
}
hthree = compare(g3, g4, h3, gthree, gfour);
if (hthree != 0) {
System.out.print("\n\nComparing Group 3 with 4:\n");
displayArray(h3, hthree);
}
System.out.print("\n\n **STAGE 3**\n\n");
izero = compare1(h0, h1, i0, hzero, hone);
izero = compareSame(i0, izero);
if (izero != 0) {
System.out.print("\n\nComparing Group 0 with 1:\n");
displayArray(i0, izero);
}
ione = compare1(h1, h2, i1, hone, htwo);
ione = compareSame(i1, ione);
if (ione != 0) {
System.out.print("\n\nComparing Group 1 with 2:\n");
displayArray(i1, ione);
}
itwo = compare1(h2, h3, i2, htwo, hthree);
itwo = compareSame(i2, itwo);
if (itwo != 0) {
System.out.print("\n\nComparing Group 2 with 3:\n");
displayArray(i2, itwo);
}
System.out.print("\n\n Parity Check \n\n");
paritycheck1(g0, g1, g1, gzero, gone, gone);
paritycheck1(g1, g2, g0, gone, gtwo, gzero);
paritycheck1(g2, g3, g1, gtwo, gthree, gone);
paritycheck1(g3, g4, g2, gthree, gfour, gtwo);
paritycheck1(g4, g3, g3, gfour, gthree, gthree);
paritycheck2(h0, h1, h1, hzero, hone, hone);
paritycheck2(h1, h0, h2, hone, hzero, htwo);
paritycheck2(h2, h1, h3, htwo, hone, hthree);
paritycheck2(h3, h2, h2, hthree, htwo, htwo);
paritycheck3(i0, i1, i1, izero, ione, ione);
paritycheck3(i1, i0, i2, ione, izero, itwo);
paritycheck3(i2, i1, i1, itwo, ione, ione);
parityToEqt();
printParityTable();
finalc = compareSamefinal(Final, finalc);
System.out.print("\n");
eqnGenerator();
display d = new display();
d.disp(s);
} catch (Exception e) {
System.out.println("Exception Encountered\n" + e + "\nPlease try again");
}
}
} | grejojoby/Quine-McCluskey-Algorithm-Java | l.java |
117 | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.StringTokenizer;
public class P {
public static void main(String[] args) throws IOException {
FastReader fr = new FastReader();
FastWriter fw = new FastWriter();
int qt = fr.nextInt();
while (qt-- > 0) {
}
fw.close();
}
}
class Pair<T, U> {
private T first;
private U second;
public Pair(T first, U second) {
this.first = first;
this.second = second;
}
public T getFirst() {
return (T) this.first;
}
public U getSecond() {
return (U) this.second;
}
}
class Node {
int data;
Node left, right;
public Node(int data) {
this.data = data;
left = null;
right = null;
}
}
class FastReader {
BufferedReader br;
StringTokenizer st;
public FastReader() {
br = new BufferedReader(
new InputStreamReader(System.in));
}
String next() {
while (st == null || !st.hasMoreElements()) {
try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
String nextLine() {
String str = "";
try {
if(st == null) {
st = new StringTokenizer(br.readLine());
}
if (st.hasMoreTokens()) {
str = st.nextToken("\n");
} else {
str = br.readLine();
}
} catch (IOException e) {
e.printStackTrace();
}
return str;
}
}
class FastWriter {
private final BufferedWriter bw;
public FastWriter() {
this.bw = new BufferedWriter(new OutputStreamWriter(System.out));
}
public void print(Object object) throws IOException {
bw.append("" + object);
}
public void println(Object object) throws IOException {
print(object);
bw.append("\n");
}
public void println() throws IOException {
bw.append("\n");
}
public void close() throws IOException {
bw.close();
}
}
class Helper {
static Integer[][] dir = { { 1, 0 }, { -1, 0 }, { 0, 1 }, { 0, -1 } };
/*
* Returns the index of the first element in the array which has a value greater
* than key or last if no such element is found
*/
static int upperBoundOfArray(int[] arr, int key) {
int index = Arrays.binarySearch(arr, key);
int n = arr.length;
if (index < 0)
return Math.abs(index) - 1;
while (index < n && arr[index] == key) {
index++;
}
return index;
}
/*
* Returns the index of the first element in the array which has a value not
* less than the key
*/
static int lowerBoundOfArray(int[] arr, int key) {
int index = Arrays.binarySearch(arr, key);
if (index < 0)
return Math.abs(index) - 1;
while (index > 0 && arr[index - 1] == key) {
index--;
}
return index;
}
static boolean isPrime(BigInteger b) {
return b.isProbablePrime(1);
}
static boolean isPrime(String s) {
return new BigInteger(s).isProbablePrime(1);
}
static int upperBoundOfList(ArrayList<Integer> arr, int key) {
int index = Collections.binarySearch(arr, key);
int n = arr.size();
if (index < 0)
return Math.abs(index) - 1;
while (index < n && arr.get(index) == key) {
index++;
}
return index;
}
static int lowerBoundOfList(ArrayList<Integer> arr, int key) {
int index = Collections.binarySearch(arr, key);
if (index < 0)
return Math.abs(index) - 1;
while (index > 0 && arr.get(index - 1) == key) {
index--;
}
return index;
}
static void fill2dArray(int[][] mat, int value, int rows) {
for (int i = 0; i < rows; ++i) {
Arrays.fill(mat[i], value);
}
}
/*
* Function to sort a two dimensional array
* It has three parameters:
* arr: TwoD array to be sorted
* index: The index on which the array needs to be sorted
* asecending: Value to determine whether to sort the array in ascending order
* or descending order.
* Use value 1 when sorting in asecending order and value -1 when sorting in
* descending order
*/
static void sort(int[][] arr, int index, int ascending) {
Arrays.sort(arr, new Comparator<int[]>() {
public int compare(int[] a, int[] b) {
return ascending * (a[index] - b[index]);
}
});
}
// Modular power function
static int power(int x, int y, int p) {
int res = 1;
x %= p;
if (x == 0)
return 0;
while (y > 0) {
if ((y & 1) == 1)
res = (res * x) % p;
y >>= 1;
x = (x * x) % p;
}
return res;
}
// gcd of two numbers
static int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
static HashMap<Integer, Integer> sortByValueMap(HashMap<Integer, Integer> hm) {
List<Map.Entry<Integer, Integer>> list = new LinkedList<Map.Entry<Integer, Integer>>(hm.entrySet());
Collections.sort(list, new Comparator<Map.Entry<Integer, Integer>>() {
public int compare(Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2) {
if ((o1.getValue()).compareTo(o2.getValue()) == 1) {
return -1;
} else if ((o1.getValue()).compareTo(o2.getValue()) == -1) {
return 1;
} else {
return 0;
}
}
});
HashMap<Integer, Integer> temp = new LinkedHashMap<Integer, Integer>();
for (Map.Entry<Integer, Integer> aa : list) {
temp.put(aa.getKey(), aa.getValue());
}
return temp;
}
static int min(Integer... a) {
int min = Integer.MAX_VALUE;
for (int i : a) {
if (i < min)
min = i;
}
return min;
}
static int max(Integer... a) {
int max = Integer.MIN_VALUE;
for (int i : a) {
if (i > max)
max = i;
}
return max;
}
// dfs of a graph
static void printdfs(int src, ArrayList<ArrayList<Integer>> list, boolean vis[], int count) {
if (count != list.size()) {
vis[src] = true;
System.out.print(src + " ");
count++;
for (int i = 0; i < list.get(src).size(); i++) {
int k = (int) list.get(src).get(i);
if (vis[k] == false) {
printdfs(k, list, vis, count);
}
}
}
}
static void dfs(int src, ArrayList<ArrayList<Integer>> list, boolean vis[]) {
printdfs(src, list, vis, 0);
}
// bfs of graph
static ArrayList<String> printbfs(int s, ArrayList<ArrayList<Integer>> list, boolean vis[]) {
Queue<Integer> q = new LinkedList<>();
ArrayList<String> ans = new ArrayList<>();
int val = s;
q.add(val);
vis[s] = true;
while (!q.isEmpty()) {
int root = q.peek();
for (int i = 0; i < list.get(root).size(); i++) {
int k = list.get(root).get(i);
if (vis[k] == false) {
q.add(k);
vis[k] = true;
}
}
q.remove();
ans.add(root+"");
}
return ans;
}
static ArrayList<String> bfs(int src, ArrayList<ArrayList<Integer>> list, boolean vis[]) {
return printbfs(src, list, vis);
}
static void printMatrix(int[][] mat) {
int n = mat.length;
int m = mat[0].length;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
System.out.print(mat[i][j] + " ");
}
System.out.println();
}
}
// distance between 2 points in 2D plane
static double distance(int x1, int y1, int x2, int y2) {
return Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
}
// level order traversal binary tree
static void level_order(Node node) {
Queue<Node> q = new LinkedList<>();
q.add(node);
while (!q.isEmpty()) {
if (node != null) {
if (node.left != null) {
q.add(node.left);
}
if (node.right != null) {
q.add(node.right);
}
Node val = q.remove();
System.out.print(val.data + " ");
node = q.peek();
}
}
}
// nth catalan number
static BigInteger cat(int n) {
BigInteger arr[] = new BigInteger[n + 2];
arr[0] = BigInteger.ONE;
arr[1] = BigInteger.ONE;
for (int i = 2; i <= n; i++) {
arr[i] = BigInteger.ZERO;
for (int j = 0; j < i; j++) {
arr[i] = arr[i].add(arr[j].multiply(arr[i - j - 1]));
}
}
return arr[n];
}
// Find longest increasing subsequence in an array
static ArrayList<Integer> lis(int[] nums, int n) {
ArrayList<Integer> out = new ArrayList<>();
for (int val : nums) {
if (out.size() == 0 || out.get(out.size() - 1) < val)
out.add(val);
else {
int i = lowerBoundOfList(out, val);
out.set(i, val);
}
}
return out;
}
// Longest common Subsequence of two arrays.
static ArrayList<Integer> lcs2(int[] arr, int[] brr, int n, int m) {
int[][] table = new int[n + 1][m + 1];
for (int i = 0; i <= n; ++i) {
for (int j = 0; j <= m; ++j) {
if (i == 0 || j == 0)
table[i][j] = 0;
else if (arr[i - 1] == brr[j - 1]) {
table[i][j] = table[i - 1][j - 1] + 1;
} else {
table[i][j] = max(table[i - 1][j], table[i][j - 1]);
}
}
}
int index = table[n][m];
ArrayList<Integer> lcs = new ArrayList<>();
for (int i = 0; i < index; ++i) {
lcs.add(i, -1);
}
for (int i = n, j = m; i > 0 && j > 0;) {
if (arr[i - 1] == brr[j - 1]) {
lcs.set(index - 1, arr[i - 1]);
i--;
j--;
} else if (table[i - 1][j] > table[i][j - 1]) {
i--;
} else {
j--;
}
}
return lcs;
}
static String lcs2OfString(String a, String b) {
int[][] table = new int[a.length() + 1][b.length() + 1];
for (int i = 0; i <= a.length(); ++i) {
for (int j = 0; j <= b.length(); ++j) {
if (i == 0 || j == 0) {
table[i][j] = 0;
} else if (a.charAt(i - 1) == b.charAt(j - 1)) {
table[i][j] = table[i - 1][j - 1] + 1;
} else {
table[i][j] = max(table[i - 1][j], table[i][j - 1]);
}
}
}
StringBuilder sb = new StringBuilder();
int i = a.length(), j = b.length();
while (i > 0 && j > 0) {
if (a.charAt(i - 1) == b.charAt(j - 1)) {
sb.append(a.charAt(i - 1));
i--;
j--;
} else if (table[i - 1][j] > table[i][j - 1]) {
i--;
} else {
j--;
}
}
return sb.reverse().toString();
}
static String shortestCommonSupersequence(String s1, String s2) {
int n = s1.length();
int m = s2.length();
int[][] dp = new int[n + 1][m + 1];
for (int i = 1; i <= n; ++i) {
for (int j = 1; j <= m; ++j) {
if (s1.charAt(i - 1) == s2.charAt(j - 1))
dp[i][j] = 1 + dp[i - 1][j - 1];
else
dp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]);
}
}
StringBuilder sb = new StringBuilder();
while (n > 0 && m > 0) {
if (s1.charAt(n - 1) == s2.charAt(m - 1)) {
sb.append(s1.charAt(n - 1));
n--;
m--;
} else if (dp[n - 1][m] > dp[n][m - 1]) {
sb.append(s1.charAt(n - 1));
n--;
} else {
sb.append(s2.charAt(m - 1));
m--;
}
}
while (n > 0) {
sb.append(s1.charAt(n - 1));
n--;
}
while (m > 0) {
sb.append(s2.charAt(m - 1));
m--;
}
return sb.reverse().toString();
}
/*
* Reverse Array between two indices
*/
static int[] reverse(int[] arr, int start, int end) {
while(start < end) {
int temp = arr[start];
arr[start] = arr[end];
arr[end] = temp;
start++;
end--;
}
return arr;
}
static ArrayList<Integer> stringMatchPattern(String pat, String txt) {
ArrayList<Integer> arrl = new ArrayList<>();
int M = pat.length();
int N = txt.length();
// create lps[] that will hold the longest
// prefix suffix values for pattern
int lps[] = new int[M];
int j = 0; // index for pat[]
// Preprocess the pattern (calculate lps[]
// array)
computeLPSArray(pat, M, lps);
int i = 0; // index for txt[]
while (i < N) {
if (pat.charAt(j) == txt.charAt(i)) {
j++;
i++;
}
if (j == M) {
arrl.add(i - j);
j = lps[j - 1];
}
// mismatch after j matches
else if (i < N && pat.charAt(j) != txt.charAt(i)) {
// Do not match lps[0..lps[j-1]] characters,
// they will match anyway
if (j != 0)
j = lps[j - 1];
else
i++;
}
}
return arrl;
}
static void computeLPSArray(String pat, int M, int lps[]) {
// length of the previous longest prefix suffix
int len = 0;
int i = 1;
lps[0] = 0; // lps[0] is always 0
// the loop calculates lps[i] for i = 1 to M-1
while (i < M) {
if (pat.charAt(i) == pat.charAt(len)) {
len++;
lps[i] = len;
i++;
}
// (pat[i] != pat[len])
else {
// This is tricky. Consider the example.
// AAACAAAA and i = 7. The idea is similar
// to search step.
if (len != 0) {
len = lps[len - 1];
// Also, note that we do not increment
// i here
}
// if (len == 0)
else {
lps[i] = len;
i++;
}
}
}
}
// Can be used to solve multiple questions
// 1. Check whether a subset with given sum exists or not? Just check whether
// the value returned is more
// 1 or not
// 2. Find number of subsets with given sum? Return the value returned by the
// method
// 3. Find whether the array can be divided into two subsets of same sum? Put
// the sum value as the sum of
// array / 2
// 4. Count the number of subsets with given difference? Put the sum value as
// (sum of array + diff) / 2
static int subsetSum(int a[], int n, int sum) {
// Initializing the matrix
int tab[][] = new int[n + 1][sum + 1];
// Initializing the first value of matrix
tab[0][0] = 1;
for (int i = 1; i <= sum; i++)
tab[0][i] = 0;
for (int i = 1; i <= n; i++) {
for (int j = 0; j <= sum; j++) {
// If the value is greater than the sum
if (a[i - 1] > j)
tab[i][j] = tab[i - 1][j];
else
tab[i][j] = tab[i - 1][j] + tab[i - 1][j - a[i - 1]];
}
}
return tab[n][sum];
}
static boolean isVowel(char c) {
return c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U' || c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u';
}
static int minDesc(Node root, int min) {
if(root == null)
return min;
if(root.data < min)
min = root.data;
int leftMin = minDesc(root.left, min);
int rightMin = minDesc(root.right, min);
return Math.min(leftMin, Math.min(rightMin, min));
}
static int maxDesc(Node root, int max) {
if(root == null)
return max;
if(root.data > max)
max = root.data;
int leftMax = maxDesc(root.left, max);
int rightMax = maxDesc(root.right, max);
return Math.max(leftMax, Math.max(rightMax, max));
}
} | AtharvaThorve/Competitive-Programming | P.java |
118 | import java.util.List;
import java.util.ArrayList;
public class LP {
public static LP lp;
private List<String> variables;
private List<Constraint> constraints;
private LinearSum objectiveFunction;
private boolean ofIsMin;
public LP(String file) throws Exception {
System.out.println("\nInit Linear Program");
if(lp == null)
lp = this;
variables = new ArrayList<String>();
constraints = new ArrayList<Constraint>();
objectiveFunction = null;
ofIsMin = true;
FileReader.fileReader = new FileReader(file);
simplifyLP();
}
private void simplifyLP() {
objectiveFunction.simplify();
for(Constraint c : constraints)
c.simplify();
}
public void setObjectiveFunction(LinearSum objectiveFunction) {
this.objectiveFunction = objectiveFunction;
}
public void setOfIsMin(boolean ofIsMin) {
this.ofIsMin = ofIsMin;
}
public void addVariable(String variable) {
this.variables.add(variable);
}
public void addConstraint(Constraint constraint) {
this.constraints.add(constraint);
}
public void display() {
displayVariables();
displayObjectiveFunction();
displayConstraints();
}
public void displayObjectiveFunction() {
System.out.print("\nObjective Funciton: " + (ofIsMin ? "Minimize " : "Maximize "));
objectiveFunction.display();
System.out.println();
}
public void displayVariables() {
System.out.print("\nVariables: ");
for(int i = 0; i < variables.size(); i++) {
System.out.print(variables.get(i));
if(i != variables.size() - 1)
System.out.print(", ");
}
System.out.println();
}
public void displayConstraints() {
System.out.println("\nConstraints:");
for(Constraint c : constraints) {
c.display();
}
}
}
| Peamupbubber/Linear-Programming | LP.java |
119 | public class wx
extends wy
{
public wx(adm ☃)
{
super(☃);
}
public wx(adm ☃, pr ☃)
{
super(☃, ☃);
}
public wx(adm ☃, double ☃, double ☃, double ☃)
{
super(☃, ☃, ☃, ☃);
}
protected void a(auh ☃)
{
if (☃.d != null)
{
int ☃ = 0;
if ((☃.d instanceof vl)) {
☃ = 3;
}
☃.d.a(ow.a(this, n()), ☃);
}
for (int ☃ = 0; ☃ < 8; ☃++) {
this.o.a(cy.F, this.s, this.t, this.u, 0.0D, 0.0D, 0.0D, new int[0]);
}
if (!this.o.D) {
J();
}
}
}
| Tominous/LabyMod-1.8 | wx.java |
120 | /*
This OS class is the central core of the project.
It works to replicate the role of an operating system
Every movement of the PCB from one part of the system to
another part of the system will move through the os.
This class has attributes for functionality and attributes
for keeping track of running statistics.
Funcional attributes:
- memory: keeps track of the number of PCBs in system
- memoryCapacity: the maximum number of PCBs that can be in the system
- myJobQueue: holds all PCBs that have yet to enter the system
- myCPU: runs the functionality of the computer by bringing in PCB objects
and calling thier runline method and then calling the appropriate
system methods.
- myReadyQueue: holds all PCB's that are in the ready state, in the appropriate
order as scheduled by the myScheduler
- myBlockedQueue: holds all PCB's in the blocked state in the the order which
they left the CPU
- myScheduler: Contains functions to organize the order of a Queue so that the
ready Queue states in the right order and also keeps track of
preemptive algorithms and calling the os functions to remove and
replace PCB units in that senario.
Statistics attributes:
- completedJobsNumber: Holds the number of jobs that have enter the system and
been completed
- sumJobTurnaroundTime: Holds the sum of the turn around time for every complete job
- sumJobWaitingTime: Holds the sum of the waiting time for every complete job
- sumJobProcessTime:Holds the sum of the proccessing time for every complete job
Methods:
- Constructors: There are three constructors that accept parameters such that the first
parameter is required and the second and third are optional parameters
that are used to set up the scheduling algorithm. The second paramter
is a number to specify which algorithm to use where 1 maps to First come
First serve. 2 maps to Shortest Job First. And 3 maps to Round Robin.
If Round Robin is used you can add an additional parameter to select
the quantom used, where the default is 10.
- Getters/Setters/Boolean checks: These are self explanatory.
- Handoffs: Functions that are mostly called from outside the system to move PCB between system elements
- releaseCPU: pops the cpu's PCB
- refeshBlocked: Tells the blocked queque to move everything it has in the ready state to the ready queque,
In the order sorted by the scheduler
- loadJobs: Reads a text file of PCB objects into the JobQ
- completeProcess: dictates what happens when a process is finished
- Printing functions: these print out statics as to how well the OS and the algorithm work
*/
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;
public class OS {
private int memory;
private int memoryCapacity;
private JobQueue myJobQueue;
private CPU myCPU;
private ReadyQueue myReadyQueue;
private BlockedQueue myBlockedQueue;
private Scheduler myScheduler;
private int completedJobsNumber;
private int sumJobTurnaroundTime;
private int sumJobWaitingTime;
private int sumJobProcessTime;
public OS(String filename){ this(filename, 1); }
public OS(String filename, int schedulingAlgorithmNumber){
this(filename,schedulingAlgorithmNumber,-1);
}
public OS(String filename, int schedulingAlgorithmNumber, int quantomNumber){
completedJobsNumber = 0;
myJobQueue = new JobQueue();
myCPU = new CPU();
myReadyQueue = new ReadyQueue();
myBlockedQueue = new BlockedQueue();
myScheduler = new Scheduler(schedulingAlgorithmNumber, quantomNumber);
memory = 0;
memoryCapacity = 10;
loadJobs(filename);
run();
}
public boolean hasMemory(){ return (memoryCapacity-getMemory()) > 0; }
public boolean canReceiveJobsFromJobQ(){ return myJobQueue.hasGivableJobs(myCPU.getCycle()) && this.hasMemory(); }
public boolean canPassPCBToCPU(){ return (!myReadyQueue.isEmpty() || canReceiveJobsFromJobQ() ); }
public int getCycle(){ return myCPU.getCycle(); }
public boolean running(){ return !myJobQueue.isEmpty() || (getMemory() > 0); }
public int getMemory(){ return memory; }
public int getCompletedJobsNumber(){ return completedJobsNumber; }
public int getSumJobTurnaroundTime(){ return sumJobTurnaroundTime; }
public int getSumJobProcessTime(){ return sumJobProcessTime; }
public int getSumJobWaitingTime(){
// returns the sum of the amount of time a process wasn't in i/o or on cpu and was in system
return sumJobTurnaroundTime - sumJobProcessTime;
}
private int setMemory(int memory){
// Returns -1 if memory was not reset
if(memory <= memoryCapacity && memory >= 0){
this.memory = memory;
return 0;
}
return -1;
}
private int increaseMemory(){ return setMemory(getMemory()+1); }
private int decreaseMemory(){ return setMemory(getMemory()-1); }
public void premtiveCheck(){ myScheduler.quantomCheck(this); }
public void resetQuantom(){ myScheduler.resetQuantom(); }
private PCB releaseCPU(){
refreshBlocked();
return myCPU.popLoadedPCB();
}
public void refreshBlocked(){
// PCB's are passed to the
myScheduler.sort(myReadyQueue, myBlockedQueue.filterBlockedQueue(new Queue()));
}
public void run(){
myCPU.Run(myJobQueue, myReadyQueue, myBlockedQueue, this);
printFinalInfo();
}
public void loadJobs(String filename){
this.myJobQueue = new JobQueue();
this.myCPU = new CPU();
this.myReadyQueue = new ReadyQueue();
this.myBlockedQueue = new BlockedQueue();
try {
Scanner inFile = new Scanner(new FileReader(filename));
while (inFile.hasNext()){
String s = inFile.nextLine();
myJobQueue.enqueue(s);
}
inFile.close();
}
catch (FileNotFoundException e) {
e.printStackTrace();
}
while (jobQReadyQHandOff()){ }
}
public boolean jobQReadyQHandOff(){
if(canReceiveJobsFromJobQ()){
PCB p = myJobQueue.getNextJob();
p.connectSystem(this);
myScheduler.sortedAdd(myReadyQueue,p);
increaseMemory();
return true;
}
return false;
}
public boolean readyQCPUHandoff(){
if(canPassPCBToCPU()){
while(myJobQueue.hasGivableJobs(myCPU.getCycle()) && this.hasMemory()){
jobQReadyQHandOff();
}
myCPU.setLoadedPCB(myReadyQueue.dequeue());
return true;
}
return false;
}
public boolean cpuBlockedQHandOff(){
if(myCPU.getLoadedPCB().blocked()){
myBlockedQueue.enqueue(releaseCPU());
return true;
}
return false;
}
public boolean cpuReadyQQuantomHandOff(){
if(myCPU.getLoadedPCB().running()){
System.out.println("Quantom Reached ");
// System.out.println("unloading pcb job: " + myCPU.getLoadedPCB().toString() );
//myReadyQueue.enqueue(releaseCPU());
myScheduler.sortedAdd(myReadyQueue,releaseCPU());
return readyQCPUHandoff();
}
return false;
}
public void completeProcess(PCB process){
decreaseMemory();
completedJobsNumber +=1;
sumJobTurnaroundTime+= (process.getCompletionTime()-process.getArrivalTime());
sumJobProcessTime+= process.getTotalProcessTime();
printJobCompleteInfo(process);
}
private void printJobCompleteInfo(PCB job){
System.out.println("\nPrint completed Job Stats: ");
System.out.println("JobID: " + job.getJobId() );
System.out.println("ArrivalTime: " + job.getArrivalTime() );
System.out.println("Completion Time: " + job.getCompletionTime());
System.out.println("Processing Time: " + job.getTotalProcessTime() );
System.out.println("Turnaround Time: " + (job.getCompletionTime()-job.getArrivalTime()) );
}
public void printFinalInfo(){
System.out.println("\n\n\nPrint OS Stats: ");
System.out.println("Scheduling Algorithm Used: "+ myScheduler.getSchedulingAlgorithm());
System.out.println("Final CPU Clock: " + myCPU.getCycle() );
System.out.println("AVG processing time: " + (getSumJobProcessTime()/getCompletedJobsNumber()) );
System.out.println("AVG waiting time: "+ getSumJobWaitingTime()/getCompletedJobsNumber());
System.out.println("AVG turnaround time: "+ getSumJobTurnaroundTime()/getCompletedJobsNumber());
}
public void printStats(){
System.out.println("\n Printing statics: ");
System.out.println("Number of jobs in the readyQ: " + myReadyQueue.size());
System.out.println("Number of jobs in the blockedq: " + myBlockedQueue.size());
System.out.println("Number of completed jobs: " + getCompletedJobsNumber());
}
}
| jasonrfarkas/OS_project1_scheduling | OS.java |
121 | package com.greenbrook.data.subscription;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Serializable;
import java.time.DayOfWeek;
import java.time.Instant;
import java.time.LocalDate;
import java.time.Month;
import java.time.Period;
import java.time.YearMonth;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAdjusters;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.RejectedExecutionException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.greenbrook.Utils.CMEContractDay;
import com.greenbrook.Utils.CMEContractMonth;
import com.greenbrook.Utils.EquityOptionsContractMonthCall;
import com.greenbrook.Utils.EquityOptionsContractMonthPut;
import com.greenbrook.Utils.TradingUtils;
import com.greenbrook.data.entities.EquityOptionContract;
import com.greenbrook.data.entities.FutureOptionContract;
import com.mathworks.engine.EngineException;
import com.mathworks.engine.MatlabEngine;
import common.IQFeed_Socket;
import common.Java_Config;
/*
* This class is used to pull live data
*/
public class PullFromIQFeed implements Serializable{
private static final long serialVersionUID = 1L;
IQFeed_Socket C_Level1IQFeed_Socket;
Java_Config config = new Java_Config();
private int IQFEED_LEVEL1_PORT_DEFAULT = 0; // real port
//private int IQFEED_LEVEL1_PORT_DEFAULT = 9100; //history port
//private int IQFEED_LEVEL1_PORT_DEFAULT = 9400; //bw port
private String ipAddress="localhost";
private static String stockSymbolUsedLaterAsFileName=null;
private final String noData="E,!NO_DATA!,,";
private final String endOfMsg="!ENDMSG!,";
public PullFromIQFeed(int portNumber)
{
C_Level1IQFeed_Socket = new IQFeed_Socket();
//use history port when not using requesting real time data
IQFEED_LEVEL1_PORT_DEFAULT= portNumber;
//Attempt to connect our socket
// requests a socket connection to localhost on port IQFEED_LEVEL1_PORT_DEFAULT, default = localhost and port 5009
// Port 5009 is configurable in the registry. See registry settings in the documentation.
// If False is returned we are not able to connect display an error and exit.
if (!C_Level1IQFeed_Socket.ConnectSocket(ipAddress, IQFEED_LEVEL1_PORT_DEFAULT))
{
//JOptionPane.showMessageDialog(null, "Did you forget to login first?\nTake a look at the LaunchingTheFeed example app.");
System.out.println("Exiting because you are dumb");
System.exit(1);
}
System.out.println("Connected to Level 1 port.");
C_Level1IQFeed_Socket.CreateBuffers();
//Initialize the protocol, this prepares us for commands to come and verifies that our socket is working as intended.
try
{
C_Level1IQFeed_Socket.brBufferedWriter.write(String.format("S,SET PROTOCOL,%s\r\n",config.most_recent_protocol));
C_Level1IQFeed_Socket.brBufferedWriter.flush();
C_Level1IQFeed_Socket.brBufferedReader.readLine();
//S,REQUEST CURRENT UPDATE FIELDNAMES
if(IQFEED_LEVEL1_PORT_DEFAULT==5009) {
C_Level1IQFeed_Socket.brBufferedWriter.write("SS,REQUEST CURRENT UPDATE FIELDNAMES, \n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
C_Level1IQFeed_Socket.brBufferedReader.readLine();
C_Level1IQFeed_Socket.brBufferedWriter.write("S,CURRENT UPDATE FIELDNAMES,Symbol,Most Recent Trade Time,Bid,Bid Size, Ask,Ask Size \r\n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
C_Level1IQFeed_Socket.brBufferedReader.readLine();
C_Level1IQFeed_Socket.brBufferedWriter.write("S,TIMESTAMPSOFF\n\r" + "");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
C_Level1IQFeed_Socket.brBufferedReader.readLine();
}
System.out.println("Message Posted, Protocol set.");
}
catch (Exception eError)
{
System.err.println("Error writing to socket.\n%s "+ eError.toString());
}
}
public void pulldata(String command,String stockSymbolUsedLaterAsFileName,boolean isPullSixMonthsDataAllOption, boolean shouldBeStoredInAFile) {
/**
* Creates new form Level1_Example_Frame
*/
String line;
FileWriter pw =null;
try {
if(isPullSixMonthsDataAllOption)
C_Level1IQFeed_Socket.brBufferedWriter.write("HTT,"+stockSymbolUsedLaterAsFileName+",20201110 000000\n");
else
C_Level1IQFeed_Socket.brBufferedWriter.write(command);
C_Level1IQFeed_Socket.brBufferedWriter.flush();
line = C_Level1IQFeed_Socket.brBufferedReader.readLine();
if(stockSymbolUsedLaterAsFileName!=null) {
pw = new FileWriter(new File("/home/ops/tickdata/"+stockSymbolUsedLaterAsFileName+".csv"),true);
if(IQFEED_LEVEL1_PORT_DEFAULT!=5009) {
pw.append("Timestamp,last,last size,total volume,bid,Ask, TickID,Basis For Last,Trade Market Center,Trade Conditions,Trade Aggressor,Day Code");
//port is history
while (line!=null && !line.contains("ENDMSG!")){
{
System.out.println(" "+line);
line =null;
line=C_Level1IQFeed_Socket.brBufferedReader.readLine();
if(line!=null) {
pw.append("\n"+line);
}
}
}
pw.flush();
pw.close();
System.out.println("DONEEEEEEEEEEEEEEEEEEEEEEEEEEEE");
}
else if(shouldBeStoredInAFile){
//pw.append("Field Name,7 Day Yield,Ask,Ask Change,Ask Market Center,Ask Size,Ask Time,Available Regions,Average Maturity,Bid,Bid Change,Bid Market Center,Bid Size,Bid Time,Change,Change From Open,Close,Close Range 1,Close Range 2,Days to Expiration,Decimal Precision,Delay,Exchange ID,Extended Trade,Extended Trade Date,Extended Trade Market Center,Extended Trade Size,Extended Trade Time,Extended Trading Change,Extended Trading Difference,Financial Status Indicator,Fraction Display Code,High,Last,Last Date,Last Market Center,Last Size,Last Time,Low,Market Capitalization,Market Open,Message Contents,Most Recent Trade,Most Recent Trade Aggressor,Most Recent Trade Conditions,Most Recent Trade Date,Most Recent Trade Day Code,Most Recent Trade Market Center,Most Recent Trade Size,Most Recent Trade Time,Net Asset Value,Number of Trades Today,Open,,Open Interest,Open Range 1,Open Range 2,Percent Change,Percent Off Average Volume,Previous Day Volume,Price-Earnings Ratio,Range,Restricted Code,Settle,Settlement Date,Spread,Symbol,Tick,TickID,Total Volume,Type,Volatility,VWAP");
while (!line.contains("F,")|| !line.contains("P,@") )
{
System.out.println(" \n"+line);
line =null;
line=C_Level1IQFeed_Socket.brBufferedReader.readLine();
pw.append("\n"+line);
}
}
else if(!shouldBeStoredInAFile){
while (!line.contains("F,")|| !line.contains("P,@") )
{
System.out.println(line);
line =null;
line=C_Level1IQFeed_Socket.brBufferedReader.readLine();
}
}
}
} catch (Exception e) {
e.printStackTrace();
}
finally {
try {
if(pw!=null) {
pw.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
void pullAllOptionableFromListOfStocksInAFile(){
File allOptionableStockListFileName=new File("/home/ops/PycharmProjects/Earnings/volumestocks.txt"); //Creation of File Descriptor for input file
try
( FileReader fr=new FileReader(allOptionableStockListFileName); //Creation of File Reader object
BufferedReader br=new BufferedReader(fr)) //Creation of BufferedReader object
{
while((stockSymbolUsedLaterAsFileName=br.readLine())!=null) //Reading the content line by line
{
pulldata(null,stockSymbolUsedLaterAsFileName,true,true);
}
} catch (Exception e) {
e.printStackTrace();
}
}
public String tickerHTXline(String tickerOrSingleOptionChain) throws IOException {
C_Level1IQFeed_Socket.brBufferedWriter.write("HTX,"+tickerOrSingleOptionChain+",1,,,\n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
String htxLine = C_Level1IQFeed_Socket.brBufferedReader.readLine();
return htxLine;
}
/**
* return daily data between two dates for a ticker HDT,GOOG,20080919,20080930,,,TESTREQUEST,2500,0
* @param ticker
* @param startDate
* @param endDate
* @return
* @throws IOException
*/
public String hDTline(String ticker, String startDate, String endDate) throws IOException {
String hdtLine = null;//C_Level1IQFeed_Socket.brBufferedReader.readLine();
C_Level1IQFeed_Socket.brBufferedWriter.write("HDT,"+ticker+","+startDate+","+endDate+",,,TESTREQ,2500,0 \n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
hdtLine = C_Level1IQFeed_Socket.brBufferedReader.readLine();
return hdtLine;
}
public List<String> hDTBarData(String ticker, String startDate, String endDate) throws IOException {
List<String> bars= new ArrayList<>();
String hdtLine = null;//C_Level1IQFeed_Socket.brBufferedReader.readLine();
C_Level1IQFeed_Socket.brBufferedWriter.write("HIX,AAPL,900,4 \n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
hdtLine = C_Level1IQFeed_Socket.brBufferedReader.readLine();
while(!hdtLine.equals(endOfMsg)) {
hdtLine = C_Level1IQFeed_Socket.brBufferedReader.readLine();
bars.add(hdtLine);
System.out.println(hdtLine);
}
return bars;
}
/**
* return ask price for option or such as @ESM24696900 or @ES
* @param htxLine
* @return
* @throws IOException
*/
public double tickerHTXAskPrice(String htxLine) throws IOException {
double htxSingle = Double.parseDouble(htxLine.split(",")[5]);
return htxSingle;//Double.parseDouble(htxSingle);
}
/**
* return ask price for option or such as @ESM24696900 or @ES
* @param htxLine
* @return
* @throws IOException
*/
public double tickerHTXBidPrice(String htxLine) throws IOException {
double htxSingle = Double.parseDouble(htxLine.split(",")[4]);
return htxSingle;//Double.parseDouble(htxSingle);
}
/**
*
* @param ticker
* @param ask
* @param right
* @return
*/
public EquityOptionContract equityOptionsChains(String ticker,double ask, MatlabEngine eng, String right){
String nearMonth = null;
ArrayList<Double> deltaSelector=new ArrayList<>();
HashMap<Double, Double> deltaDetStrikemap = new HashMap<>();
HashMap<Double, Double> deltaOptionsPricemap = new HashMap<>();
String[] strikes=null;
Object[] results=null;
EquityOptionContract equityOptionContract=null;
try {
//Get Near month @ESM22 for example from @ES input
C_Level1IQFeed_Socket.brBufferedWriter.write("CEO,"+ticker+",,2,1,\r\n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
nearMonth = C_Level1IQFeed_Socket.brBufferedReader.readLine();
if(nearMonth.equals(endOfMsg)||nearMonth.equals(noData)) {
C_Level1IQFeed_Socket.brBufferedWriter.write("CEO,"+nearMonth+",pc,,2,1,\r\n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
nearMonth = C_Level1IQFeed_Socket.brBufferedReader.readLine();
}
System.out.println("Before break");
String erroneousNearMonth=nearMonth.toString();
if(erroneousNearMonth.equals(endOfMsg)||erroneousNearMonth.equals(noData))
equityOptionsChains(ticker, ask, eng, right);
//Pattern pattern = Pattern.compile("\\d?\\d?\\d?\\d?\\d?\\d?$");
Pattern pattern = Pattern.compile(".+([A-Z].+)$");
if(right.equalsIgnoreCase("call")) {
strikes=nearMonth.split(",");
}
if (right.equalsIgnoreCase("put")) {
int indexOfColon=nearMonth.indexOf(":")+1;
nearMonth=nearMonth.substring(indexOfColon+1, nearMonth.length());
strikes=nearMonth.split(",");
}
nearMonth=nearMonth.split(",")[1];
equityOptionContract=getDeltaEquityStrikeExpirationOptimized(right,strikes,ticker);
for (String singleStrike: strikes) {
String formattedStrike=singleStrike.replace(",", "").trim();
if (formattedStrike.startsWith(equityOptionContract.getFilterStrike())) {
Matcher matcher = pattern.matcher(formattedStrike);
if(matcher.find()) {
String strikeUnclean =matcher.group(1);
String strike = strikeUnclean.substring(1, strikeUnclean.length());
double det=Double.parseDouble(strike)/100;
if((strikeUnclean.startsWith("C")&&(Math.abs(det-ask)<(0.02*ask))&& det>ask)||(strikeUnclean.startsWith("P")&&(Math.abs(det-ask)<(0.02*ask))&& det<ask)){
int daysUntilExpiration = 7;//getEquityDaysUntilExpiration(formattedStrike,formattedStrike,strikeUnclean);;
if(daysUntilExpiration<13 && daysUntilExpiration>=3) {
PullFromIQFeed pfiqFeed =new PullFromIQFeed(9100);
double optionPrice=getOptionsAskPrice(formattedStrike,pfiqFeed);//Double.valueOf(tickerHTXAskPrice(optionsAsk));
if(!(optionPrice ==0)) {
double timeUntilExpiration= (double)daysUntilExpiration/365;
MatlabEngine eng2=MatlabEngine.startMatlab();
double impliedVolatility = eng2.feval("blsimpv", ask, det, 0.0529,timeUntilExpiration,optionPrice,0);
//Future<Object> results =eng.feval("blsdelta",currentSpotPrice,strike2,rate,time,volatility,yield);
if(!Double.isNaN(impliedVolatility)){
//TODO make sure to use dividend when applicable
results =eng2.feval(2,"blsdelta", ask,det,0.0758,timeUntilExpiration,impliedVolatility,0.01);
double callDeltaCalculated=(Double) results[0];
double putDeltaCalculated=(Double) results[1];
if(strikeUnclean.startsWith("C")) {
deltaDetStrikemap.put( callDeltaCalculated,det);
deltaOptionsPricemap.put(callDeltaCalculated, optionPrice);
deltaSelector.add( callDeltaCalculated);
}
else if(strikeUnclean.startsWith("P")) {
deltaDetStrikemap.put(putDeltaCalculated,det);
deltaOptionsPricemap.put(putDeltaCalculated, optionPrice);
deltaSelector.add( putDeltaCalculated);
}
}
}
}
}
}
}
}
double closestStrikeDelta=0;
if(deltaSelector!=null) {
if(right.equalsIgnoreCase("call")) {
closestStrikeDelta=TradingUtils.closest(0.33,deltaSelector );
}
if(right.equalsIgnoreCase("put")) {
closestStrikeDelta=TradingUtils.closest(-0.33,deltaSelector );
}
Double closestdet= deltaDetStrikemap.get(closestStrikeDelta);
double closetOptionPrice = deltaOptionsPricemap.get(closestStrikeDelta);
equityOptionContract.setStrike(closestdet);//Double.parseDouble(closestdet.replace(futureOptionContract.getFilterStrike(), "")));
equityOptionContract.setDeltaOptimizedOptionPrice(closetOptionPrice);
}
} catch (IOException e) {
e.printStackTrace();
} catch (RejectedExecutionException e) {
e.printStackTrace();
} catch (EngineException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
return equityOptionContract;
}
private EquityOptionContract getDeltaEquityStrikeExpirationOptimized(String right, String[] strikes, String ticker) {
// TODO Auto-generated method stub
Set<String> myset = new HashSet<>();
for(String strike:strikes) {
if(strike.startsWith(ticker)) {
myset.add(strike.substring(ticker.length(), ticker.length()+5));
}
}
getEquityDaysUntilExpiration(ticker, right, myset);
return null;
}
private int getEquityDaysUntilExpiration(String ticker, String right,Set<String> uniqueStrikes) {
// AAPL2224F139
int tickerLength=ticker.length();
String formattedStrike="todo";
int expirationDayOfMonth= Integer.parseInt(formattedStrike.substring(tickerLength+3 ,tickerLength+4));
ZonedDateTime zd= ZonedDateTime.now();
LocalDate localDateToday=zd.toLocalDate();
String strikeUnclean="todo";
String monthOptionChainExpires=EquityOptionsContractMonthCall.valueOf(String.valueOf(strikeUnclean.charAt(0))).getValue();
if(monthOptionChainExpires==null)
monthOptionChainExpires=EquityOptionsContractMonthPut.valueOf(String.valueOf(strikeUnclean.charAt(0))).getValue();
LocalDate dayOptionChainExpires= LocalDate.of(localDateToday.getYear(),Month.valueOf(monthOptionChainExpires.toUpperCase()).getValue() , expirationDayOfMonth);
int numDays = Period.between(localDateToday, dayOptionChainExpires).getDays();
//get days between after retrieving month code. MAke sure short year is always current year like 22
return numDays ;
}
public int getFuturesDaysUntilExpiration(String ticker, String formattedStrike,String strikeUnclean, FutureOptionContract futureOptionContract) {
// AAPL2224F139
int numDays=0;
String holidayAdustedExpiration=futureOptionContract.getExpirationDate();
if(holidayAdustedExpiration!=null) {
ZonedDateTime zd= ZonedDateTime.now();
LocalDate localDateToday=zd.toLocalDate();
numDays= Period.between(localDateToday, LocalDate.parse(holidayAdustedExpiration)).getDays();
}
else
numDays=getDayofExpiration(formattedStrike); //Integer.parseInt(formattedStrike.substring(tickerLength+3 ,tickerLength+4));
return numDays ;
}
private int getDayofExpiration(String formattedStrike ) {
try {
Month mofStrike=null;
int weekNumber=0;
DayOfWeek doWeek=null;
int year =0;
int numDays = 0;
if(formattedStrike.substring(2, 3).equals("1") ||
formattedStrike.substring(2, 3).equals("2") ||
formattedStrike.substring(2, 3).equals("3") ||
formattedStrike.substring(2, 3).equals("4") ||
formattedStrike.substring(2, 3).equals("5")) {
//week as char 2
weekNumber= Integer.parseInt(formattedStrike.substring(2, 3));
System.out.println("substring lesson "+formattedStrike.substring(2, 3));
if (formattedStrike.substring(3, 4).equals("A"))
doWeek=DayOfWeek.MONDAY;
if(formattedStrike.substring(3, 4).equals("B"))
doWeek =DayOfWeek.TUESDAY;
if(formattedStrike.substring(3, 4).equals("C"))
doWeek =DayOfWeek.WEDNESDAY;
if(formattedStrike.substring(3, 4).equals("D")){
doWeek =DayOfWeek.THURSDAY;
}
String cmeMonth=CMEContractMonth.valueOf(formattedStrike.substring(4, 5)).getValue();
if(cmeMonth!=null) {
//End of month expiration
mofStrike=Month.valueOf(cmeMonth.toUpperCase());
}
year =Integer.valueOf("20"+formattedStrike.substring(5, 7));
}
if(formattedStrike.substring(2, 3).equals("W")) {
//friday things
if(formattedStrike.substring(3, 4).equals("1") ||
formattedStrike.substring(3, 4).equals("2") ||
formattedStrike.substring(3, 4).equals("3") ||
formattedStrike.substring(3, 4).equals("4") ||
formattedStrike.substring(3, 4).equals("5")){
weekNumber=Integer.valueOf(formattedStrike.substring(3, 4));
doWeek =DayOfWeek.FRIDAY;
String cmeMonth=CMEContractMonth.valueOf(String.valueOf(formattedStrike.substring(4, 5)).toString()).getValue();
if(cmeMonth!=null) {
mofStrike=Month.valueOf(cmeMonth.toUpperCase());
}
year =Integer.valueOf("20"+formattedStrike.substring(5, 7));
}
else {
String cmeMonth=CMEContractMonth.valueOf(formattedStrike.substring(3, 4)).getValue();
if(cmeMonth!=null) {
mofStrike=Month.valueOf(cmeMonth.toUpperCase());
weekNumber=4;
year =Integer.valueOf("20"+formattedStrike.substring(4, 6));
doWeek=LocalDate.now().withYear(year).with(mofStrike).with(TemporalAdjusters.lastDayOfMonth()).getDayOfWeek();
}
else {
}
}
}
if(formattedStrike.substring(2, 3).equals("Y")&&(formattedStrike.substring(3, 4).equals("C"))) {
}
LocalDate optionsChainsExpirationsDate =
YearMonth.of( 2022 , mofStrike )
.atDay( 1 )
.with( TemporalAdjusters.dayOfWeekInMonth( weekNumber , doWeek ) );
ZonedDateTime zd= ZonedDateTime.now();
LocalDate localDateToday=zd.toLocalDate();
numDays = Period.between(localDateToday, optionsChainsExpirationsDate).getDays();
return numDays;
}
catch(Exception e) {
e.printStackTrace();
return 0;
}
}
/**
* futures options ticker(example @ES)
* @param ticker
* @return
*/
public String getNearMonth(String ticker) {
String nearMonth = null;
//Get Near month @ESM22 for example from @ES input
try {
C_Level1IQFeed_Socket.brBufferedWriter.write("CFU,"+ticker+",,2,1,\r\n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
nearMonth = C_Level1IQFeed_Socket.brBufferedReader.readLine();
String erroneousNearMonth=nearMonth.toString();
if(erroneousNearMonth.equals(endOfMsg)||erroneousNearMonth.equals(noData))
getNearMonth(ticker);
nearMonth=nearMonth.split(",")[0];
}
catch (Exception e) {
e.printStackTrace();
}
return nearMonth;
}
public FutureOptionContract futuresOptionsChains(String nearMonth,double ask, MatlabEngine eng, String right){
//use @ESM22 to get list of options chains like @ESM22C314000
ArrayList<Double> deltaSelector=new ArrayList<>();
HashMap<Double, Double> deltaDetStrikemap = new HashMap<>();
HashMap<Double, Double> deltaOptionsPricemap = new HashMap<>();
String[] strikes=null;
Object[] results;
try {
FutureOptionContract futureOptionContract=getDeltaStrikeExpirationOptimized(right);
nearMonth="@ESZ22";
C_Level1IQFeed_Socket.brBufferedWriter.write("CFO,"+nearMonth+",pc,,2,1,\r\n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
String chainStrng = null;
chainStrng = C_Level1IQFeed_Socket.brBufferedReader.readLine();
//retry on end message EOM
if(chainStrng.equals(endOfMsg)||chainStrng.equals(noData)) {
C_Level1IQFeed_Socket.brBufferedWriter.write("CFO,"+nearMonth+",pc,,2,1,\r\n");
C_Level1IQFeed_Socket.brBufferedWriter.flush();
chainStrng = C_Level1IQFeed_Socket.brBufferedReader.readLine();
}
//Pattern pattern = Pattern.compile("\\d?\\d?\\d?\\d?\\d?\\d?$");
Pattern pattern = Pattern.compile(".+([A-Z].+)$");
if(right.equalsIgnoreCase("call")) {
strikes=chainStrng.split(",");
}
if (right.equalsIgnoreCase("put")) {
int indexOfColon=chainStrng.indexOf(":");
chainStrng=chainStrng.substring(indexOfColon+1, chainStrng.length());
strikes=chainStrng.split(",");
}
for (String singleStrike: strikes) {
String formattedStrike=singleStrike.replace(",", "").trim();
if (formattedStrike.startsWith(futureOptionContract.getFilterStrike())) {
Matcher matcher = pattern.matcher(formattedStrike);
if(matcher.find()) {
String strikeUnclean =matcher.group(1);
String strike = strikeUnclean.substring(1, strikeUnclean.length());
double det=Double.parseDouble(strike)/100;
if((strikeUnclean.startsWith("C")&&(Math.abs(det-ask)<(0.02*ask))&& det>ask+40)||(strikeUnclean.startsWith("P")&&(Math.abs(det-ask)<(0.02*ask))&& det<ask-40)){
int daysUntilExpiration = getFuturesDaysUntilExpiration(formattedStrike,formattedStrike,strikeUnclean,futureOptionContract);
if(daysUntilExpiration<13 && daysUntilExpiration>=2) {
double optionPrice=getOptionsAskPriceWatchLive(formattedStrike);//,pfiqFeed);//Double.valueOf(tickerHTXAskPrice(optionsAsk));
if(!(optionPrice ==0)) {
double timeUntilExpiration= (double)daysUntilExpiration/365;
double impliedVolatility = eng.feval("blsimpv", ask, det, 0.0529,timeUntilExpiration,optionPrice,0);
//Future<Object> results =eng.feval("blsdelta",currentSpotPrice,strike2,rate,time,volatility,yield);
if(!Double.isNaN(impliedVolatility)){
results =eng.feval(2,"blsdelta", ask,det,0.0758,timeUntilExpiration,impliedVolatility,0.01);
double callDeltaCalculated=(Double) results[0];
double putDeltaCalculated=(Double) results[1];
if(strikeUnclean.startsWith("C")) {
deltaDetStrikemap.put( callDeltaCalculated,det);
deltaOptionsPricemap.put(callDeltaCalculated, optionPrice);
deltaSelector.add( callDeltaCalculated);
}
else if(strikeUnclean.startsWith("P")) {
deltaDetStrikemap.put(putDeltaCalculated,det);
deltaOptionsPricemap.put(putDeltaCalculated, optionPrice);
deltaSelector.add( putDeltaCalculated);
}
}
}
}
}
}
}
}
double closestStrikeDelta=0;
if(right.equalsIgnoreCase("call")) {
closestStrikeDelta=TradingUtils.closest(0.33,deltaSelector );
}
if(right.equalsIgnoreCase("put")) {
closestStrikeDelta=TradingUtils.closest(-0.33,deltaSelector );
}
Double closestdet= deltaDetStrikemap.get(closestStrikeDelta);
double closetOptionPrice = deltaOptionsPricemap.get(closestStrikeDelta);
futureOptionContract.setStrike(closestdet);//Double.parseDouble(closestdet.replace(futureOptionContract.getFilterStrike(), "")));
futureOptionContract.setDeltaOptimizedOptionPrice(closetOptionPrice);
return futureOptionContract;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
public FutureOptionContract getDeltaStrikeExpirationOptimized(String right) {
FutureOptionContract futureOptionContract=new FutureOptionContract();
LocalDate date=TradingUtils.nextOptionsExpirationDateCalculator();
Month month=date.getMonth();
int year=date.getYear();
DayOfWeek dayOfWeek=date.getDayOfWeek();
StringBuffer buf=new StringBuffer();
buf.append("@E");
LocalDate endOfMonth = date.withDayOfMonth(date.lengthOfMonth());
boolean isRolloverDate=rolloverDateCalculator(date);
int fridayOrdinal=DayOfWeek.FRIDAY.getValue();
int dayOfWeekOrdinal=dayOfWeek.getValue();
ZonedDateTime zonedDateTime = date.atStartOfDay(ZoneId.of( "America/New_York" ));
Instant instant = zonedDateTime.toInstant();
Date qdate = Date.from(instant);
Calendar calendar = Calendar.getInstance();
calendar.setTime(qdate);
int week=calendar.get(Calendar.DAY_OF_WEEK_IN_MONTH);
if((dayOfWeek!=DayOfWeek.FRIDAY)&&(date!=endOfMonth)&&!(isRolloverDate)) {
buf.append(week);
String cmeDay=CMEContractDay.valueOf(dayOfWeek.toString()).getValue();
buf.append(cmeDay);
String cmeMonth=CMEContractMonth.valueOf(month.toString()).getValue();
buf.append(cmeMonth);
String str = year+""; //connverting int to string
String digit = str.substring(str.length()-2, str.length());
buf.append(digit);
futureOptionContract.setRight(right);
futureOptionContract.setFilterStrike(buf.toString());
}
if((dayOfWeek.equals(DayOfWeek.FRIDAY))&&(date!=endOfMonth)&&!(isRolloverDate)) {
buf.append("W");
buf.append(week);
String cmeMonth=CMEContractMonth.valueOf(month.toString()).getValue();
buf.append(cmeMonth);
String str = year+""; //connverting int to string
String digit = str.substring(str.length()-1);
buf.append(digit);
futureOptionContract.setRight(right);
futureOptionContract.setFilterStrike(buf.toString());
}
if (dayOfWeekOrdinal==fridayOrdinal) {
if(date==endOfMonth) {
}
}
if(date==endOfMonth ) {
buf.append("W");
String cmeMonth=CMEContractMonth.valueOf(month.toString()).getValue();
buf.append(cmeMonth);
String str = year+""; //connverting int to string
String digit = str.substring(str.length()-1);
buf.append(digit);
futureOptionContract.setRight(right);
futureOptionContract.setFilterStrike(buf.toString());
}
if(isRolloverDate) {
buf.append("S");
String cmeMonth=CMEContractMonth.valueOf(month.toString()).getValue();
buf.append(cmeMonth);
String str = year+""; //connverting int to string
String digit = str.substring(str.length()-1);
buf.append(digit);
futureOptionContract.setRight(right);
futureOptionContract.setFilterStrike(buf.toString());
}
//EYCM3
futureOptionContract.setExpirationDate(date.toString());
return futureOptionContract;
}
public boolean rolloverDateCalculator(LocalDate date) {
List<LocalDate> rolloverDates=new ArrayList<>();
LocalDate.parse("2022-09-12", DateTimeFormatter.ofPattern("yyyy-MM-dd"));
rolloverDates.add(LocalDate.parse("2022-09-16", DateTimeFormatter.ofPattern("yyyy-MM-dd")));
rolloverDates.add(LocalDate.parse("2022-12-16", DateTimeFormatter.ofPattern("yyyy-MM-dd")));
if(rolloverDates.contains(date)) {
return true;
}
return false;
}
private double getOptionsAskPrice(String formattedStrike,PullFromIQFeed pfiqFeed) {
String line;
try {
if(pfiqFeed==null) {
pfiqFeed =new PullFromIQFeed(9100);
}
line = pfiqFeed.tickerHTXline(formattedStrike);
if(line.contains("@")||line.equals(endOfMsg)) {
getOptionsAskPrice(formattedStrike,null);
}
double ask=0;
if(!line.equals(noData)) {
ask=pfiqFeed.tickerHTXAskPrice(line);
}
return ask;
} catch (IOException e) {
e.printStackTrace();
}
return 0;
}
public double getOptionsAskPriceWatchLive(String formattedStrike) {//,PullFromIQFeed pfiqFeed) {
// TODO use an F message when p is not available in less liquid times?
String line;
double ask=0;
int count=0;
try(IQFeed_Socket C_Level1IQFeed_Socket2=new IQFeed_Socket()) {
String command = "w"+formattedStrike+"\n\r";
C_Level1IQFeed_Socket2.ConnectSocket("localhost", 5009);
C_Level1IQFeed_Socket2.CreateBuffers();
C_Level1IQFeed_Socket2.brBufferedWriter.write(command);
C_Level1IQFeed_Socket2.brBufferedWriter.flush();
line=C_Level1IQFeed_Socket2.brBufferedReader.readLine();
if(line.contains("@")||line.equals(endOfMsg)) {
line=C_Level1IQFeed_Socket2.brBufferedReader.readLine();
}
while (!line.startsWith("P,@") && count<20) {
System.out.println("line is "+ line);
line=C_Level1IQFeed_Socket2.brBufferedReader.readLine();
count++;
}
if (line.startsWith("P,@")){
String askStringLocation =line.split(",")[11];
if(askStringLocation!=null&&!askStringLocation.equals("")) {
System.out.println("gold mine is saying: "+line);
ask=Double.valueOf(askStringLocation);
}
else
System.out.println("***data starvation");
}
C_Level1IQFeed_Socket2.brBufferedWriter.write("r"+formattedStrike+"\n\r");
C_Level1IQFeed_Socket2.brBufferedWriter.flush();
return ask;
} catch (IOException e) {
e.printStackTrace();
}
return 0;
}
public static void main(String[] args) throws FileNotFoundException {
UUID fileName=UUID
.fromString(
"58e0a7d7-eebc-11d8-9669-0800200c9a66");
System.out.println(fileName.timestamp());
PullFromIQFeed pfiqFeed =new PullFromIQFeed(5009);
pfiqFeed.pulldata("w@ESU22\n\r", fileName.toString()+"ondate"+fileName.timestamp(), false, true);
}
}
| brookdpg/playground | x.java |
122 | package rpgGridBrawl;
public class Sketch {
private int[][] lines;
private int numberOfLines;
private int[] clPlacement;
public Sketch(int bwlr) {
int bl = 0;
clPlacement = new int[2];
clPlacement[0] = -1; clPlacement[1] = -1;
switch (bwlr) {
case 0: // Warrior cl1
this.numberOfLines = 18;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 62; clPlacement[1] = 73;
this.lines[bl][0] = 2; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 7; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 7; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 7; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1]= 7; this.lines[bl][2]= 14; bl++;
this.lines[bl][0] = 11; this.lines[bl][1]= 7; this.lines[bl][2]= 14; bl++;
this.lines[bl][0] = 12; this.lines[bl][1]= 7; this.lines[bl][2]= 18; bl++;
this.lines[bl][0] = 13; this.lines[bl][1]= 17; this.lines[bl][2]= 18; bl++;
this.lines[bl][0] = 14; this.lines[bl][1]= 8; this.lines[bl][2]= 9; bl++;
this.lines[bl][0] = 15; this.lines[bl][1]= 8; this.lines[bl][2]= 9; bl++;
this.lines[bl][0] = 16; this.lines[bl][1]= 8; this.lines[bl][2]= 9; bl++;
this.lines[bl][0] = 17; this.lines[bl][1]= 7; this.lines[bl][2]= 9; bl++;
break;
case 1: // Cleric cl1
this.numberOfLines = 22;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 61; clPlacement[1] = 86;
this.lines[bl][0] = 3; this.lines[bl][1] = 11; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 4; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
break;
case 2: // Mage cl1
this.numberOfLines = 34;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 70; clPlacement[1] = 85;
this.lines[bl][0] = 3; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 15; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 13; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 6; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 14; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 5; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 8; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 6; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 5; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 6; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 14; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 13; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 15; this.lines[bl][2] = 16; bl++;
break;
case 3: // Rogue cl1
this.numberOfLines = 38;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 69; clPlacement[1] = 88;
this.lines[bl][0] = 3; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 14; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 6; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 14; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 14; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 5; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 3; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 5; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 14; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
break;
case 4: // Warrior cl2
this.numberOfLines = 22;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 63; clPlacement[1] = 73;
this.lines[bl][0] = 2; this.lines[bl][1] = 7; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 7; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 2; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 7; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 7; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 10; this.lines[bl][1]= 4; this.lines[bl][2]= 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1]= 7; this.lines[bl][2]= 14; bl++;
this.lines[bl][0] = 11; this.lines[bl][1]= 2; this.lines[bl][2]= 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1]= 7; this.lines[bl][2]= 18; bl++;
this.lines[bl][0] = 12; this.lines[bl][1]= 7; this.lines[bl][2]= 18; bl++;
this.lines[bl][0] = 13; this.lines[bl][1]= 17; this.lines[bl][2]= 18; bl++;
this.lines[bl][0] = 14; this.lines[bl][1]= 8; this.lines[bl][2]= 10; bl++;
this.lines[bl][0] = 15; this.lines[bl][1]= 8; this.lines[bl][2]= 10; bl++;
this.lines[bl][0] = 16; this.lines[bl][1]= 8; this.lines[bl][2]= 10; bl++;
this.lines[bl][0] = 17; this.lines[bl][1]= 7; this.lines[bl][2]= 10; bl++;
break;
case 5: // Cleric CL2
this.numberOfLines = 31;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 61; clPlacement[1] = 86;
this.lines[bl][0] = 2; this.lines[bl][1] = 11; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 11; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 2; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 2; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 3; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 4; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
break;
case 6: // Mage CL2
this.numberOfLines = 36;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 70; clPlacement[1] = 86;
this.lines[bl][0] = 2; this.lines[bl][1] = 8; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 14; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 10; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 2; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 7; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 5; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 14; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
break;
case 7: // Rogue cl2
this.numberOfLines = 45;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 67; clPlacement[1] = 83;
this.lines[bl][0] = 2; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 14; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 6; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 14; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 14; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 14; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 13; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 2; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 15; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
break;
case 8: // Dragon
this.numberOfLines = 53;
this.lines = new int[this.numberOfLines][3];
bl = 0;
this.lines[bl][0] = 0; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 0; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 0; this.lines[bl][1] = 13; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 13; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 14; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 7; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 5; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 11; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 0; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 8; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 16; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 12; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 3; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 5; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 6; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 5; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 16; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 10; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 10; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 7; this.lines[bl][2] = 11; bl++;
break;
case 9: // vampire
this.numberOfLines = 58;
this.lines = new int[this.numberOfLines][3];
bl = 0;
this.lines[bl][0] = 0; this.lines[bl][1] = 0; this.lines[bl][2] = 1; bl++;
this.lines[bl][0] = 0; this.lines[bl][1] = 2; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 3; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 2; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 6; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 0; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 6; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 11; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 10; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 10; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 6; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 11; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 0; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 8; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 6; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 2; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 3; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 0; this.lines[bl][2] = 1; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 2; this.lines[bl][2] = 9; bl++;
break;
case 10: // abyss
this.numberOfLines = 34;
this.lines = new int[this.numberOfLines][3];
bl = 0;
this.lines[bl][0] = 0; this.lines[bl][1] = 3; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 2; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 1; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 0; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 0; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 9; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 0; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 0; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 9; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 0; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 16; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 0; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 15; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 0; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 15; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 0; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 15; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 0; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 15; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 0; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 16; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 0; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 9; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 0; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 9; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 0; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 9; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 0; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 8; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 1; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 2; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 3; this.lines[bl][2] = 17; bl++;
break;
case 11: // sentinel
this.numberOfLines = 45;
this.lines = new int[this.numberOfLines][3];
bl = 0;
this.lines[bl][0] = 0; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 0; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 9; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 1; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 12; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 1; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 12; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 5; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 14; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 7; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 12; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 12; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 3; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 9; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 2; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 9; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 0; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 5; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
break;
case 12: // lower level Orc
this.numberOfLines = 28;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 63; clPlacement[1] = 76;
this.lines[bl][0] = 2; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 2; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 8; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 13; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 5; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 5; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 2; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 8; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 13; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 3; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 3; this.lines[bl][2] = 5; bl++;
break;
case 13: // lower level Zombie
this.numberOfLines = 31;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 57; clPlacement[1] = 83;
this.lines[bl][0] = 4; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 9; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 4; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 9; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
break;
case 14: // lower level Goblin
this.numberOfLines = 30;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 66; clPlacement[1] = 82;
this.lines[bl][0] = 3; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 12; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 3; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 9; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 8; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 9; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 3; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 12; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
break;
case 15: // lower level Serpent
this.numberOfLines = 40;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 71; clPlacement[1] = 83;
this.lines[bl][0] = 2; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 13; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 15; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 13; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 5; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 8; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 15; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 9; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 15; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 9; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 15; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 16; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 11; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 12; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 13; this.lines[bl][2] = 16; bl++;
break;
case 16: // princess
this.numberOfLines = 50;
this.lines = new int[this.numberOfLines][3];
this.lines[0][0] = 2; this.lines[0][1] = 11; this.lines[0][2] = 12;
this.lines[1][0] = 3; this.lines[1][1] = 11; this.lines[1][2] = 13;
this.lines[2][0] = 4; this.lines[2][1] = 11; this.lines[2][2] = 13;
this.lines[3][0] = 4; this.lines[3][1] = 16; this.lines[3][2] = 17;
this.lines[4][0] = 5; this.lines[4][1] = 0; this.lines[4][2] = 10;
this.lines[5][0] = 5; this.lines[5][1] = 11; this.lines[5][2] = 13;
this.lines[6][0] = 5; this.lines[6][1] = 15; this.lines[6][2] = 17;
this.lines[7][0] = 5; this.lines[7][1] = 19; this.lines[7][2] = 20;
this.lines[8][0] = 6; this.lines[8][1] = 0; this.lines[8][2] = 1;
this.lines[9][0] = 6; this.lines[9][1] = 14; this.lines[9][2] = 17;
this.lines[10][0] = 6; this.lines[10][1]= 19; this.lines[10][2]= 20;
this.lines[11][0] = 7; this.lines[11][1]= 0; this.lines[11][2]= 1;
this.lines[12][0] = 7; this.lines[12][1]= 2; this.lines[12][2]= 7;
this.lines[13][0] = 7; this.lines[13][1]= 13; this.lines[13][2]= 17;
this.lines[14][0] = 7; this.lines[14][1]= 18; this.lines[14][2]= 20;
this.lines[15][0] = 8; this.lines[15][1]= 0; this.lines[15][2]= 1;
this.lines[16][0] = 8; this.lines[16][1]= 2; this.lines[16][2]= 3;
this.lines[17][0] = 8; this.lines[17][1]= 4; this.lines[17][2]= 8;
this.lines[18][0] = 8; this.lines[18][1]= 12; this.lines[18][2]= 17;
this.lines[19][0] = 8; this.lines[19][1]= 18; this.lines[19][2]= 20;
this.lines[20][0] = 9; this.lines[20][1]= 0; this.lines[20][2]= 1;
this.lines[21][0] = 9; this.lines[21][1]= 2; this.lines[21][2]= 5;
this.lines[22][0] = 9; this.lines[22][1]= 6; this.lines[22][2]= 8;
this.lines[23][0] = 9; this.lines[23][1]= 9; this.lines[23][2]= 11;
this.lines[24][0] = 9; this.lines[24][1]= 12; this.lines[24][2]= 17;
this.lines[25][0] = 10; this.lines[25][1]= 0; this.lines[25][2]= 1;
this.lines[26][0] = 10; this.lines[26][1]= 2; this.lines[26][2]= 5;
this.lines[27][0] = 10; this.lines[27][1]= 6; this.lines[27][2]= 8;
this.lines[28][0] = 10; this.lines[28][1]= 9; this.lines[28][2]= 11;
this.lines[29][0] = 10; this.lines[29][1]= 12; this.lines[29][2]= 17;
this.lines[30][0] = 11; this.lines[30][1]= 0; this.lines[30][2]= 1;
this.lines[31][0] = 11; this.lines[31][1]= 2; this.lines[31][2]= 3;
this.lines[32][0] = 11; this.lines[32][1]= 4; this.lines[32][2]= 8;
this.lines[33][0] = 11; this.lines[33][1]= 12; this.lines[33][2]= 17;
this.lines[34][0] = 11; this.lines[34][1]= 18; this.lines[34][2]= 20;
this.lines[35][0] = 12; this.lines[35][1]= 0; this.lines[35][2]= 1;
this.lines[36][0] = 12; this.lines[36][1]= 2; this.lines[36][2]= 7;
this.lines[37][0] = 12; this.lines[37][1]= 13; this.lines[37][2]= 17;
this.lines[38][0] = 12; this.lines[38][1]= 18; this.lines[38][2]= 20;
this.lines[39][0] = 13; this.lines[39][1]= 0; this.lines[39][2]= 1;
this.lines[40][0] = 13; this.lines[40][1]= 14; this.lines[40][2]= 17;
this.lines[41][0] = 13; this.lines[41][1]= 19; this.lines[41][2]= 20;
this.lines[42][0] = 14; this.lines[42][1]= 0; this.lines[42][2]= 10;
this.lines[43][0] = 14; this.lines[43][1]= 11; this.lines[43][2]= 13;
this.lines[44][0] = 14; this.lines[44][1]= 15; this.lines[44][2]= 17;
this.lines[45][0] = 14; this.lines[45][1]= 19; this.lines[45][2]= 20;
this.lines[46][0] = 15; this.lines[46][1]= 11; this.lines[46][2]= 13;
this.lines[47][0] = 15; this.lines[47][1]= 16; this.lines[47][2]= 17;
this.lines[48][0] = 16; this.lines[48][1]= 11; this.lines[48][2]= 13;
this.lines[49][0] = 17; this.lines[49][1]= 11; this.lines[49][2]= 12;
break;
case 17: // leper
this.numberOfLines = 46;
this.lines = new int[this.numberOfLines][3];
this.lines[0][0] = 1; this.lines[0][1] = 7; this.lines[0][2] = 9;
this.lines[1][0] = 1; this.lines[1][1] = 10; this.lines[1][2] = 17;
this.lines[2][0] = 2; this.lines[2][1] = 7; this.lines[2][2] = 9;
this.lines[3][0] = 3; this.lines[3][1] = 7; this.lines[3][2] = 9;
this.lines[4][0] = 3; this.lines[4][1] = 10; this.lines[4][2] = 16;
this.lines[5][0] = 3; this.lines[5][1] = 19; this.lines[5][2] = 20;
this.lines[6][0] = 4; this.lines[6][1] = 7; this.lines[6][2] = 9;
this.lines[7][0] = 4; this.lines[7][1] = 18; this.lines[7][2] = 20;
this.lines[8][0] = 5; this.lines[8][1] = 7; this.lines[8][2] = 9;
this.lines[9][0] = 5; this.lines[9][1]= 10; this.lines[9][2]= 15;
this.lines[10][0] = 5; this.lines[10][1]= 17; this.lines[10][2]= 20;
this.lines[11][0] = 6; this.lines[11][1]= 7; this.lines[11][2]= 9;
this.lines[12][0] = 6; this.lines[12][1]= 16; this.lines[12][2]= 19;
this.lines[13][0] = 7; this.lines[13][1]= 1; this.lines[13][2]= 5;
this.lines[14][0] = 7; this.lines[14][1]= 7; this.lines[14][2]= 9;
this.lines[15][0] = 7; this.lines[15][1]= 15; this.lines[15][2]= 18;
this.lines[16][0] = 8; this.lines[16][1]= 0; this.lines[16][2]= 1;
this.lines[17][0] = 8; this.lines[17][1]= 2; this.lines[17][2]= 3;
this.lines[18][0] = 8; this.lines[18][1]= 5; this.lines[18][2]= 6;
this.lines[19][0] = 8; this.lines[19][1]= 7; this.lines[19][2]= 13;
this.lines[20][0] = 8; this.lines[20][1]= 14; this.lines[20][2]= 17;
this.lines[21][0] = 9; this.lines[21][1]= 0; this.lines[21][2]= 3;
this.lines[22][0] = 9; this.lines[22][1]= 4; this.lines[22][2]= 16;
this.lines[23][0] = 10; this.lines[23][1]= 0; this.lines[23][2]= 3;
this.lines[24][0] = 10; this.lines[24][1]= 4; this.lines[24][2]= 16;
this.lines[25][0] = 11; this.lines[25][1]= 0; this.lines[25][2]= 1;
this.lines[26][0] = 11; this.lines[26][1]= 2; this.lines[26][2]= 3;
this.lines[27][0] = 11; this.lines[27][1]= 5; this.lines[27][2]= 6;
this.lines[28][0] = 11; this.lines[28][1]= 7; this.lines[28][2]= 13;
this.lines[29][0] = 11; this.lines[29][1]= 14; this.lines[29][2]= 17;
this.lines[30][0] = 12; this.lines[30][1]= 1; this.lines[30][2]= 5;
this.lines[31][0] = 12; this.lines[31][1]= 7; this.lines[31][2]= 9;
this.lines[32][0] = 12; this.lines[32][1]= 15; this.lines[32][2]= 18;
this.lines[33][0] = 13; this.lines[33][1]= 7; this.lines[33][2]= 9;
this.lines[34][0] = 13; this.lines[34][1]= 16; this.lines[34][2]= 19;
this.lines[35][0] = 14; this.lines[35][1]= 7; this.lines[35][2]= 9;
this.lines[36][0] = 14; this.lines[36][1]= 10; this.lines[36][2]= 15;
this.lines[37][0] = 14; this.lines[37][1]= 17; this.lines[37][2]= 20;
this.lines[38][0] = 15; this.lines[38][1]= 7; this.lines[38][2]= 9;
this.lines[39][0] = 15; this.lines[39][1]= 18; this.lines[39][2]= 20;
this.lines[40][0] = 16; this.lines[40][1]= 7; this.lines[40][2]= 9;
this.lines[41][0] = 16; this.lines[41][1]= 10; this.lines[41][2]= 16;
this.lines[42][0] = 16; this.lines[42][1]= 19; this.lines[42][2]= 20;
this.lines[43][0] = 17; this.lines[43][1]= 7; this.lines[43][2]= 9;
this.lines[44][0] = 18; this.lines[44][1]= 7; this.lines[44][2]= 9;
this.lines[45][0] = 18; this.lines[45][1]= 10; this.lines[45][2]= 17;
break;
case 18: // ghost
this.numberOfLines = 54;
this.lines = new int[this.numberOfLines][3];
this.lines[0][0] = 1; this.lines[0][1] = 6; this.lines[0][2] = 8;
this.lines[1][0] = 2; this.lines[1][1] = 3; this.lines[1][2] = 6;
this.lines[2][0] = 2; this.lines[2][1] = 8; this.lines[2][2] = 9;
this.lines[3][0] = 3; this.lines[3][1] = 4; this.lines[3][2] = 5;
this.lines[4][0] = 3; this.lines[4][1] = 8; this.lines[4][2] = 10;
this.lines[5][0] = 3; this.lines[5][1] = 14; this.lines[5][2] = 15;
this.lines[6][0] = 4; this.lines[6][1] = 4; this.lines[6][2] = 6;
this.lines[7][0] = 4; this.lines[7][1] = 9; this.lines[7][2] = 11;
this.lines[8][0] = 4; this.lines[8][1] = 13; this.lines[8][2] = 14;
this.lines[9][0] = 4; this.lines[9][1]= 15; this.lines[9][2]= 17;
this.lines[10][0] = 5; this.lines[10][1]= 5; this.lines[10][2]= 7;
this.lines[11][0] = 5; this.lines[11][1]= 10; this.lines[11][2]= 11;
this.lines[12][0] = 5; this.lines[12][1]= 12; this.lines[12][2]= 14;
this.lines[13][0] = 5; this.lines[13][1]= 17; this.lines[13][2]= 18;
this.lines[14][0] = 6; this.lines[14][1]= 6; this.lines[14][2]= 8;
this.lines[15][0] = 6; this.lines[15][1]= 11; this.lines[15][2]= 12;
this.lines[16][0] = 6; this.lines[16][1]= 16; this.lines[16][2]= 17;
this.lines[17][0] = 7; this.lines[17][1]= 8; this.lines[17][2]= 9;
this.lines[18][0] = 7; this.lines[18][1]= 15; this.lines[18][2]= 17;
this.lines[19][0] = 8; this.lines[19][1]= 3; this.lines[19][2]= 6;
this.lines[20][0] = 8; this.lines[20][1]= 7; this.lines[20][2]= 9;
this.lines[21][0] = 8; this.lines[21][1]= 15; this.lines[21][2]= 16;
this.lines[22][0] = 9; this.lines[22][1]= 1; this.lines[22][2]= 4;
this.lines[23][0] = 9; this.lines[23][1]= 5; this.lines[23][2]= 8;
this.lines[24][0] = 9; this.lines[24][1]= 10; this.lines[24][2]= 12;
this.lines[25][0] = 9; this.lines[25][1]= 15; this.lines[25][2]= 16;
this.lines[26][0] = 10; this.lines[26][1]= 0; this.lines[26][2]= 6;
this.lines[27][0] = 10; this.lines[27][1]= 7; this.lines[27][2]= 10;
this.lines[28][0] = 10; this.lines[28][1]= 12; this.lines[28][2]= 13;
this.lines[29][0] = 10; this.lines[29][1]= 15; this.lines[29][2]= 17;
this.lines[30][0] = 11; this.lines[30][1]= 2; this.lines[30][2]= 4;
this.lines[31][0] = 11; this.lines[31][1]= 5; this.lines[31][2]= 8;
this.lines[32][0] = 11; this.lines[32][1]= 11; this.lines[32][2]= 12;
this.lines[33][0] = 11; this.lines[33][1]= 13; this.lines[33][2]= 14;
this.lines[34][0] = 11; this.lines[34][1]= 17; this.lines[34][2]= 20;
this.lines[35][0] = 12; this.lines[35][1]= 3; this.lines[35][2]= 7;
this.lines[36][0] = 12; this.lines[36][1]= 8; this.lines[36][2]= 9;
this.lines[37][0] = 12; this.lines[37][1]= 11; this.lines[37][2]= 12;
this.lines[38][0] = 12; this.lines[38][1]= 13; this.lines[38][2]= 14;
this.lines[39][0] = 12; this.lines[39][1]= 18; this.lines[39][2]= 19;
this.lines[40][0] = 13; this.lines[40][1]= 8; this.lines[40][2]= 9;
this.lines[41][0] = 13; this.lines[41][1]= 11; this.lines[41][2]= 12;
this.lines[42][0] = 13; this.lines[42][1]= 14; this.lines[42][2]= 15;
this.lines[43][0] = 13; this.lines[43][1]= 18; this.lines[43][2]= 19;
this.lines[44][0] = 14; this.lines[44][1]= 7; this.lines[44][2]= 8;
this.lines[45][0] = 14; this.lines[45][1]= 10; this.lines[45][2]= 11;
this.lines[46][0] = 14; this.lines[46][1]= 15; this.lines[46][2]= 18;
this.lines[47][0] = 15; this.lines[47][1]= 6; this.lines[47][2]= 8;
this.lines[48][0] = 15; this.lines[48][1]= 10; this.lines[48][2]= 11;
this.lines[49][0] = 16; this.lines[49][1]= 5; this.lines[49][2]= 7;
this.lines[50][0] = 16; this.lines[50][1]= 9; this.lines[50][2]= 10;
this.lines[51][0] = 17; this.lines[51][1]= 4; this.lines[51][2]= 6;
this.lines[52][0] = 17; this.lines[52][1]= 8; this.lines[52][2]= 10;
this.lines[53][0] = 18; this.lines[53][1]= 5; this.lines[53][2]= 8;
break;
case 19: // merchant
this.numberOfLines = 47;
this.lines = new int[this.numberOfLines][3];
this.lines[0][0] = 1; this.lines[0][1] = 3; this.lines[0][2] = 4;
this.lines[1][0] = 1; this.lines[1][1] = 5; this.lines[1][2] = 13;
this.lines[2][0] = 2; this.lines[2][1] = 3; this.lines[2][2] = 4;
this.lines[3][0] = 2; this.lines[3][1] = 5; this.lines[3][2] = 13;
this.lines[4][0] = 2; this.lines[4][1] = 19; this.lines[4][2] = 20;
this.lines[5][0] = 3; this.lines[5][1] = 11; this.lines[5][2] = 13;
this.lines[6][0] = 3; this.lines[6][1] = 17; this.lines[6][2] = 20;
this.lines[7][0] = 4; this.lines[7][1] = 11; this.lines[7][2] = 13;
this.lines[8][0] = 4; this.lines[8][1] = 15; this.lines[8][2] = 20;
this.lines[9][0] = 5; this.lines[9][1] = 3; this.lines[9][2]= 4;
this.lines[10][0] = 5; this.lines[10][1]= 5; this.lines[10][2]= 18;
this.lines[11][0] = 5; this.lines[11][1]= 19; this.lines[11][2]= 20;
this.lines[12][0] = 6; this.lines[12][1]= 2; this.lines[12][2]= 6;
this.lines[13][0] = 6; this.lines[13][1]= 8; this.lines[13][2]= 16;
this.lines[14][0] = 7; this.lines[14][1]= 1; this.lines[14][2]= 7;
this.lines[15][0] = 7; this.lines[15][1]= 8; this.lines[15][2]= 9;
this.lines[16][0] = 7; this.lines[16][1]= 11; this.lines[16][2]= 13;
this.lines[17][0] = 7; this.lines[17][1]= 14; this.lines[17][2]= 16;
this.lines[18][0] = 8; this.lines[18][1]= 2; this.lines[18][2]= 5;
this.lines[19][0] = 8; this.lines[19][1]= 6; this.lines[19][2]= 7;
this.lines[20][0] = 8; this.lines[20][1]= 8; this.lines[20][2]= 9;
this.lines[21][0] = 8; this.lines[21][1]= 11; this.lines[21][2]= 13;
this.lines[22][0] = 8; this.lines[22][1]= 14; this.lines[22][2]= 16;
this.lines[23][0] = 9; this.lines[23][1]= 3; this.lines[23][2]= 9;
this.lines[24][0] = 9; this.lines[24][1]= 11; this.lines[24][2]= 13;
this.lines[25][0] = 9; this.lines[25][1]= 15; this.lines[25][2]= 18;
this.lines[26][0] = 9; this.lines[26][1]= 19; this.lines[26][2]= 20;
this.lines[27][0] = 10; this.lines[27][1]= 3; this.lines[27][2]= 4;
this.lines[28][0] = 10; this.lines[28][1]= 11; this.lines[28][2]= 13;
this.lines[29][0] = 10; this.lines[29][1]= 15; this.lines[29][2]= 20;
this.lines[30][0] = 11; this.lines[30][1]= 11; this.lines[30][2]= 13;
this.lines[31][0] = 11; this.lines[31][1]= 16; this.lines[31][2]= 20;
this.lines[32][0] = 12; this.lines[32][1]= 11; this.lines[32][2]= 13;
this.lines[33][0] = 12; this.lines[33][1]= 19; this.lines[33][2]= 20;
this.lines[34][0] = 13; this.lines[34][1]= 2; this.lines[34][2]= 3;
this.lines[35][0] = 13; this.lines[35][1]= 11; this.lines[35][2]= 13;
this.lines[36][0] = 14; this.lines[36][1]= 1; this.lines[36][2]= 4;
this.lines[37][0] = 14; this.lines[37][1]= 11; this.lines[37][2]= 13;
this.lines[38][0] = 15; this.lines[38][1]= 0; this.lines[38][2]= 2;
this.lines[39][0] = 15; this.lines[39][1]= 3; this.lines[39][2]= 5;
this.lines[40][0] = 15; this.lines[40][1]= 6; this.lines[40][2]= 7;
this.lines[41][0] = 15; this.lines[41][1]= 11; this.lines[41][2]= 13;
this.lines[42][0] = 16; this.lines[42][1]= 1; this.lines[42][2]= 4;
this.lines[43][0] = 16; this.lines[43][1]= 9; this.lines[43][2]= 13;
this.lines[44][0] = 17; this.lines[44][1]= 2; this.lines[44][2]= 3;
this.lines[45][0] = 17; this.lines[45][1]= 8; this.lines[45][2]= 13;
this.lines[46][0] = 18; this.lines[46][1]= 8; this.lines[46][2]= 12;
break;
case 20: // sword
this.numberOfLines = 36;
this.lines = new int[this.numberOfLines][3];
this.lines[0][0] = 2; this.lines[0][1] = 16; this.lines[0][2] = 18;
this.lines[1][0] = 3; this.lines[1][1] = 16; this.lines[1][2] = 18;
this.lines[2][0] = 4; this.lines[2][1] = 7; this.lines[2][2] = 8;
this.lines[3][0] = 4; this.lines[3][1] = 14; this.lines[3][2] = 18;
this.lines[4][0] = 5; this.lines[4][1] = 8; this.lines[4][2] = 9;
this.lines[5][0] = 5; this.lines[5][1] = 13; this.lines[5][2] = 16;
this.lines[6][0] = 6; this.lines[6][1] = 9; this.lines[6][2] = 10;
this.lines[7][0] = 6; this.lines[7][1] = 12; this.lines[7][2] = 15;
this.lines[8][0] = 7; this.lines[8][1] = 10; this.lines[8][2] = 14;
this.lines[9][0] = 8; this.lines[9][1]= 9; this.lines[9][2]= 10;
this.lines[10][0] = 8; this.lines[10][1]= 11; this.lines[10][2]= 13;
this.lines[11][0] = 9; this.lines[11][1]= 8; this.lines[11][2]= 9;
this.lines[12][0] = 9; this.lines[12][1]= 10; this.lines[12][2]= 11;
this.lines[13][0] = 9; this.lines[13][1]= 12; this.lines[13][2]= 13;
this.lines[14][0] = 10; this.lines[14][1]= 7; this.lines[14][2]= 8;
this.lines[15][0] = 10; this.lines[15][1]= 9; this.lines[15][2]= 10;
this.lines[16][0] = 10; this.lines[16][1]= 11; this.lines[16][2]= 12;
this.lines[17][0] = 10; this.lines[17][1]= 13; this.lines[17][2]= 14;
this.lines[18][0] = 11; this.lines[18][1]= 6; this.lines[18][2]= 7;
this.lines[19][0] = 11; this.lines[19][1]= 8; this.lines[19][2]= 9;
this.lines[20][0] = 11; this.lines[20][1]= 10; this.lines[20][2]= 11;
this.lines[21][0] = 11; this.lines[21][1]= 14; this.lines[21][2]= 15;
this.lines[22][0] = 12; this.lines[22][1]= 5; this.lines[22][2]= 6;
this.lines[23][0] = 12; this.lines[23][1]= 7; this.lines[23][2]= 8;
this.lines[24][0] = 12; this.lines[24][1]= 9; this.lines[24][2]= 10;
this.lines[25][0] = 12; this.lines[25][1]= 15; this.lines[25][2]= 16;
this.lines[26][0] = 13; this.lines[26][1]= 4; this.lines[26][2]= 5;
this.lines[27][0] = 13; this.lines[27][1]= 6; this.lines[27][2]= 7;
this.lines[28][0] = 13; this.lines[28][1]= 8; this.lines[28][2]= 9;
this.lines[29][0] = 14; this.lines[29][1]= 3; this.lines[29][2]= 4;
this.lines[30][0] = 14; this.lines[30][1]= 5; this.lines[30][2]= 6;
this.lines[31][0] = 14; this.lines[31][1]= 7; this.lines[31][2]= 8;
this.lines[32][0] = 15; this.lines[32][1]= 3; this.lines[32][2]= 5;
this.lines[33][0] = 15; this.lines[33][1]= 6; this.lines[33][2]= 7;
this.lines[34][0] = 16; this.lines[34][1]= 2; this.lines[34][2]= 6;
this.lines[35][0] = 17; this.lines[35][1]= 2; this.lines[35][2]= 4;
break;
case 21: // shield
this.numberOfLines = 48;
this.lines = new int[this.numberOfLines][3];
this.lines[0][0] = 2; this.lines[0][1] = 5; this.lines[0][2] = 11;
this.lines[1][0] = 3; this.lines[1][1] = 4; this.lines[1][2] = 5;
this.lines[2][0] = 3; this.lines[2][1] = 11; this.lines[2][2] = 12;
this.lines[3][0] = 4; this.lines[3][1] = 3; this.lines[3][2] = 4;
this.lines[4][0] = 4; this.lines[4][1] = 12; this.lines[4][2] = 13;
this.lines[5][0] = 5; this.lines[5][1] = 2; this.lines[5][2] = 3;
this.lines[6][0] = 5; this.lines[6][1] = 13; this.lines[6][2] = 14;
this.lines[7][0] = 6; this.lines[7][1] = 2; this.lines[7][2] = 3;
this.lines[8][0] = 6; this.lines[8][1] = 8; this.lines[8][2] = 12;
this.lines[9][0] = 6; this.lines[9][1]= 14; this.lines[9][2]= 15;
this.lines[10][0] = 7; this.lines[10][1] = 2; this.lines[10][2] = 3;
this.lines[11][0] = 7; this.lines[11][1]= 5; this.lines[11][2]= 7;
this.lines[12][0] = 7; this.lines[12][1]= 9; this.lines[12][2]= 11;
this.lines[13][0] = 7; this.lines[13][1]= 15; this.lines[13][2]= 16;
this.lines[14][0] = 8; this.lines[14][1] = 2; this.lines[14][2] = 3;
this.lines[15][0] = 8; this.lines[15][1]= 4; this.lines[15][2]= 5;
this.lines[16][0] = 8; this.lines[16][1]= 7; this.lines[16][2]= 8;
this.lines[17][0] = 8; this.lines[17][1]= 9; this.lines[17][2]= 11;
this.lines[18][0] = 8; this.lines[18][1]= 13; this.lines[18][2]= 14;
this.lines[19][0] = 8; this.lines[19][1]= 16; this.lines[19][2]= 17;
this.lines[20][0] = 9; this.lines[20][1] = 2; this.lines[20][2] = 3;
this.lines[21][0] = 9; this.lines[21][1]= 4; this.lines[21][2]= 5;
this.lines[22][0] = 9; this.lines[22][1]= 8; this.lines[22][2]= 14;
this.lines[23][0] = 9; this.lines[23][1]= 17; this.lines[23][2]= 18;
this.lines[24][0] = 10; this.lines[24][1] = 2; this.lines[24][2] = 3;
this.lines[25][0] = 10; this.lines[25][1]= 4; this.lines[25][2]= 5;
this.lines[26][0] = 10; this.lines[26][1]= 8; this.lines[26][2]= 14;
this.lines[27][0] = 10; this.lines[27][1]= 17; this.lines[27][2]= 18;
this.lines[28][0] = 11; this.lines[28][1] = 2; this.lines[28][2] = 3;
this.lines[29][0] = 11; this.lines[29][1]= 4; this.lines[29][2]= 5;
this.lines[30][0] = 11; this.lines[30][1]= 7; this.lines[30][2]= 8;
this.lines[31][0] = 11; this.lines[31][1]= 9; this.lines[31][2]= 11;
this.lines[32][0] = 11; this.lines[32][1]= 13; this.lines[32][2]= 14;
this.lines[33][0] = 11; this.lines[33][1]= 16; this.lines[33][2]= 17;
this.lines[34][0] = 12; this.lines[34][1] = 2; this.lines[34][2] = 3;
this.lines[35][0] = 12; this.lines[35][1]= 5; this.lines[35][2]= 7;
this.lines[36][0] = 12; this.lines[36][1]= 9; this.lines[36][2]= 11;
this.lines[37][0] = 12; this.lines[37][1]= 15; this.lines[37][2]= 16;
this.lines[38][0] = 13; this.lines[38][1] = 2; this.lines[38][2] = 3;
this.lines[39][0] = 13; this.lines[39][1]= 8; this.lines[39][2]= 12;
this.lines[40][0] = 13; this.lines[40][1]= 14; this.lines[40][2]= 15;
this.lines[41][0] = 14; this.lines[41][1] = 2; this.lines[41][2] = 3;
this.lines[42][0] = 14; this.lines[42][1]= 13; this.lines[42][2]= 14;
this.lines[43][0] = 15; this.lines[43][1]= 3; this.lines[43][2]= 4;
this.lines[44][0] = 15; this.lines[44][1]= 12; this.lines[44][2]= 13;
this.lines[45][0] = 16; this.lines[45][1]= 4; this.lines[45][2]= 5;
this.lines[46][0] = 16; this.lines[46][1]= 11; this.lines[46][2]= 12;
this.lines[47][0] = 17; this.lines[47][1]= 5; this.lines[47][2]= 11;
break;
case 22: // ring
this.numberOfLines = 16;
this.lines = new int[this.numberOfLines][3];
this.lines[0][0] = 6; this.lines[0][1] = 10; this.lines[0][2] = 12;
this.lines[1][0] = 7; this.lines[1][1] = 8; this.lines[1][2] = 14;
this.lines[2][0] = 8; this.lines[2][1] = 5; this.lines[2][2] = 6;
this.lines[3][0] = 8; this.lines[3][1] = 8; this.lines[3][2] = 10;
this.lines[4][0] = 8; this.lines[4][1] = 12; this.lines[4][2] = 14;
this.lines[5][0] = 9; this.lines[5][1] = 4; this.lines[5][2] = 5;
this.lines[6][0] = 9; this.lines[6][1] = 6; this.lines[6][2] = 9;
this.lines[7][0] = 9; this.lines[7][1] = 13; this.lines[7][2] = 15;
this.lines[8][0] = 10; this.lines[8][1] = 4; this.lines[8][2] = 5;
this.lines[9][0] = 10; this.lines[9][1]= 6; this.lines[9][2]= 9;
this.lines[10][0] = 10; this.lines[10][1] = 13; this.lines[10][2] = 15;
this.lines[11][0] = 11; this.lines[11][1]= 5; this.lines[11][2]= 6;
this.lines[12][0] = 11; this.lines[12][1]= 8; this.lines[12][2]= 10;
this.lines[13][0] = 11; this.lines[13][1]= 12; this.lines[13][2]= 14;
this.lines[14][0] = 12; this.lines[14][1] = 8; this.lines[14][2] = 14;
this.lines[15][0] = 13; this.lines[15][1]= 10; this.lines[15][2]= 12;
break;
case 23: // diamond
this.numberOfLines = 48;
this.lines = new int[this.numberOfLines][3];
this.lines[0][0] = 4; this.lines[0][1] = 6; this.lines[0][2] = 8;
this.lines[1][0] = 5; this.lines[1][1] = 4; this.lines[1][2] = 6;
this.lines[2][0] = 5; this.lines[2][1] = 8; this.lines[2][2] = 10;
this.lines[3][0] = 6; this.lines[3][1] = 2; this.lines[3][2] = 4;
this.lines[4][0] = 6; this.lines[4][1] = 6; this.lines[4][2] = 7;
this.lines[5][0] = 6; this.lines[5][1] = 10; this.lines[5][2] = 12;
this.lines[6][0] = 7; this.lines[6][1] = 2; this.lines[6][2] = 3;
this.lines[7][0] = 7; this.lines[7][1] = 6; this.lines[7][2] = 7;
this.lines[8][0] = 7; this.lines[8][1] = 12; this.lines[8][2] = 14;
this.lines[9][0] = 8; this.lines[9][1] = 2; this.lines[9][2] = 3;
this.lines[10][0] = 8; this.lines[10][1] = 7; this.lines[10][2] = 8;
this.lines[11][0] = 8; this.lines[11][1] = 14; this.lines[11][2]= 16;
this.lines[12][0] = 9; this.lines[12][1] = 2; this.lines[12][2]= 3;
this.lines[13][0] = 9; this.lines[13][1] = 8; this.lines[13][2]= 9;
this.lines[14][0] = 9; this.lines[14][1] = 16; this.lines[14][2] = 18;
this.lines[15][0] = 10; this.lines[15][1] = 2; this.lines[15][2]= 3;
this.lines[16][0] = 10; this.lines[16][1] = 8; this.lines[16][2]= 9;
this.lines[17][0] = 10; this.lines[17][1] = 16; this.lines[17][2]= 18;
this.lines[18][0] = 11; this.lines[18][1] = 2; this.lines[18][2]= 3;
this.lines[19][0] = 11; this.lines[19][1] = 7; this.lines[19][2]= 8;
this.lines[20][0] = 11; this.lines[20][1] = 14; this.lines[20][2] = 16;
this.lines[21][0] = 12; this.lines[21][1] = 2; this.lines[21][2]= 3;
this.lines[22][0] = 12; this.lines[22][1] = 6; this.lines[22][2]= 7;
this.lines[23][0] = 12; this.lines[23][1] = 12; this.lines[23][2]= 14;
this.lines[24][0] = 13; this.lines[24][1] = 2; this.lines[24][2] = 4;
this.lines[25][0] = 13; this.lines[25][1] = 6; this.lines[25][2]= 7;
this.lines[26][0] = 13; this.lines[26][1] = 10; this.lines[26][2]= 12;
this.lines[27][0] = 14; this.lines[27][1] = 4; this.lines[27][2]= 6;
this.lines[28][0] = 14; this.lines[28][1] = 8; this.lines[28][2] = 10;
this.lines[29][0] = 15; this.lines[29][1] = 6; this.lines[29][2]= 8;
break;
case 24: // Warrior cl3
this.numberOfLines = 26;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 63; clPlacement[1] = 73;
this.lines[bl][0] = 1; this.lines[bl][1] = 7; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 7; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 7; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 2; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 7; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 7; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 7; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 2; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 7; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 7; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 7; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 7; this.lines[bl][2] = 10; bl++;
break;
case 25: // Cleric cl3
this.numberOfLines = 37;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 61; clPlacement[1] = 85;
this.lines[bl][0] = 1; this.lines[bl][1] = 8; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 8; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 3; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 2; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 8; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 1; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 8; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 8; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 2; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 3; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 10; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 16; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 1; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 3; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 3; this.lines[bl][2] = 4;
break;
case 26: // Mage cl3
this.numberOfLines = 41;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 70; clPlacement[1] = 85;
this.lines[bl][0] = 1; this.lines[bl][1] = 7; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 14; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 9; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 15; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 9; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 9; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 1; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 6; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 4; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 9; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 9; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 9; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 15; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 14; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
break;
case 27: // Rogue cl3
this.numberOfLines = 48;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 69; clPlacement[1] = 83;
this.lines[bl][0] = 1; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 6; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 6; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 16; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 8; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 14; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 9; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 9; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 8; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 6; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 1; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 11; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
break;
case 28: // Warrior cl4
this.numberOfLines = 30;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 62; clPlacement[1] = 73;
this.lines[bl][0] = 0; this.lines[bl][1] = 7; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 7; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 0; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 7; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 0; this.lines[bl][2] = 1; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 7; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 0; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 7; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 0; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 7; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 0; this.lines[bl][2] = 1; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 7; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 0; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 7; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 7; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 7; this.lines[bl][2] = 11; bl++;
break;
case 29: // Cleric cl4
this.numberOfLines = 42;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 61; clPlacement[1] = 85;
this.lines[bl][0] = 0; this.lines[bl][1] = 8; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 8; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 16; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 11; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 16; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 10; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 9; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 1; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 8; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 8; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 0; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 8; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 8; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 1; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 9; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 10; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 11; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 0; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 2; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
break;
case 30: // Mage cl4
this.numberOfLines = 52;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 69; clPlacement[1] = 83;
this.lines[bl][0] = 0; this.lines[bl][1] = 7; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 7; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 14; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 8; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 15; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 8; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 16; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 2; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 8; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 8; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 0; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 8; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 8; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 2; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 8; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 16; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 8; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 15; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 8; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 14; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 18; this.lines[bl][2] = 19; bl++;
break;
case 31: // Rogue cl4
this.numberOfLines = 58;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 69; clPlacement[1] = 83;
this.lines[bl][0] = 0; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 0; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 6; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 6; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 8; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 9; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 9; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 0; this.lines[bl][2] = 1; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 8; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 6; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 4; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 0; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 16; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 0; this.lines[bl][2] = 1; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
break;
case 32: // possessed Sword
this.numberOfLines = 7;
this.lines = new int[this.numberOfLines][3];
bl = 0;
this.lines[bl][0] = 1; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
break;
case 33: // possessed Shield
this.numberOfLines = 8;
this.lines = new int[this.numberOfLines][3];
bl = 0;
this.lines[bl][0] = 1; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
break;
case 34: // possessed Ring
this.numberOfLines = 4;
this.lines = new int[this.numberOfLines][3];
bl = 0;
this.lines[bl][0] = 2; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 2; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
break;
case 35: // possessed diamond
this.numberOfLines = 9;
this.lines = new int[this.numberOfLines][3];
bl = 0;
this.lines[bl][0] = 1; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 2; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 4; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
break;
case 36: // upper level Orc
this.numberOfLines = 35;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 59; clPlacement[1] = 73;
this.lines[bl][0] = 1; this.lines[bl][1] = 7; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 7; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 11; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 0; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 7; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 13; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 7; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 13; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 4; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 7; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 13; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 7; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 13; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 0; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 7; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 13; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 1; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
break;
case 37: // upper level Zombie
this.numberOfLines = 45;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 57; clPlacement[1] = 83;
this.lines[bl][0] = 2; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 10; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 10; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 16; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 3; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 8; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 1; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 8; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 3; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 8; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 0; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 5; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 10; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 5; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 16; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 12; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 8; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 13; this.lines[bl][2] = 14; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 14; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 9; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 10; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
break;
case 38: // upper level Goblin
this.numberOfLines = 40;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 63; clPlacement[1] = 72;
this.lines[bl][0] = 1; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 11; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 9; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 7; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 1; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 6; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 1; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 7; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 1; this.lines[bl][2] = 3; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 9; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 11; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 13; this.lines[bl][2] = 15; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 7; this.lines[bl][2] = 9; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 8; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 19; this.lines[bl][1] = 9; this.lines[bl][2] = 11; bl++;
break;
case 39: // upper level Serpent
this.numberOfLines = 66;
this.lines = new int[this.numberOfLines][3];
bl = 0;
clPlacement[0] = 77; clPlacement[1] = 91;
this.lines[bl][0] = 0; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 0; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 0; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 1; this.lines[bl][1] = 17; this.lines[bl][2] = 19; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 15; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 2; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 6; this.lines[bl][2] = 17; bl++;
this.lines[bl][0] = 3; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 4; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 7; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 11; this.lines[bl][2] = 12; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 15; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 5; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 6; this.lines[bl][2] = 7; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 9; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 12; this.lines[bl][2] = 13; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 15; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 6; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 7; this.lines[bl][1] = 17; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 3; this.lines[bl][2] = 8; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 8; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 6; this.lines[bl][2] = 10; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 13; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 9; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 1; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 8; this.lines[bl][2] = 11; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 13; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 10; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 0; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 11; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 0; this.lines[bl][2] = 2; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 3; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 9; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 12; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 1; this.lines[bl][2] = 4; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 10; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 13; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 2; this.lines[bl][2] = 5; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 10; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 14; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 3; this.lines[bl][2] = 6; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 13; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 15; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 14; this.lines[bl][2] = 16; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 17; this.lines[bl][2] = 18; bl++;
this.lines[bl][0] = 16; this.lines[bl][1] = 19; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 17; this.lines[bl][1] = 16; this.lines[bl][2] = 20; bl++;
this.lines[bl][0] = 18; this.lines[bl][1] = 18; this.lines[bl][2] = 20; bl++;
break;
}
} // end of sketch constructor
public int getNumberOfLines() {
return this.numberOfLines;
}
public int[] getLine(int column) {
int[] line = new int[3];
line[0] = this.lines[column][0];
line[1] = this.lines[column][1];
line[2] = this.lines[column][2];
return line;
}
public int[] getclPlacement() {
return this.clPlacement;
}
}
| JKisling/RPG_Grid_Brawl | Sketch.java |
123 | /**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode() {}
* ListNode(int val) { this.val = val; }
* ListNode(int val, ListNode next) { this.val = val; this.next = next; }
* }
*/
class Solution {
public ListNode removeNthFromEnd(ListNode head, int n) {
ListNode start = new ListNode();
start.next = head;
ListNode fast = start;
ListNode slow = start;
for(int i = 1; i <= n; ++i)
fast = fast.next;
while(fast.next != null)
{
fast = fast.next;
slow = slow.next;
}
slow.next = slow.next.next;
return start.next;
}
}
| bhoomi0304/LeetCode | Remove_nth_node_from_end_of_linked_list.java |
124 | //
// ========================================================================
// Copyright (c) 2018-2019 HuJian/Pandening soft collection.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the #{license} Public License #{version}
// EG:
// The Eclipse Public License is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// The Apache License v2.0 is available at
// http://www.opensource.org/licenses/apache2.0.php
//
// You may elect to redistribute this code under either of these licenses.
// You should bear the consequences of using the software (named 'java-debug-tool')
// and any modify must be create an new pull request and attach an text to describe
// the change detail.
// ========================================================================
//
| pandening/Java-debug-tool | bin/btrace/BlockingThreadCheck.java |
125 | import com.google.common.collect.Lists;
import java.io.File;
import java.io.FileWriter;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Callable;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class b
{
private static final Logger a = ;
private final String b;
private final Throwable c;
private final c d = new c(this, "System Details");
private final List<c> e = Lists.newArrayList();
private File f;
private boolean g = true;
private StackTraceElement[] h = new StackTraceElement[0];
private boolean reported = false;
public b(String descriptionIn, Throwable causeThrowable)
{
this.b = descriptionIn;
this.c = causeThrowable;
h();
}
private void h()
{
this.d.a("Minecraft Version", new Callable()
{
public String a()
{
return "1.9";
}
});
this.d.a("Operating System", new Callable()
{
public String a()
{
return System.getProperty("os.name") + " (" + System.getProperty("os.arch") + ") version " + System.getProperty("os.version");
}
});
this.d.a("Java Version", new Callable()
{
public String a()
{
return System.getProperty("java.version") + ", " + System.getProperty("java.vendor");
}
});
this.d.a("Java VM Version", new Callable()
{
public String a()
{
return System.getProperty("java.vm.name") + " (" + System.getProperty("java.vm.info") + "), " + System.getProperty("java.vm.vendor");
}
});
this.d.a("Memory", new Callable()
{
public String a()
{
Runtime runtime = Runtime.getRuntime();
long i = runtime.maxMemory();
long j = runtime.totalMemory();
long k = runtime.freeMemory();
long l = i / 1024L / 1024L;
long i1 = j / 1024L / 1024L;
long j1 = k / 1024L / 1024L;
return k + " bytes (" + j1 + " MB) / " + j + " bytes (" + i1 + " MB) up to " + i + " bytes (" + l + " MB)";
}
});
this.d.a("JVM Flags", new Callable()
{
public String a()
{
RuntimeMXBean runtimemxbean = ManagementFactory.getRuntimeMXBean();
List<String> list = runtimemxbean.getInputArguments();
int i = 0;
StringBuilder stringbuilder = new StringBuilder();
for (String s : list) {
if (s.startsWith("-X"))
{
if (i++ > 0) {
stringbuilder.append(" ");
}
stringbuilder.append(s);
}
}
return String.format("%d total; %s", new Object[] { Integer.valueOf(i), stringbuilder.toString() });
}
});
this.d.a("IntCache", new Callable()
{
public String a()
throws Exception
{
return axt.b();
}
});
if (Reflector.FMLCommonHandler_enhanceCrashReport.exists())
{
Object instance = Reflector.call(Reflector.FMLCommonHandler_instance, new Object[0]);
Reflector.callString(instance, Reflector.FMLCommonHandler_enhanceCrashReport, new Object[] { this, this.d });
}
}
public String a()
{
return this.b;
}
public Throwable b()
{
return this.c;
}
public void a(StringBuilder builder)
{
if (((this.h == null) || (this.h.length <= 0)) && (!this.e.isEmpty())) {
this.h = ((StackTraceElement[])ArrayUtils.subarray(((c)this.e.get(0)).a(), 0, 1));
}
if ((this.h != null) && (this.h.length > 0))
{
builder.append("-- Head --\n");
builder.append("Stacktrace:\n");
for (StackTraceElement stacktraceelement : this.h)
{
builder.append("\t").append("at ").append(stacktraceelement.toString());
builder.append("\n");
}
builder.append("\n");
}
for (c crashreportcategory : this.e)
{
crashreportcategory.a(builder);
builder.append("\n\n");
}
this.d.a(builder);
}
public String d()
{
StringWriter stringwriter = null;
PrintWriter printwriter = null;
Throwable throwable = this.c;
if (throwable.getMessage() == null)
{
if ((throwable instanceof NullPointerException)) {
throwable = new NullPointerException(this.b);
} else if ((throwable instanceof StackOverflowError)) {
throwable = new StackOverflowError(this.b);
} else if ((throwable instanceof OutOfMemoryError)) {
throwable = new OutOfMemoryError(this.b);
}
throwable.setStackTrace(this.c.getStackTrace());
}
String s = throwable.toString();
try
{
stringwriter = new StringWriter();
printwriter = new PrintWriter(stringwriter);
throwable.printStackTrace(printwriter);
s = stringwriter.toString();
}
finally
{
IOUtils.closeQuietly(stringwriter);
IOUtils.closeQuietly(printwriter);
}
return s;
}
public String e()
{
if (!this.reported)
{
this.reported = true;
CrashReporter.onCrashReport(this, this.d);
}
StringBuilder stringbuilder = new StringBuilder();
stringbuilder.append("---- Minecraft Crash Report ----\n");
Reflector.call(Reflector.BlamingTransformer_onCrash, new Object[] { stringbuilder });
Reflector.call(Reflector.CoreModManager_onCrash, new Object[] { stringbuilder });
stringbuilder.append("// ");
stringbuilder.append(i());
stringbuilder.append("\n\n");
stringbuilder.append("Time: ");
stringbuilder.append(new SimpleDateFormat().format(new Date()));
stringbuilder.append("\n");
stringbuilder.append("Description: ");
stringbuilder.append(this.b);
stringbuilder.append("\n\n");
stringbuilder.append(d());
stringbuilder.append("\n\nA detailed walkthrough of the error, its code path and all known details is as follows:\n");
for (int i = 0; i < 87; i++) {
stringbuilder.append("-");
}
stringbuilder.append("\n\n");
a(stringbuilder);
return stringbuilder.toString();
}
public File f()
{
return this.f;
}
public boolean a(File toFile)
{
if (this.f != null) {
return false;
}
if (toFile.getParentFile() != null) {
toFile.getParentFile().mkdirs();
}
try
{
FileWriter filewriter = new FileWriter(toFile);
filewriter.write(e());
filewriter.close();
this.f = toFile;
return true;
}
catch (Throwable throwable)
{
a.error("Could not save crash report to " + toFile, throwable);
}
return false;
}
public c g()
{
return this.d;
}
public c a(String name)
{
return a(name, 1);
}
public c a(String categoryName, int stacktraceLength)
{
c crashreportcategory = new c(this, categoryName);
if (this.g)
{
int i = crashreportcategory.a(stacktraceLength);
StackTraceElement[] astacktraceelement = this.c.getStackTrace();
StackTraceElement stacktraceelement = null;
StackTraceElement stacktraceelement1 = null;
int j = astacktraceelement.length - i;
if (j < 0) {
System.out.println("Negative index in crash report handler (" + astacktraceelement.length + "/" + i + ")");
}
if ((astacktraceelement != null) && (0 <= j) && (j < astacktraceelement.length))
{
stacktraceelement = astacktraceelement[j];
if (astacktraceelement.length + 1 - i < astacktraceelement.length) {
stacktraceelement1 = astacktraceelement[(astacktraceelement.length + 1 - i)];
}
}
this.g = crashreportcategory.a(stacktraceelement, stacktraceelement1);
if ((i > 0) && (!this.e.isEmpty()))
{
c crashreportcategory1 = (c)this.e.get(this.e.size() - 1);
crashreportcategory1.b(i);
}
else if ((astacktraceelement != null) && (astacktraceelement.length >= i) && (0 <= j) && (j < astacktraceelement.length))
{
this.h = new StackTraceElement[j];
System.arraycopy(astacktraceelement, 0, this.h, 0, this.h.length);
}
else
{
this.g = false;
}
}
this.e.add(crashreportcategory);
return crashreportcategory;
}
private static String i()
{
String[] astring = { "Who set us up the TNT?", "Everything's going to plan. No, really, that was supposed to happen.", "Uh... Did I do that?", "Oops.", "Why did you do that?", "I feel sad now :(", "My bad.", "I'm sorry, Dave.", "I let you down. Sorry :(", "On the bright side, I bought you a teddy bear!", "Daisy, daisy...", "Oh - I know what I did wrong!", "Hey, that tickles! Hehehe!", "I blame Dinnerbone.", "You should try our sister game, Minceraft!", "Don't be sad. I'll do better next time, I promise!", "Don't be sad, have a hug! <3", "I just don't know what went wrong :(", "Shall we play a game?", "Quite honestly, I wouldn't worry myself about that.", "I bet Cylons wouldn't have this problem.", "Sorry :(", "Surprise! Haha. Well, this is awkward.", "Would you like a cupcake?", "Hi. I'm Minecraft, and I'm a crashaholic.", "Ooh. Shiny.", "This doesn't make any sense!", "Why is it breaking :(", "Don't do that.", "Ouch. That hurt :(", "You're mean.", "This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]", "There are four lights!", "But it works on my machine." };
try
{
return astring[((int)(System.nanoTime() % astring.length))];
}
catch (Throwable var2) {}
return "Witty comment unavailable :(";
}
public static b a(Throwable causeIn, String descriptionIn)
{
b crashreport;
b crashreport;
if ((causeIn instanceof e)) {
crashreport = ((e)causeIn).a();
} else {
crashreport = new b(descriptionIn, causeIn);
}
return crashreport;
}
}
| MCLabyMod/LabyMod-1.9 | b.java |
126 | import java.io.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
class InsufficientAmountExceptiion extends Exception {
public InsufficientAmountExceptiion (String str) {
super(str);
}
}
class Bank {
String city;
float rateOfInterest;
Bank (String city, float rateOfInterest) {
this.city = city;
this.rateOfInterest = rateOfInterest;
}
public void getDetails() {
System.out.println("City: "+city);
System.out.println("Rate of interest: "+rateOfInterest);
}
public void printDetalis() {
System.out.println("City: "+city);
System.out.println("Rate of interest: "+rateOfInterest);
}
}
class SBI extends Bank {
String branchId;
String ifscCode;
AccountType accountType;
long balance;
long accountNumber;
SBI(String city, float rateOfInterest, String branchId, String ifscCode, AccountType accountType, long balance, long accountNumber) {
super(city, rateOfInterest);
this.branchId = branchId;
this.ifscCode = ifscCode;
this.accountType = accountType;
this.balance = balance;
this.accountNumber = accountNumber;
}
@Override
public void getDetails() {
super.getDetails();
}
@Override
public void printDetalis() {
System.out.println("\nBranch ID: " + branchId);
System.out.println("Branch IFSC Code: " + ifscCode);
super.printDetalis();
}
public void deposit(long amount) {
if (amount < 0) {
return;
}
balance += amount;
System.out.println("Balance after the deposit is: " + balance);
}
public void withdraw(long amount) throws InsufficientAmountExceptiion {
if (amount > balance) {
throw new InsufficientAmountExceptiion("Required balance is less than the amount you wish to withdraw");
} else {
balance -= amount;
System.out.println("Balance after the withdrawal: " + balance);
}
}
}
class BOI extends Bank {
String branchId;
String ifscCode;
AccountType accountType;
long balance;
long accountNumber;
BOI (String city, float rateOfInterest, String branchId, String ifscCode, AccountType accountType, long balance, long accountNumber) {
super(city, rateOfInterest);
this.branchId = branchId;
this.ifscCode = ifscCode;
this.accountType = accountType;
this.balance = balance;
this.accountNumber = accountNumber;
}
@Override
public void getDetails() {
super.getDetails();
}
@Override
public void printDetalis() {
System.out.println("\nBranch ID: "+branchId);
System.out.println("Branch IFSC Code: "+ifscCode);
super.printDetalis();
}
public void deposit(long amount) {
if (amount < 0) {
return;
}
balance += amount;
System.out.println("Balance after the deposit is: "+balance);
}
public void withdraw(long amount) throws InsufficientAmountExceptiion {
if (amount > balance) {
throw new InsufficientAmountExceptiion("Required balance is less than the amount you wish to withdraw");
} else {
balance -= amount;
System.out.println("Balance after the withdrawal: "+balance);
}
}
}
class ICICI extends Bank {
String branchId;
String ifscCode;
AccountType accountType;
long balance;
long accountNumber;
ICICI (String city, float rateOfInterest, String branchId, String ifscCode, AccountType accountType, long balance, long accountNumber) {
super(city, rateOfInterest);
this.branchId = branchId;
this.ifscCode = ifscCode;
this.accountType = accountType;
this.balance = balance;
this.accountNumber = accountNumber;
}
@Override
public void getDetails() {
super.getDetails();
}
@Override
public void printDetalis() {
System.out.println("\nBranch ID: "+branchId);
System.out.println("Branch IFSC Code: "+ifscCode);
super.printDetalis();
}
public void deposit(long amount) {
if (amount < 0) {
return;
}
balance += amount;
System.out.println("Balance after the deposit is: "+balance);
}
public void withdraw(long amount) throws InsufficientAmountExceptiion {
if (amount > balance) {
throw new InsufficientAmountExceptiion("Required balance is less than the amount you wish to withdraw");
} else {
balance -= amount;
System.out.println("Balance after the withdrawal: "+balance);
}
}
}
public class q {
public static void main(String[] args) {
SBI sbiAccount = new SBI("Delhi", 2.5f, "sbide02", "sbi001123", AccountType.valueOf("SAVINGS"), 50000, 1100510023);
BOI boiAccount = new BOI("Mumbai", 3.0f, "boi09", "boi002256", AccountType.valueOf("CURRENT"), 90000, 1900781268);
ICICI iciciAccount = new ICICI("Pune", 4.5f, "icici10", "icici152277", AccountType.valueOf("SAVINGS"), 150000, 1100784512);
sbiAccount.printDetalis();
boiAccount.printDetalis();
iciciAccount.printDetalis();
System.out.println("\nSBI opened account type: "+sbiAccount.accountType);
System.out.println("BOI opened account type: "+boiAccount.accountType);
System.out.println("ICICI opened account type: "+iciciAccount.accountType);
Scanner sc = new Scanner(System.in);
int ch, acc, depositAmount, withdrawAmount;
System.out.println("\nWhat would you like to do?");
System.out.println("1. Deposit");
System.out.println("2. Withdraw");
System.out.println("3. Check balance");
System.out.println("4. Exit");
ch = sc.nextInt();
String timeStamp, f;
byte[] b;
switch (ch) {
case 1:
System.out.println("\nIn which account would you like to deposit: ");
System.out.println("1. SBI");
System.out.println("2. BOI");
System.out.println("3. ICICI");
acc = sc.nextInt();
switch (acc) {
case 1:
System.out.println("Current Balance: "+sbiAccount.balance);
System.out.println("How much amount would you like to deposit: ");
depositAmount = sc.nextInt();
sbiAccount.deposit(depositAmount);
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+sbiAccount.accountNumber+"\tAmount deposited: "+depositAmount+"\tAmount before deposit: "+(sbiAccount.balance-depositAmount)+"\tCurrent Balance: "+sbiAccount.balance+"\tTrx status: Success"+"\tFailure reason: --";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/sbiLogs.txt");
fout.write(b);
fout.close();
} catch (Exception e) {
e.printStackTrace();
}
break;
case 2:
System.out.println("Current Balance: "+boiAccount.balance);
System.out.println("How much amount would you like to deposit: ");
depositAmount = sc.nextInt();
boiAccount.deposit(depositAmount);
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+boiAccount.accountNumber+"\tAmount deposited: "+depositAmount+"\tAmount before deposit: "+(boiAccount.balance-depositAmount)+"\tCurrent Balance: "+boiAccount.balance+"\tTrx status: Success"+"\tFailure reason: --";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/boiLogs.txt");
fout.write(b);
fout.close();
} catch (Exception e) {
e.printStackTrace();
}
break;
case 3:
System.out.println("Current Balance: "+iciciAccount.balance);
System.out.println("How much amount would you like to deposit: ");
depositAmount = sc.nextInt();
iciciAccount.deposit(depositAmount);
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+iciciAccount.accountNumber+"\tAmount deposited: "+depositAmount+"\tAmount before deposit: "+(iciciAccount.balance-depositAmount)+"\tCurrent Balance: "+iciciAccount.balance+"\tTrx status: Success"+"\tFailure reason: --";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/iciciLogs.txt");
fout.write(b);
fout.close();
} catch (Exception e) {
e.printStackTrace();
}
break;
default:
System.out.println("Incorrect option, Exiting from the menu!!");
break;
}
break;
case 2:
System.out.println("\nFrom which account would you like to withdraw: ");
System.out.println("1. SBI");
System.out.println("2. BOI");
System.out.println("3. ICICI");
acc = sc.nextInt();
switch (acc) {
case 1:
System.out.println("Current Balance: "+sbiAccount.balance);
System.out.println("How much would you like to withdraw: ");
withdrawAmount = sc.nextInt();
try {
sbiAccount.withdraw(withdrawAmount);
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+sbiAccount.accountNumber+"\tAmount withdrawn: "+withdrawAmount+"\tAmount before withdrawal: "+(sbiAccount.balance+withdrawAmount)+"\tCurrent Balance: "+sbiAccount.balance+"\tTrx status: Success"+"\tFailure reason: --";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/sbiLogs.txt");
fout.write(b);
fout.close();
} catch (Exception e) {
e.printStackTrace();
}
} catch (InsufficientAmountExceptiion e) {
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+sbiAccount.accountNumber+"\tAmount withdrawn: "+0+"\tAmount before withdrawal: "+iciciAccount.balance+"\tCurrent Balance: "+iciciAccount.balance+"\tTrx status: Failure"+"\tFailure reason: Less balance than amount to be withdrawn";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/sbiLogs.txt");
fout.write(b);
fout.close();
} catch (Exception ex) {
ex.printStackTrace();
}
}
break;
case 2:
System.out.println("Current Balance: "+boiAccount.balance);
System.out.println("How much would you like to withdraw: ");
withdrawAmount = sc.nextInt();
try {
boiAccount.withdraw(withdrawAmount);
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+boiAccount.accountNumber+"\tAmount withdrawn: "+withdrawAmount+"\tAmount before withdrawal: "+(boiAccount.balance+withdrawAmount)+"\tCurrent Balance: "+boiAccount.balance+"\tTrx status: Success"+"\tFailure reason: --";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/boiLogs.txt");
fout.write(b);
fout.close();
} catch (Exception e) {
e.printStackTrace();
}
} catch (InsufficientAmountExceptiion e) {
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+boiAccount.accountNumber+"\tAmount withdrawn: "+0+"\tAmount before withdrawal: "+boiAccount.balance+"\tCurrent Balance: "+boiAccount.balance+"\tTrx status: Failure"+"\tFailure reason: Less balance than amount to be withdrawn";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/boiLogs.txt");
fout.write(b);
fout.close();
} catch (Exception ex) {
ex.printStackTrace();
}
}
break;
case 3:
System.out.println("Current Balance: "+iciciAccount.balance);
System.out.println("How much would you like to withdraw: ");
withdrawAmount = sc.nextInt();
try {
iciciAccount.withdraw(withdrawAmount);
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+iciciAccount.accountNumber+"\tAmount withdrawn: "+withdrawAmount+"\tAmount before withdrawal: "+(iciciAccount.balance+withdrawAmount)+"\tCurrent Balance: "+iciciAccount.balance+"\tTrx status: Success"+"\tFailure reason: --";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/iciciLogs.txt");
fout.write(b);
fout.close();
} catch (Exception e) {
e.printStackTrace();
}
} catch (InsufficientAmountExceptiion e) {
timeStamp = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss").format(new Date());
f = "\nTime of transaction: "+timeStamp+"\tAccount number: "+iciciAccount.accountNumber+"\tAmount withdrawn: "+0+"\tAmount before withdrawal: "+iciciAccount.balance+"\tCurrent Balance: "+iciciAccount.balance+"\tTrx status: Failure"+"\tFailure reason: Less balance than amount to be withdrawn";
b = f.getBytes();
try {
FileOutputStream fout = new FileOutputStream("/home/sharda/Documents/Introjava2/iciciLogs.txt");
fout.write(b);
fout.close();
} catch (Exception ex) {
ex.printStackTrace();
}
}
break;
default:
System.out.println("Incorrect option, Exiting from the menu!!");
break;
}
break;
case 3:
System.out.println("\nWhich account's balance would you like to know: ");
System.out.println("1. SBI");
System.out.println("2. BOI");
System.out.println("3. ICICI");
acc = sc.nextInt();
switch (acc) {
case 1:
System.out.println("Your SBI account currently have a balance of: "+sbiAccount.balance);
break;
case 2:
System.out.println("Your BOI account currently have a balance of: "+boiAccount.balance);
break;
case 3:
System.out.println("Your ICICI account currently have a balance of: "+iciciAccount.balance);
break;
default:
System.out.println("Incorrect option, Exiting from the menu!!");
break;
}
break;
case 4: break;
}
sc.close();
}
}
| ShardaTTN/JavaAssignments | q.java |
128 | /**
* Creates a teachers assistant
* @author Michael Goodrum
* @version 1.0
* @since 7-13-16
*/
public class TA extends UndergradStudent {
private double piazzaScore;
private double recitationScore;
private double officeHoursScore;
/**
* Creates TA with all features from an undergrad
* but also has scores for piazza, recitation and office hours
* @param name [String name]
* @param lastName [String last name]
* @param username [String user name]
* @param piazzaScore [double [0,1]]
* @param recitationScore [double [0,1]]
* @param officeHoursScore [double [0,1]]
*/
public TA(String name, String lastName, String username,
double piazzaScore, double recitationScore, double officeHoursScore) {
super(name, lastName, username);
if (piazzaScore < 0.0 || piazzaScore > 1.0) {
System.out.println("Invalid piazza score."
+ " Input score between 0 and 1.");
this.piazzaScore = 0.0;
} else {
this.piazzaScore = piazzaScore;
}
if (recitationScore < 0.0 || recitationScore > 1.0) {
System.out.println("Invalid recitation score."
+ " Input score between 0 and 1.");
this.recitationScore = 0.0;
} else {
this.recitationScore = recitationScore;
}
if (officeHoursScore < 0.0 || officeHoursScore > 1.0) {
System.out.println("Invalid office hours score."
+ " Input score between 0 and 1.");
this.officeHoursScore = 0.0;
} else {
this.officeHoursScore = officeHoursScore;
}
}
/**
* Returns piazza score
* @return [double]
*/
public double getPiazzaScore() {
return piazzaScore;
}
/**
* Returns recitation score
* @return [double]
*/
public double getRecitationScore() {
return recitationScore;
}
/**
* Returns office hour scores
* @return [double]
*/
public double getOfficeHoursScore() {
return officeHoursScore;
}
/**
* Sets piazza score
* @param piazzaScore [double [0,1]]
*/
public void setPiazzaScore(double piazzaScore) {
if (piazzaScore <= 1.0 && piazzaScore >= 0.0) {
this.piazzaScore = piazzaScore;
} else {
System.out.println("Invalid score.");
}
}
/**
* Sets recitation score
* @param recitationScore [double [0,1]]
*/
public void setRecitationScore(double recitationScore) {
if (recitationScore <= 1.0 && recitationScore >= 0.0) {
this.recitationScore = recitationScore;
} else {
System.out.println("Invalid score.");
}
}
/**
* Sets office hours score
* @param officeHoursScore [double [0,1]]
*/
public void setOfficeHoursScore(double officeHoursScore) {
if (officeHoursScore <= 1.0 && officeHoursScore >= 0.0) {
this.officeHoursScore = officeHoursScore;
} else {
System.out.println("Invalid score.");
}
}
} | mdgoodrum/2014_2015_Code | TA.java |
131 | //import java.io.PrintStream;
import java.awt.Graphics;
import java.awt.Color;
public class e {
public int a;
public int bb; // x-coor
public int c; // y-coor
public int d; // x-coor on screen
public int e; // y-coor on screen
public int f;
public int g; // Velocity
public int h; // Angle
public int i; // Orientation
public int j;
public int k; // Bullet CD
public int l;
public int m; // Score
public int n; // Number of shots
public int o; // Number of hits
public int p;
public int q; // Fire animation counter
public int r; // x-coor of a bullet that smashed terrain
public int s; // Animation counter of that bullet
public int t;
public int u; // AI id
public int v; // Lifes
public int w; // x-coor of ejected pilot
public int x; // y-coor of ejected pilot
public int y; // x-velocity of ejected pilot
public int z; // y-velocity of ejected pilot
public int aa; // Frame id of ejected pilot animation
public int ab;
public int ac; // Parachute rotation
public int ad;
public int ae; // Used only in b
public int af; // Hit rate
public int ag; // AI coefficient
public int ah; // AI coefficient
public int ai; // AI coefficient
public int aj; // AI coefficient
public int ak; // AI coefficient
public int al; // AI coefficient
public int am; // AI coefficient
public String an = ""; // Hit rate
public e ao; // Enemy
public boolean ap; // Is alive?
public boolean aq;
public boolean ar;
public boolean as;
public boolean at; // Is alive?
public boolean au; // Maybe debug var, always false
public f[] av = new f[2]; // Bullets
public int[] aw; // x-coor of smoke
public int[] ax; // y-coor of smoke
public int[] ay; // smoke frame id
public static final int[] az = new int[32]; // Angles
public static final int a0 = 22; // Used only in b
public e(boolean paramBoolean) {
int i1 = 2;
do {
i1--;
this.av[i1] = new f(this);
}
while (i1 > 0);
this.aw = new int[6];
this.ax = new int[6];
this.ay = new int[6];
int i2 = 6;
do {
i2--;
this.aw[i2] = -1;
}
while (i2 > 0);
this.ap = false;
this.aq = paramBoolean;
}
public void a() { // Fire
if ((this.k > 0) || (this.v != 0))
return;
if (this.a == 1) {
int i1 = 2;
do {
i1--;
if (this.av[i1].bb == 255) {
this.av[i1].a(this.bb, this.c, this.h);
this.k = 10;
return;
}
}
while (i1 > 0);
}
}
public void a(int paramInt) {
this.af = paramInt;
this.an = (Integer.toString(paramInt) + "%");
}
public void a(boolean paramBoolean) {
this.n += 1;
if (paramBoolean)
this.o += 1;
this.af = (this.o * 100 / this.n);
this.an = (Integer.toString(this.af) + "%");
}
public void b() { // Ejection
if (this.a == 2)
return;
if ((this.a != 1) || (this.v != 0)) {
if (this.v == 1) {
this.z += -60;
if (this.z < 20)
this.z = 20;
this.v = 2;
this.ac = 1;
}
return;
}
b.a(5, 1);
this.w = this.bb;
this.x = this.c;
this.v = 1;
int i1;
if (this.i == 2) // left or right
i1 = b.g(this.h + 90);
else
i1 = b.g(this.h - 90);
this.y = (b.h(i1) * 300 >> 7); // x speed
this.z = (-(b.f(i1) * 300) >> 7); // y spped
}
public void a(int paramInt1, int paramInt2, int paramInt3, int paramInt4) {
this.i = paramInt4;
if (paramInt4 == 3)
b.bw = this;
else
b.bx = this;
this.m = 0;
this.n = 0;
this.o = 0;
this.af = 0;
this.an = "000%";
b.c(this);
this.at = true;
int i1 = this.u * 7;
this.ag = b.bs[(i1++)]; // AI coefficients
this.ah = b.bs[(i1++)];
this.ai = b.bs[(i1++)];
this.aj = b.bs[(i1++)];
this.ak = b.bs[(i1++)];
this.al = b.bs[(i1++)];
this.am = b.bs[(i1++)];
b(paramInt1, paramInt2, paramInt3, paramInt4);
this.d = paramInt2;
this.e = paramInt3;
}
public void b(int paramInt1, int paramInt2, int paramInt3, int paramInt4) {
this.a = paramInt1;
this.bb = (paramInt2 << 6);
this.c = (paramInt3 << 6);
this.g = 0;
this.p = 0;
this.r = 255;
this.s = 0;
switch (paramInt1) {
case 0:
this.f = 1;
if (paramInt4 == 2)
this.h = 270;
else
this.h = 90;
break;
}
this.au = false;
this.ap = true;
this.ar = false;
this.as = false;
this.v = 0;
int i1 = 6;
do {
i1--;
this.aw[i1] = -1;
}
while (i1 > 0);
int i2 = 2;
do {
i2--;
this.av[i2].bb = 255;
}
while (i2 > 0);
}
public void b(int paramInt) { // Rotate
if ((this.j > 0) || (this.v != 0)) {
switch (this.v) {
case 2:
if (paramInt == 2) {
this.y -= 10;
if (this.y < -45)
this.y = -45;
this.ac = 0;
}
else {
this.y += 10;
if (this.y > 45)
this.y = 45;
this.ac = 2;
}
break;
case 4:
if (paramInt == 2) {
this.w -= 100;
if (this.aa == 2)
this.aa = 3;
else
this.aa = 2;
}
else {
this.w += 100;
if (this.aa == 4)
this.aa = 5;
else
this.aa = 4;
}
int i1 = this.w >> 6;
if ((i1 > 109) && (i1 < 145))
b.a(this);
break;
}
return;
}
if (this.a == 0)
return;
if (((this.i == 2) && (paramInt == 2)) || ((this.i == 3) && (paramInt == 3))) {
this.f -= 1;
if (this.f < 0)
this.f = 15;
}
else {
this.f += 1;
if (this.f == 16)
this.f = 0;
}
if (this.i == 2)
this.h = az[this.f];
else
this.h = az[(this.f + 16)];
this.j = 2;
}
public void c() { // Speed up
if (this.v != 0)
return;
this.as = true;
switch (this.a) {
case 0:
this.g += 16;
if ((this.f == 1) && (this.g > 125)) {
this.c -= 128;
this.f = 0;
}
if (this.g > 250) {
this.c -= 64;
this.g = 250;
this.a = 1;
this.as = false;
}
break;
case 1:
if (this.g > 250)
return;
this.g += (Math.abs(b.h(this.h)) * 8 >> 7);
if (this.g > 250)
this.g = 250;
break;
}
}
public void d() { // Speed down
if (this.v != 0)
return;
this.as = false;
switch (this.a) {
case 1:
this.g -= 8;
if (this.g < 0)
this.g = 0;
break;
}
}
public void e() { // AI
switch (this.a) {
case 0:
c();
if ((this.g >= 250) && (this.f < 2))
b(3);
break;
case 1:
if (this.g < 250)
c();
int i1 = 0;
if (((this.e > 182 - this.ah) || ((this.d > 109 - this.ah) && (this.d < 145 + this.ah) && (this.e > 168 - this.ah))) && ((this.am == 0) || (b.c(this.am) == 0))) {
if (this.f < 4)
b(3);
else if ((this.f > 4) && (this.f < 12))
b(2);
else if (this.f > 11)
b(3);
i1 = 1;
}
if (this.e < this.al) {
if (this.f < 5)
b(2);
else if ((this.f > 4) && (this.f < 9))
b(3);
i1 = 1;
}
int i3;
if ((i1 == 0) && ((this.ag == 0) || (b.c(this.ag) == 0))) {
int i2;
if (this.ao.v == 0)
i2 = b.b(this.bb, this.c, this.ao.bb, this.ao.c);
else
i2 = b.b(this.bb, this.c, this.ao.w, this.ao.x);
i3 = b.b(this.h, i2);
if (i3 >= 2)
b(i3);
else
a();
}
if ((this.v == 0) && (this.p == 2)) {
int i5 = 2;
do {
i5--;
f localf = this.ao.av[i5];
if ((localf.bb != 255) && (this.ao.ap)) {
i3 = Math.abs(localf.a - this.d);
int i4 = Math.abs(localf.bb - this.e);
int i6 = i3 * i3 + i4 * i4;
if (i6 < 80 + this.ai)
this.ar = true;
}
}
while (i5 > 0);
}
if ((this.ar) && ((this.f > 12) || (this.f < 4)))
b();
break;
}
switch (this.v) {
case 4:
if (this.w >> 6 < 127)
b(3);
else
b(2);
break;
case 1:
if (b.c(this.aj) == 0)
b();
break;
case 2:
if (this.t >= 2)
b(this.t);
if (b.c(this.ak) == 0)
this.t = b.c(4);
break;
case 3:
}
}
public void f() {
b.a(3, 1);
this.a = 2;
this.f = 0;
this.at = false;
this.au = false;
this.p = 0;
int i1 = b.h(this.h) >> 1;
b.a(25, this.d, this.e, i1 - 100, i1 + 100, -270, -50);
}
public void a(Graphics paramGraphics, boolean paramBoolean) { // Tick
if ((paramBoolean) && (!this.au)) {
if (this.as)
c();
switch (this.a) {
case 3:
this.l += 1;
if (this.l > 50) {
this.l = 0;
if (this.v == 0)
b.a(this);
}
break;
case 0:
if (this.i == 2)
this.bb -= this.g;
else
this.bb += this.g;
break;
case 1:
this.bb += (b.h(this.h) * this.g >> 7);
int i1 = 0;
int i2 = b.f(this.h) * this.g >> 7;
this.c -= i2;
if ((this.f > 1) && (this.f < 7)) {
this.g -= (b.f(this.h) >> 5);
if (this.g < 0)
this.g = 0;
}
else if ((this.f > 9) && (this.f < 15)) {
this.g -= (b.f(this.h) >> 5);
if (this.g > 350)
this.g = 350;
}
if (this.g < 230) {
i1 = 250 * (230 - this.g) / 230;
this.c += i1;
}
if (i1 > i2)
this.as = false;
break;
case 2:
}
switch (this.v) {
case 1:
case 5:
this.w += this.y;
this.x += this.z;
this.z += 10;
if (this.y > 8)
this.y -= 8;
else if (this.y < -8)
this.y += 8;
if (this.aa == 0)
this.aa = 1;
else
this.aa = 0;
break;
case 2:
this.w += this.y;
this.x += this.z;
this.ad += 1;
if (this.ad > 1) {
this.ad = 0;
this.z += -15;
if (this.z < 70)
this.z = 70;
}
if (this.y > 8)
this.y -= 8;
else if (this.y < -8)
this.y += 8;
else
this.ac = 1;
this.ab += 1;
if (this.ab > 3) {
this.ab = 0;
if (this.aa == 0)
this.aa = 1;
else
this.aa = 0;
}
break;
case 3:
this.x -= 30;
if (this.aa != 3) {
this.ab += 1;
if (this.ab > 1) {
this.ab = 0;
this.aa += 1;
if (this.aa == 3)
this.aa = 0;
}
this.ad += 1;
if (this.ad == 40) {
this.ad = 0;
this.aa = 3;
}
}
else {
this.ad += 1;
if (this.ad > 3) {
this.ad = 0;
b.a(this);
}
}
break;
case 4:
}
if (this.j > 0)
this.j -= 1;
if (this.k > 0)
this.k -= 1;
this.d = (this.bb >> 6);
this.e = (this.c >> 6);
int i3 = this.w >> 6;
int i4 = this.x >> 6;
if ((this.a < 2) && ((this.e > 182) || ((this.e > 164) && (this.d > 104) && (this.d < 150)))) {
f();
b.bt = (byte)(b.bt + 2);
if (this.v == 0) {
b.bt = (byte)(b.bt + 1);
this.m -= 1;
if (this.m < 0)
this.m = 0;
b.c(this);
}
}
if (((this.v == 1) || (this.v == 2) || (this.v == 5)) && (i4 > 185)) {
this.x = 11840;
if (this.z > 160) {
b.bt = (byte)(b.bt + 4);
this.v = 3;
this.m -= 1;
if (this.m < 0)
this.m = 0;
b.b(this.ao);
b.c(this);
}
else {
this.v = 4;
if ((i3 > 109) && (i3 < 145))
b.a(this);
}
}
if ((this.v != 0) && (this.j == 0)) {
if ((this.f < 5) || (this.f > 12)) {
this.f -= 1;
if (this.f == -1)
this.f = 15;
}
else if ((this.f > 4) && (this.f < 12)) {
this.f += 1;
}
if (this.i == 2)
this.h = az[this.f];
else
this.h = az[(this.f + 16)];
this.j = 5;
}
if (this.d < 0) {
this.d = 255;
this.bb = (this.d << 6);
}
else if (this.d > 255) {
this.d = 0;
this.bb = (this.d << 6);
}
if (i3 < 0) {
i3 = 255;
this.w = (i3 << 6);
}
else if (i3 > 255) {
i3 = 0;
this.w = (i3 << 6);
}
if (this.e < 0) {
this.e = 0;
this.c = (this.e << 6);
this.g -= 10;
}
else if (this.e > 208) {
this.e = 0;
this.c = (this.e << 6);
}
}
if (this.r != 255) {
paramGraphics.drawImage(b.a8[(30 + this.s)], this.r, 189, null); // Anchor: 33
this.s += 1;
if (this.s == 5) {
this.r = 255;
this.s = 0;
}
}
int i2 = this.ao.bb >> 6;
int i3 = this.ao.c >> 6;
int i4 = 0;
int i6 = this.ao.w >> 6;
int i7 = this.ao.x >> 6;
int i8 = 2;
int i9;
do {
i8--;
f localf = this.av[i8];
localf.a(paramGraphics, paramBoolean);
if (((b.as == 1) && (this.aq)) || ((b.as == 0) && (localf.bb != 255) && (this.ao.ap))) {
int i5;
if (this.ao.a < 2) {
i4 = Math.abs(localf.a - i2);
i5 = Math.abs(localf.bb - i3);
i9 = i4 * i4 + i5 * i5;
if (i9 < 80) {
this.ao.p += 1;
this.ao.at = false;
if (this.ao.p > 2) {
this.ao.f();
if (this.ao.v == 0)
if (b.as == 0) {
this.m += 1;
System.out.println("updating score.. now = " + this.m);
b.c(this);
}
else {
b.bt = (byte)(b.bt + 32);
}
}
else {
b.a(2, 1);
}
localf.a(true);
}
}
if ((this.ao.v > 0) && (this.ao.v != 3)) {
i4 = Math.abs(localf.a - i6);
i5 = Math.abs(localf.bb - i7);
i9 = i4 * i4 + i5 * i5;
if (i9 < 30) {
b.bt = (byte)(b.bt + 8);
this.ao.v = 3;
this.ao.aa = 0;
localf.a(true);
b.b(this);
this.m += 2;
b.c(this);
}
}
if (this.ao.v == 2) {
i5 = Math.abs(localf.bb - (i7 - 10));
if ((i4 < 10) && (i5 < 5)) {
this.ao.v = 5;
b.bt = (byte)(b.bt + 16);
}
}
}
}
while (i8 > 0);
switch (this.a) {
case 0:
case 1:
i9 = this.f;
if ((this.i == 3) && (this.aq))
i9 += 16;
paramGraphics.drawImage(b.a7[i9], this.d, this.e, null); // Anchor: 3
break;
case 2:
if (this.f < 7) {
paramGraphics.drawImage(b.a8[(this.f + 2)], this.d, this.e, null); // Anchor: 3
this.f += 1;
}
else {
this.a = 3;
if (this.v == 0)
b.b(this.ao);
}
break;
}
switch (this.v) {
case 2:
paramGraphics.drawImage(b.a8[(27 + this.ac)], this.w >> 6, (this.x >> 6) - 10, null); // Anchor: 3
case 1:
case 4:
case 5:
paramGraphics.drawImage(b.a8[(21 + this.aa)], this.w >> 6, this.x >> 6, null); // Anchor: 3
break;
case 3:
paramGraphics.drawImage(b.a8[(17 + this.aa)], this.w >> 6, this.x >> 6, null); // Anchor: 3
}
if ((this.a < 2) && (this.p > 0)) {
if (this.p == 2) {
paramGraphics.drawImage(b.a8[(14 + this.q)], this.d, this.e, null); // Anchor: 3
this.q += 1;
if (this.q > 2)
this.q = 0;
}
int i10 = 6;
do {
i10--;
if (this.aw[i10] == -1) {
if (b.c(12) < this.p * 2) {
this.aw[i10] = (this.bb >> 6);
this.ax[i10] = (this.c >> 6);
this.ay[i10] = 0;
}
}
else {
paramGraphics.drawImage(b.a8[(this.ay[i10] + 9)], this.aw[i10], this.ax[i10], null); // Anchor: 3
this.ay[i10] += 1;
if (this.ay[i10] > 4)
this.aw[i10] = -1;
}
}
while (i10 > 0);
}
}
static {
int i2 = 16;
do {
i2--;
int i1 = i2 - 12;
if (i1 < 0)
i1 = 16 + i1;
az[i1] = (360 * i2 / 16);
}
while (i2 > 0);
az[16] = az[8];
az[17] = az[7];
az[18] = az[6];
az[19] = az[5];
az[20] = az[4];
az[21] = az[3];
az[22] = az[2];
az[23] = az[1];
az[24] = az[0];
az[25] = az[15];
az[26] = az[14];
az[27] = az[13];
az[28] = az[12];
az[29] = az[11];
az[30] = az[10];
az[31] = az[9];
}
}
/* Location: /Users/ilya/4fun/Biplanes/Bluetooth_Biplanes.jar
* Qualified Name: e
* JD-Core Version: 0.6.2
*/
| TheRealPinkie/BT_Biplanes_src | e.java |
134 | package rpgGridBrawl;
public class Place extends GridBrawl {
int pSelect, fSelect, cSelect, rSelect, fSelect2, cSelect2, rSelect2;
boolean[] validSelection;
boolean validChoice;
public Place() {
this.pSelect = -1;
this.validSelection = new boolean[24];
this.validChoice = false;
}
public GameData execute(GameData crtGame) {
interact.tellPlayer(2, 5, false); // "Here are the pieces you may place on the board this turn:"
validSelection = buildValidSelection(crtGame);
String report = interact.placeReportOnValidselection(this.validSelection);
// test code for AI
/*
AInode node = new AInode(crtGame);
AIstructure killerAI = new AIstructure(node);
String reportAI = killerAI.tellMeWhatToPlace();
interact.space();
interact.tellPlayer(reportAI, false);
interact.space();
*/
// end of test code
interact.tellPlayer(report, false); // list of pieces available to place this turn
pSelect = interact.placeGetPSelect(validSelection, crtGame);
if (pSelect == -1) return crtGame;
int sSelect = interact.placeGetSpace(crtGame, pSelect);
if (sSelect == -1) {
crtGame.setSuccessfulTurn(false);
return crtGame;
}
int[] sSSplit = splitBoardSpace(sSelect);
fSelect = sSSplit[0];
cSelect = sSSplit[1];
rSelect = sSSplit[2];
if (pSelect == 8 || pSelect == 16) {
crtGame = this.dragonPrincess(crtGame, pSelect);
if (!crtGame.isSuccessfulTurn()) return crtGame;
}
crtGame.getBrawler(pSelect).setOnBoard(true);
crtGame.getBrawler(pSelect).setFloor(fSelect);
crtGame.getBrawler(pSelect).setColumn(cSelect);
crtGame.getBrawler(pSelect).setRow(rSelect);
crtGame = updateLastUsed(crtGame, pSelect);
crtGame.getLocation(fSelect, cSelect, rSelect).setOccupiedBy(pSelect);
crtGame.getLocation(fSelect, cSelect, rSelect).setOccupied(true);
crtGame.setSuccessfulTurn(true);
// if placed piece is a monster, set its CL to its BL
if (crtGame.getBrawler(pSelect) instanceof Monster) crtGame.getBrawler(pSelect).setLevel(fSelect);
if (crtGame.getBrawler(pSelect).isGlorified()) crtGame.getBrawler(pSelect).setLevel(4);
if (crtGame.isRedsTurn() && crtGame.getGameRound() > 10) crtGame.setRedCanPlace(false);
if (!crtGame.isRedsTurn() && crtGame.getGameRound() > 10) crtGame.setBlueCanPlace(false);
crtGame.updateGameRecord("place", BRWLRS[pSelect], sSelect, "none");
interact.space();
interact.tellPlayer(2, 7, false); // "Placement Confirmed."
interact.space();
return crtGame;
} // end of execute method
private static boolean[] buildValidSelection(GameData crt) {
boolean[] valSel = new boolean[crt.getAllBrawlers().length];
boolean colorMatch = false;
Brawler jeb;
for (int vs = 0; vs < crt.getAllBrawlers().length; vs++) {
jeb = crt.getBrawler(vs);
colorMatch = ((crt.isRedsTurn() && jeb.isRed()) || (!crt.isRedsTurn() && jeb.isBlue()));
if ((jeb instanceof Character) && colorMatch && !jeb.isUsedLast() && !jeb.isOnBoard()) {
if (!jeb.isGlorified() || canGlorifiedCharacterBePlaced(crt)) valSel[vs] = true;
}
else if (jeb instanceof Nemesis) {
if (!jeb.isOnBoard() && canNemesisBePlaced(crt) && !jeb.isUsedLast()) valSel[vs] = true;
}
else if (jeb instanceof NPC || jeb instanceof Treasure || jeb instanceof Monster) {
if (!jeb.isOnBoard() && !jeb.isUsedLast()) valSel[vs] = true;
}
}
// if there are only two brawlers in the off-board pool and one of them is yours, you can't place the other one.
int bwrA = -1;
int bwrB = -1;
int count = 0;
for (int y = 0; y < crt.getAllBrawlers().length; y++) {
if (!crt.getBrawler(y).isOnBoard() && !(crt.getBrawler(y) instanceof Nemesis)) {
count++;
if (bwrB == -1 && bwrA == -1) bwrB = y;
if ((bwrA == -1) && (bwrB != y)) bwrA = y;
}
}
if (count == 2) {
if (crt.isRedsTurn() && crt.getBrawler(bwrA).isRed()) valSel[bwrB] = false;
if (crt.isRedsTurn() && crt.getBrawler(bwrB).isRed()) valSel[bwrA] = false;
if (!crt.isRedsTurn() && crt.getBrawler(bwrA).isBlue()) valSel[bwrB] = false;
if (!crt.isRedsTurn() && crt.getBrawler(bwrB).isBlue()) valSel[bwrA] = false;
// However, if it is still the Square-off and there are two same-colored Characters in the pool, the opponent may place one of them.
// No, need to correct that. If game round + remaining unplaced Characters > 10, player must place own Character
try {
colorMatch = ((crt.getBrawler(bwrA).isRed() && crt.getBrawler(bwrB).isRed()) || (crt.getBrawler(bwrA).isBlue() && crt.getBrawler(bwrB).isBlue()));
if (crt.getGameRound() < 11 && colorMatch) {
valSel[bwrA] = true;
valSel[bwrB] = true;
}
}
catch(ArrayIndexOutOfBoundsException ex) {} // either bwrA or bwrB is -1, so don't bother with this.
}
return valSel;
} // end of buildValidSelection()
private static boolean canGlorifiedCharacterBePlaced(GameData crt) {
int redGConBoard = 0;
int blueGConBoard = 0;
for (int g = 0; g < crt.getAllBrawlers().length; g++) {
Brawler zed = crt.getBrawler(g);
if (zed instanceof Character && zed.isGlorified() && zed.isOnBoard()) {
if (zed.isRed()) redGConBoard++;
if (zed.isBlue()) blueGConBoard++;
}
}
if (crt.isRedsTurn() && redGConBoard > 0) return false;
else if (!crt.isRedsTurn() && blueGConBoard > 0) return false;
return true;
}
private static boolean canNemesisBePlaced(GameData gdNBP) {
boolean answer = false;
int cl4CharsOnBoard = 0;
int nemesesOnBoard = 0;
for (int c = 0; c <= 7; c++) if (gdNBP.getBrawler(c).isOnBoard() && gdNBP.getBrawler(c).getLevel() == 4) cl4CharsOnBoard++;
for (int n = 8; n <= 11; n++) if (gdNBP.getBrawler(n).isOnBoard()) nemesesOnBoard++;
if (nemesesOnBoard <= cl4CharsOnBoard && gdNBP.getGameRound() > 10) answer = true;
return answer;
}
public static boolean checkLevelFour(GameData GM) {
int openSpaces = 0;
boolean answer = false;
for (int r = 0; r <= 2; r++) {
for(int c = 0; c <= 2; c++) if (!GM.getLocation(4, c, r).isOccupied()) openSpaces++;
}
if (openSpaces >= 2) answer = true;
return answer;
}
private GameData dragonPrincess(GameData crtGame, int pSelect) {
int pAlsoSelect = 8;
if (pSelect == 8) pAlsoSelect = 16;
interact.tellPlayer(interact.msgBuild(crtGame, 9, pAlsoSelect), false); // "When you place that piece you must also place the " + BRWLRS[pAlsoSelect] + "."
interact.space();
boolean validChoice2 = false;
do {
interact.tellPlayer(3, 4, true); // "Enter 3-digit number of space on which to place that piece or enter anything else to return to main menu:");
int sSelect2 = interact.getSpaceNumber();
if (sSelect2 == -1) {
crtGame.setSuccessfulTurn(false);
return crtGame;
}
int[] sSelect2array = splitBoardSpace(sSelect2);
int fSelect2 = sSelect2array[0], cSelect2 = sSelect2array[1], rSelect2 = sSelect2array[2];
if (fSelect2 != 4) {
interact.tellPlayer(interact.msgBuild(crtGame, 10, pAlsoSelect), false); // "The " + BRWLRS[pAlsoSelect] + " must be placed on board level 4."
interact.space();
validChoice2 = false;
}
else if (cSelect2 > 2 || rSelect2 > 2) {
interact.tellPlayer(3, 5, false); // "That is not a valid board space."
validChoice2 = false;
}
else if (crtGame.getLocation(4, cSelect2, rSelect2).isOccupied()) {
int occupiedBy = crtGame.getLocation(4, cSelect2, rSelect2).getOccupiedBy();
interact.tellPlayer(interact.msgBuild(crtGame, 8, occupiedBy), false); // "That space is already occupied by the " + BRWLRS[occupiedBy] + "."
validChoice2 = false;
}
else if (cSelect2 == cSelect && rSelect2 == rSelect) {
interact.tellPlayer(2, 6, false); // "You cannot place both the Princess and the Dragon on the same space."
validChoice2 = false;
}
else { // presumably this is a valid selection
String report = new String("You have selected to place the " + BRWLRS[pAlsoSelect] + " on space #" + fSelect2 + cSelect2 + rSelect2);
interact.tellPlayer(report, false);
boolean confirm = interact.confirm();
if (confirm) {
crtGame.getBrawler(pAlsoSelect).setOnBoard(true);
crtGame.getBrawler(pAlsoSelect).setFloor(fSelect2);
crtGame.getBrawler(pAlsoSelect).setColumn(cSelect2);
crtGame.getBrawler(pAlsoSelect).setRow(rSelect2);
crtGame.getLocation(4, cSelect2, rSelect2).setOccupiedBy(pAlsoSelect);
crtGame.getLocation(4, cSelect2, rSelect2).setOccupied(true);
crtGame.setSuccessfulTurn(true);
validChoice2 = true;
}
else {
crtGame.setSuccessfulTurn(false);
return crtGame;
}
}
} while (!validChoice2);
return crtGame;
}
} // end of Place class
| JKisling/RPG_Grid_Brawl | Place.java |
135 | package rpgGridBrawl;
public class Move extends GridBrawl {
public Move() {}
public GameData execute(GameData crtM) {
boolean[] available = sortAvailable(crtM);
boolean goOn = true;
int slct = 0;
int dstn = 0;
int victim = -1;
interact.tellPlayer(interact.msgBuild(crtM, 10, -1), false); // "Player " + crtPlayerName + ", these pieces are available to move this turn:"
for(int i = 0; i < crtM.getAllBrawlers().length; i++) if(available[i]) System.out.println(i + ". " + BRWLRS[i]);
System.out.println();
while(goOn) {
interact.tellPlayer(4, 0, true); // "Enter the number of your selection or anything else to return to main menu: "
slct = interact.getBrawlerNumber(crtM.getAllBrawlers().length);
if (slct == -1) {
crtM.setSuccessfulTurn(false);
return crtM;
}
if (available[slct]) {
int origin = (crtM.getBrawler(slct).getFloor() * 100) + (crtM.getBrawler(slct).getColumn() * 10) + crtM.getBrawler(slct).getRow();
String youHaveSelected = ("You have selected the " + BRWLRS[slct] + " which is currently on space # " + origin);
interact.tellPlayer(youHaveSelected, false);
goOn = false;
}
else {
interact.tellPlayer(4, 1, false); // "That brawler is not available to be moved by you this turn."
goOn = true;
}
}
// at this point slct is the number of a legit brawler to be moved.
goOn = true;
while(goOn) {
interact.tellPlayer(4, 2, true); // "Enter the number of the destination space: "
dstn = interact.getSpaceNumber();
if (!isLegitSpace(crtM, dstn)) {
interact.tellPlayer(4, 3, false); // "That is not a real space on this board."
crtM.setSuccessfulTurn(false);
return crtM;
}
int legit = isLegitDestination(crtM, slct, dstn);
if (legit == 0) { // we have a legitimate destination
goOn = false;
}
else { // some violation
interact.tellPlayer(interact.moveILDErrorMsg(crtM, slct, legit), false);
goOn = true;
continue;
}
// at this point dstn is considered a viable destination, now check if it's occupied
if (crtM.getLocation(dstn).isOccupied()) {
victim = crtM.getLocation(dstn).getOccupiedBy();
if (!canAttackThat(crtM, slct, victim)) {
String cannotAttack = ("The " + BRWLRS[slct] + " cannot attack the " + BRWLRS[victim] + " this turn.");
interact.tellPlayer(cannotAttack, false);
interact.tellPlayer(interact.msgBuild(crtM, 14, slct), false); // "Please select a new destination for the " + BRWLRS[slct] + "."
goOn = true;
continue;
}
}
} // end of destination selection loop
// at this point the piece to move and its destination are selected, and are legit.
int atNow = (crtM.getBrawler(slct).getFloor() * 100) + (crtM.getBrawler(slct).getColumn() * 10) + crtM.getBrawler(slct).getRow();
String yhs = ("You have selected to move the " + BRWLRS[slct] + " from space #" + atNow + " to space #" + dstn);
interact.tellPlayer(yhs, false);
if (victim != -1) interact.tellPlayer(interact.msgBuild(crtM, 15, victim), false); // "The destination space is occupied by the " + BRWLRS[victim] + "."
boolean confirmed = interact.confirm();
if (confirmed) {
crtM.setSuccessfulTurn(true);
crtM = finishMoveTurn(crtM, slct, dstn);
return crtM;
}
crtM.setSuccessfulTurn(false);
return crtM;
} // end of execute()
// returns boolean on whether brawler aaa can legitimately attack brawler bbb in passed in game
private static boolean canAttackThat(GameData crtCAT, int attacker, int victim) {
Brawler aaa = crtCAT.getBrawler(attacker);
Brawler bbb = crtCAT.getBrawler(victim);
if (!aaa.canAttack(bbb)) return false;
// at this point it is assumed that aaa can legally attack bbb in general.
boolean answer = true;
// other conditions may require code here
// is it a warrior charging?
// is it a rogue ambushing?
return answer;
}
private static boolean canVampireMoveUp(GameData crt, int dstn) {
int[] fcr = splitBoardSpace(dstn);
if (!(isLegitSpace(crt, dstn + 100))) return false;
if (crt.getLocation(fcr[0] + 1, fcr[1], fcr[2]).isOccupied()) return false;
return true;
}
// performs end of turn updates on GameData object and then returns it
public static GameData finishMoveTurn(GameData crt, int mover, int dstn) {
GameData crtFT = crt;
String subject = BRWLRS[mover];
String object = "none";
int[] fcr = splitBoardSpace(dstn);
int startSp = (crtFT.getBrawler(mover).getFloor() * 100) + (crtFT.getBrawler(mover).getColumn() * 10) + crtFT.getBrawler(mover).getRow();
crtFT.getLocation(startSp).setOccupied(false);
crtFT.getLocation(startSp).setOccupiedBy(-1);
// identify the Treasures for interaction with them and/or the NPCs
Brawler[] treasures = new Brawler[4];
for (int tsr = 0; tsr < crtFT.getAllBrawlers().length; tsr++) {
if (crtFT.getBrawler(tsr) instanceof Sword) treasures[0] = crtFT.getBrawler(tsr);
if (crtFT.getBrawler(tsr) instanceof Shield) treasures[1] = crtFT.getBrawler(tsr);
if (crtFT.getBrawler(tsr) instanceof Ring) treasures[2] = crtFT.getBrawler(tsr);
if (crtFT.getBrawler(tsr) instanceof Diamond) treasures[3] = crtFT.getBrawler(tsr);
}
if (crtFT.getLocation(dstn).isOccupied()) { // There is a victim
int vic = crtFT.getLocation(dstn).getOccupiedBy();
object = BRWLRS[vic];
Brawler victim = crtFT.getBrawler(vic);
Brawler attacker = crtFT.getBrawler(mover);
int bumps = countChainBumpVictims(crtFT, dstn);
// brawlers do not get bumped by the Abyss, they are simply removed.
if (attacker instanceof Abyss) {
if (victim.isHandsFull()) {
int loot = victim.getPossession();
crtFT.dispossess(loot);
crtFT.getBrawler(loot).remove();
crtFT = clearSpace(crtFT, vic);
interact.tellPlayer(interact.msgBuild(crtFT, 16, vic), false); // "The Abyss has swallowed up the " + BRWLRS[vic] + "..."
interact.tellPlayer(interact.msgBuild(crtFT, 52, loot), false); // "The " + BRWLRS[loot] + " has also vanished into the Abyss......"
} else {
crtFT = clearSpace(crtFT, vic);
interact.tellPlayer(interact.msgBuild(crtFT, 16, vic), false); // "The Abyss has swallowed up the " + BRWLRS[vic] + "..."
}
}
else crtFT = performBumpDowns(crtFT, bumps, dstn);
// everything after this should be aftereffects of bumpdown
// Character or Monster attacker gains a level for attacking, unless the leper is on the same floor as victim
if ((attacker instanceof Character || attacker instanceof Monster) && attacker.getLevel() < 4 && !(victim instanceof NPC || victim instanceof Treasure)) {
Brawler leper = new Leper();
for (int le = 0; le < crtFT.getAllBrawlers().length; le++) if (crtFT.getBrawler(le) instanceof Leper) leper = crtFT.getBrawler(le);
if (leper.isOnBoard() && (fcr[0] == leper.getFloor())) {
interact.tellPlayer(interact.msgBuild(crtFT, 41, mover), false); // "The " + BRWLRS[mover] + " gains no level because the Leper is on the same floor."
}
else {
crtFT.getBrawler(mover).setLevel(crtFT.getBrawler(mover).getLevel() + 1);
interact.tellPlayer(interact.msgBuild(crtFT, 45, mover), false); // "The " + BRWLRS[mover] + " is now level " + crtFT.getBrawler(mover).level)
}
}
// If the victim is the leper, it reduces the CL of any Character or Monster other than the Cleric
if (victim instanceof Leper) {
if (attacker instanceof Cleric && attacker.getLevel() < 4) { // cleric will gain a level
crtFT.getBrawler(mover).setLevel(crtFT.getBrawler(mover).getLevel() + 1);
interact.tellPlayer(interact.msgBuild(crtFT, 44, mover), false); // "The " + BRWLRS[mover] + " has \"cured\" the leper, and will gain a Character Level!";
interact.tellPlayer(interact.msgBuild(crtFT, 45, mover), false); // "The " + BRWLRS[mover] + " is now CL " + crtFT.getBrawler(mover).level)
interact.space();
}
else if (attacker instanceof Cleric && attacker.getLevel() == 4 && !attacker.isHandsFull()) { // cleric will gain the shield
crtFT.dispossess(treasures[1].getPieceID());
crtFT = clearSpace(crtFT, treasures[1].getPieceID());
crtFT.takePossession(mover, treasures[1].getPieceID());
interact.tellPlayer(interact.msgBuild(crtFT, 46, mover), false); // "The " + BRWLRS[mover] + " has \"cured\" the Leper, and is rewarded with the Shield!";
interact.space();
}
else if (attacker instanceof Cleric && attacker.getLevel() == 4 && attacker.isHandsFull()) {
interact.tellPlayer(interact.msgBuild(crtFT, 47, mover), false); // "The " + BRWLRS[mover] + " has \"cured\" the Leper, and receives humble thanks."
}
else if (!(attacker instanceof Cleric) && attacker instanceof Character) {
crtFT.getBrawler(mover).setLevel(crtFT.getBrawler(mover).getLevel() - 1);
interact.tellPlayer(interact.msgBuild(crtFT, 48, mover), false); // "The " + BRWLRS[mover] + " has been weakened by attacking the Leper."
interact.tellPlayer(interact.msgBuild(crtFT, 45, mover), false); // "The " + BRWLRS[mover] + " is now CL " + crtFT.getBrawler(mover).level)
}
}
// Warrior "rescues" the Princess
if (victim instanceof Princess && attacker instanceof Warrior) {
boolean swordHeld = false;
int swordID = treasures[0].getPieceID();
for (int b = 0; b < crtFT.getAllBrawlers().length; b++) {
if (crtFT.getBrawler(b).getPossession() == swordID) {
swordHeld = true;
crtFT.dispossess(swordID);
}
}
if (!swordHeld && treasures[0].isOnBoard()) crtFT = clearSpace(crtFT, swordID);
crtFT.takePossession(mover, swordID);
interact.tellPlayer(interact.msgBuild(crtFT, 49, mover), false); // "The " + BRWLRS[mover] + " has \"rescued\" the Princess, and is rewarded with the Sword."
}
// Rogue robs the merchant
if (victim instanceof Merchant && attacker instanceof Rogue) {
boolean diamondHeld = false;
int diamondID = treasures[3].getPieceID();
for (int b = 0; b < crtFT.getAllBrawlers().length; b++) {
if (crtFT.getBrawler(b).getPossession() == diamondID) {
diamondHeld = true;
crtFT.dispossess(diamondID);
}
}
if (!diamondHeld && treasures[3].isOnBoard()) crtFT = clearSpace(crtFT, diamondID);
crtFT.takePossession(mover, diamondID);
interact.tellPlayer(interact.msgBuild(crtFT, 50, mover), false); // "The " + BRWLRS[mover] + " has robbed the Merchant, absconding with the Diamond."
}
// Character or Monster attacker takes possession of attacked Treasure
if (victim instanceof Treasure && (attacker instanceof Character || attacker instanceof Monster)) {
crtFT.takePossession(mover, victim.getPieceID());
String treasureSnatch = ("The " + BRWLRS[mover] + " has taken possession of the " + BRWLRS[vic]);
interact.tellPlayer(treasureSnatch, false);
}
// Character or Monster attacker snatches Treasure from victim
if (victim.isHandsFull() && (attacker instanceof Character || attacker instanceof Monster)) { // treasure snatch
int precious = crtFT.getBrawler(vic).getPossession();
crtFT.getBrawler(vic).setHandsFull(false);
crtFT.getBrawler(mover).setHandsFull(true);
crtFT.getBrawler(vic).setPossession(-1);
crtFT.getBrawler(mover).setPossession(precious);
/*
crtFT.getBrawler(precious).setOnBoard(true);
crtFT.getBrawler(precious).setFloor(crtFT.getBrawler(mover).getFloor());
crtFT.getBrawler(precious).setColumn(crtFT.getBrawler(mover).getColumn());
crtFT.getBrawler(precious).setRow(crtFT.getBrawler(mover).getRow());
*/
String tsnatchFrom = ("The " + BRWLRS[attacker.getPieceID()] + " has snatched the " + BRWLRS[precious] + " from the " + BRWLRS[vic] + "!");
interact.tellPlayer(tsnatchFrom, false);
}
// Vampire sucks out extra CL from a cleric, unless it has a shield. Also, Vampire may move up after attacking
if (attacker instanceof Vampire) {
if (victim instanceof Cleric && victim.getShieldBonus() == 0) {
if (victim.isOnBoard() && victim.getLevel() > 1) {
interact.tellPlayer(interact.msgBuild(crtFT, 42, victim.getPieceID()), false); // "The Vampire has sucked an additional level out of the " + BRWLRS[passIn] + "!"
int newLevel = crtFT.getBrawler(victim.getPieceID()).getLevel() - 1;
crtFT.getBrawler(victim.getPieceID()).setLevel(newLevel);
}
else if (victim.isOnBoard() && victim.getLevel() == 1) {
interact.tellPlayer(interact.msgBuild(crtFT, 43, victim.getPieceID()), false); // "The Vampire attacks, and the bloodless husk of the " + BRWLRS[passIn] + " is tossed off of the board!"
crtFT = clearSpace(crtFT, victim.getPieceID());
victim.remove();
}
}
if (canVampireMoveUp(crtFT, dstn)) {
interact.tellPlayer(4, 7, false); // "The Vampire has drunk the sweet nectar of another brawler, and it regains some of its strength!"
interact.tellPlayer(interact.msgBuild(crtFT, 55, (dstn + 100)), true); // "Would you like to move the Vampire up to space #" + (dstn + 100) + "? "
if(interact.getYesOrNo()) {
fcr[0]++;
interact.tellPlayer(interact.msgBuild(crtFT, 56, fcr[0]), false); // "The Vampire cackles as it heads back up to level " + fcr[0] + "..."
}
}
}
// This should account for bumping a brawler and its possessed treasure off the board together
if (!victim.isOnBoard() && victim.isHandsFull()) {
int lostLoot = victim.getPossession();
crtFT.getBrawler(victim.getPieceID()).setHandsFull(false);
crtFT.getBrawler(victim.getPieceID()).setPossession(-1);
crtFT.getBrawler(lostLoot).remove();
interact.tellPlayer(interact.msgBuild(crtFT, 21, lostLoot), false); // "The " + BRWLRS[lostloot] + " has been bumped off of the board!";
}
} // end of If There Is A Victim
boolean ghostSpace = crtFT.getLocation(dstn).isGhostEffect();
if (crtFT.getBrawler(mover) instanceof Mage && ghostSpace) {
Brawler ghost = new Ghost();
boolean ringHeld = false;
for (int gr = 0; gr < crtFT.getAllBrawlers().length; gr++) if (crtFT.getBrawler(gr) instanceof Ghost) ghost = crtFT.getBrawler(gr);
for (int b = 0; b < crtFT.getAllBrawlers().length; b++) {
if (crtFT.getBrawler(b).getPossession() == treasures[2].getPieceID()) {
ringHeld = true;
crtFT.dispossess(treasures[2].getPieceID());
}
}
if (!ringHeld && treasures[2].isOnBoard()) crtFT = clearSpace(crtFT, treasures[2].getPieceID());
crtFT.takePossession(mover, treasures[2].getPieceID());
crtFT = clearSpace(crtFT, ghost.getPieceID());
interact.tellPlayer(interact.msgBuild(crtFT, 51, mover), false); // "The Ghost dissipates, and the " + BRWLRS[mover] + " discovers a magic ring!"
}
crtFT.getLocation(fcr[0], fcr[1], fcr[2]).setOccupied(true);
crtFT.getLocation(fcr[0], fcr[1], fcr[2]).setOccupiedBy(mover);
crtFT.getBrawler(mover).setFloor(fcr[0]);
crtFT.getBrawler(mover).setColumn(fcr[1]);
crtFT.getBrawler(mover).setRow(fcr[2]);
crtFT = updateLastUsed(crtFT, mover);
// move treasure too?
if (crtFT.getBrawler(mover).isHandsFull()) {
crtFT.getBrawler(crtFT.getBrawler(mover).getPossession()).setFloor(fcr[0]);
crtFT.getBrawler(crtFT.getBrawler(mover).getPossession()).setColumn(fcr[1]);
crtFT.getBrawler(crtFT.getBrawler(mover).getPossession()).setRow(fcr[2]);
}
if (crtFT.isRedsTurn()) crtFT.setRedCanPlace(true);
else crtFT.setBlueCanPlace(true);
crtFT.updateGameRecord("move", subject, dstn, object);
interact.space();
return crtFT;
} // end of finishMoveTurn()
// prereq: brawler is assumed to be a legit piece to move, and dstn is assumed to be a legit board space
// returns int on whether passed in brawler number can legitimately move to passed in destination in passed in game
// the int code is 0 for true, or a number of the test that was failed
private static int isLegitDestination(GameData crtILD, int brawler, int dstn) {
boolean occupado = false;
int[] fcrA = splitBoardSpace(dstn);
Brawler mover = crtILD.getBrawler(brawler);
BoardSpace origin = crtILD.getLocation(mover.getFloor(), mover.getColumn(), mover.getRow());
// is legit space?
BoardSpace dstnA = crtILD.getLocation(dstn);
int[] playground = crtILD.buildPlayground(brawler);
if (dstnA.isOccupied()) occupado = true;
// test 1: if mover is a mage, can he blink or teleport to dstn?
if (mover instanceof Mage) {
if (mover.isPoweredUp() && (mover.getFloor() == fcrA[0])) return 0; // mover is a CL3 Mage who can teleport there
if (!occupado && (mover.getColumn() == dstnA.getColumn() || mover.getRow() == dstnA.getRow())) return 0; // mover is a Mage who can blink there
}
// test 2: Is the sentinel effect on the origin space, and if so is mover trying to move up or down?
else if (origin.isSentinelEffect() && mover.getFloor() != dstnA.getFloor() && !(mover instanceof Sentinel)) return 2;
// test 3: Is mover a Nemesis trying to move up?
else if (mover instanceof Nemesis && dstnA.getFloor() > mover.getFloor()) return 3;
//test 4: Is mover a Monster trying to move to a BL higher than its CL?
else if (mover instanceof Monster && dstnA.getFloor() > mover.getLevel()) return 4;
// test 5: is dstn a space that mover could move to (fail--return 5, pass--go on)
boolean inThePlayground = false;
int dstnAID = dstnA.getLocationID();
for (int p = 0; p < playground.length; p++) {
if (dstnAID == playground[p]) inThePlayground = true;
}
if (!inThePlayground) return 5;
// test 6: Is the ghost LOS with mover? If so, is mover trying to move toward ghost?
if (tryingToMoveTowardsGhost(crtILD, brawler, dstn)) return 6;
// test 7: is mover trying to attack treasure? If so, does it already possess some?
try {
Brawler victim = crtILD.getBrawler(dstnA.getOccupiedBy());
if (mover.isHandsFull() && (victim instanceof Treasure || victim.isHandsFull())) return 7;
// test 8: is mover a Character trying to attack another Character when the Princess is on the same floor?
Princess princess = new Princess();
for (int p = 0; p < crtILD.getAllBrawlers().length; p++) if (crtILD.getBrawler(p) instanceof Princess) princess = (Princess) crtILD.getBrawler(p);
if (mover instanceof Character && victim instanceof Character && princess.isOnBoard() && princess.getFloor() == victim.getFloor()) return 8;
}
catch (ArrayIndexOutOfBoundsException ex) {}
return 0;
} // end of isLegitDestination()
// returns boolean array of brawlers available to be moved by current player, this turn
private static boolean[] sortAvailable(GameData crtSA) {
// the extra spot at the end of the array is the exit code (for what?)
boolean[] av = new boolean[crtSA.getAllBrawlers().length];
Brawler brawlX = new Diamond(); // Diamond is arbitrary
for (int m = 0; m < av.length; m++) {
brawlX = crtSA.getBrawler(m);
boolean colorMatch = ((crtSA.isRedsTurn() && brawlX.isRed()) || (!crtSA.isRedsTurn() && brawlX.isBlue()));
boolean paralyzed = false;
if (brawlX.isOnBoard()) paralyzed = crtSA.getLocation(brawlX.getFloor(), brawlX.getColumn(), brawlX.getRow()).isGhostEffect();
if (brawlX instanceof Character) {
if (!colorMatch || !brawlX.isOnBoard() || brawlX.isUsedLast() || paralyzed) av[m] = false;
else av[m] = true;
continue;
}
if ((brawlX instanceof Nemesis) || (brawlX instanceof Monster) || (brawlX instanceof NPC)) {
if (!brawlX.isOnBoard() || brawlX.isUsedLast() || paralyzed) av[m] = false;
else av[m] = true;
continue;
}
if (brawlX instanceof Treasure) av[m] = false;
if (brawlX.isOnBoard() && crtSA.getLocation(brawlX.getFloor(), brawlX.getColumn(), brawlX.getRow()).isGhostEffect()) av[m] = false;
}
return av;
}
private static boolean tryingToMoveTowardsGhost(GameData crt, int mover, int dstn) {
if (crt.getBrawler(mover) instanceof Mage) return false; // Mages can move towards the Ghost all they want.
LineOfSight los = new LineOfSight();
// find the ghost and the mover
Ghost ghost = new Ghost();
for (int g = 0; g < crt.getAllBrawlers().length; g++) if (crt.getBrawler(g) instanceof Ghost) ghost = (Ghost) crt.getBrawler(g);
Brawler scooby = crt.getBrawler(mover);
// is the ghost currently LOS with mover? if not then don't worry about this.
boolean isLOS = los.calculate(crt, scooby, ghost);
if (!isLOS) return false;
// we are LOS, which direction is the Ghost from Scooby?
// 1 2 3
// 4 5
// 6 7 8
int directionA = 0; int directionB = 0;
int gc = ghost.getColumn(); int gr = ghost.getRow(); int sc = scooby.getColumn(); int sr = scooby.getRow();
if (gc < sc && gr < sr) directionA = 1;
if (gc == sc && gr < sr) directionA = 2;
if (gc > sc && gr < sr) directionA = 3;
if (gc < sc && gr == sr) directionA = 4;
if (gc > sc && gr == sr) directionA = 5;
if (gc < sc && gr > sr) directionA = 6;
if (gc == sc && gr > sr) directionA = 7;
if (gc > sc && gr > sr) directionA = 8;
// which direction is dstn from mover?
int[] dstnB = splitBoardSpace(dstn);
int dc = dstnB[1]; int dr = dstnB[2];
if (dc < sc && dr < sr) directionB = 1;
if (dc == sc && dr < sr) directionB = 2;
if (dc > sc && dr < sr) directionB = 3;
if (dc < sc && dr == sr) directionB = 4;
if (dc > sc && dr == sr) directionB = 5;
if (dc < sc && dr > sr) directionB = 6;
if (dc == sc && dr > sr) directionB = 7;
if (dc > sc && dr > sr) directionB = 8;
// is it the same direction? IS IT?
if (directionA == directionB) return true;
else return false;
}
} // end of Move class
| JKisling/RPG_Grid_Brawl | Move.java |
136 |
//----------------------------------------------------
// The following code was generated by CUP v0.11a beta 20060608
// Wed Dec 14 19:40:01 EST 2016
//----------------------------------------------------
package mjparser;
import java_cup.runtime.*;
import java.util.*;
import java.io.PrintWriter;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.File;
import java.io.FileNotFoundException;
import ast.node.*;
/** CUP v0.11a beta 20060608 generated parser.
* @version Wed Dec 14 19:40:01 EST 2016
*/
public class mj extends java_cup.runtime.lr_parser {
/** Default constructor. */
public mj() {super();}
/** Constructor which sets the default scanner. */
public mj(java_cup.runtime.Scanner s) {super(s);}
/** Constructor which sets the default scanner. */
public mj(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}
/** Production table. */
protected static final short _production_table[][] =
unpackFromStrings(new String[] {
"\000\101\000\002\002\004\000\002\002\007\000\002\017" +
"\002\000\002\006\022\000\002\007\005\000\002\005\004" +
"\000\002\005\005\000\002\005\002\000\002\004\013\000" +
"\002\004\007\000\002\004\011\000\002\004\007\000\002" +
"\004\007\000\002\004\007\000\002\004\011\000\002\004" +
"\011\000\002\004\011\000\002\004\011\000\002\004\006" +
"\000\002\010\005\000\002\010\005\000\002\010\005\000" +
"\002\010\004\000\002\010\003\000\002\010\005\000\002" +
"\010\005\000\002\010\005\000\002\010\010\000\002\010" +
"\006\000\002\010\006\000\002\010\004\000\002\010\006" +
"\000\002\010\010\000\002\010\003\000\002\010\003\000" +
"\002\010\003\000\002\010\005\000\002\010\003\000\002" +
"\010\006\000\002\010\003\000\002\010\003\000\002\010" +
"\010\000\002\003\011\000\002\003\013\000\002\003\002" +
"\000\002\011\016\000\002\011\002\000\002\012\006\000" +
"\002\012\004\000\002\012\002\000\002\013\003\000\002" +
"\013\003\000\002\013\003\000\002\013\003\000\002\013" +
"\003\000\002\013\003\000\002\013\003\000\002\013\003" +
"\000\002\014\005\000\002\014\003\000\002\014\002\000" +
"\002\015\005\000\002\015\002\000\002\016\006\000\002" +
"\016\002" });
/** Access to production table. */
public short[][] production_table() {return _production_table;}
/** Parse-action table. */
protected static final short[][] _action_table =
unpackFromStrings(new String[] {
"\000\264\000\004\017\005\001\002\000\004\002\266\001" +
"\002\000\004\046\006\001\002\000\004\044\007\001\002" +
"\000\004\037\010\001\002\000\004\061\247\001\002\000" +
"\006\002\uffd5\037\013\001\002\000\004\002\000\001\002" +
"\000\004\061\014\001\002\000\006\011\015\040\016\001" +
"\002\000\026\012\uffc1\013\uffc1\014\uffc1\015\uffc1\032\uffc1" +
"\036\uffc1\047\uffc1\050\uffc1\051\uffc1\061\uffc1\001\002\000" +
"\004\061\017\001\002\000\004\011\020\001\002\000\026" +
"\012\uffc1\013\uffc1\014\uffc1\015\uffc1\032\uffc1\036\uffc1\047" +
"\uffc1\050\uffc1\051\uffc1\061\uffc1\001\002\000\026\012\uffd3" +
"\013\024\014\022\015\034\032\023\036\025\047\032\050" +
"\030\051\027\061\031\001\002\000\004\061\uffcf\001\002" +
"\000\022\013\024\014\022\015\034\036\025\047\032\050" +
"\030\051\027\061\031\001\002\000\004\061\uffce\001\002" +
"\000\004\061\uffcc\001\002\000\004\012\037\001\002\000" +
"\004\061\uffc9\001\002\000\004\061\uffca\001\002\000\004" +
"\061\uffc8\001\002\000\004\061\uffcb\001\002\000\004\061" +
"\035\001\002\000\004\061\uffcd\001\002\000\004\044\036" +
"\001\002\000\074\005\uffc2\007\uffc2\011\uffc2\012\uffc2\013" +
"\uffc2\014\uffc2\015\uffc2\020\uffc2\025\uffc2\026\uffc2\031\uffc2" +
"\032\uffc2\033\uffc2\036\uffc2\047\uffc2\050\uffc2\051\uffc2\052" +
"\uffc2\054\uffc2\055\uffc2\056\uffc2\057\uffc2\060\uffc2\061\uffc2" +
"\062\uffc2\063\uffc2\064\uffc2\066\uffc2\067\uffc2\001\002\000" +
"\006\002\uffd5\037\013\001\002\000\004\002\uffd6\001\002" +
"\000\004\061\042\001\002\000\004\007\043\001\002\000" +
"\024\010\uffd0\013\024\014\022\015\034\036\025\047\032" +
"\050\030\051\027\061\031\001\002\000\004\010\051\001" +
"\002\000\004\061\046\001\002\000\006\010\uffd1\027\047" +
"\001\002\000\024\010\uffd0\013\024\014\022\015\034\036" +
"\025\047\032\050\030\051\027\061\031\001\002\000\004" +
"\010\uffd2\001\002\000\004\011\052\001\002\000\072\005" +
"\uffc1\007\uffc1\011\uffc1\012\uffc1\013\uffc1\014\uffc1\015\uffc1" +
"\020\uffc1\025\uffc1\026\uffc1\031\uffc1\033\uffc1\036\uffc1\047" +
"\uffc1\050\uffc1\051\uffc1\052\uffc1\054\uffc1\055\uffc1\056\uffc1" +
"\057\uffc1\060\uffc1\061\uffc1\062\uffc1\063\uffc1\064\uffc1\066" +
"\uffc1\067\uffc1\001\002\000\072\005\075\007\063\011\064" +
"\012\ufffa\013\024\014\022\015\034\020\062\025\057\026" +
"\056\031\077\033\ufffa\036\025\047\032\050\030\051\027" +
"\052\071\054\054\055\100\056\101\057\074\060\067\061" +
"\065\062\060\063\076\064\073\066\061\067\066\001\002" +
"\000\004\007\235\001\002\000\054\005\075\007\063\011" +
"\064\012\ufffa\020\062\025\057\026\056\031\077\033\ufffa" +
"\052\071\054\054\055\100\056\101\057\074\060\067\061" +
"\176\062\060\063\076\064\073\066\061\067\066\001\002" +
"\000\004\007\230\001\002\000\034\005\075\007\063\025" +
"\057\031\077\056\101\057\074\060\067\061\104\062\060" +
"\063\076\064\073\066\061\067\066\001\002\000\026\004" +
"\uffe0\005\uffe0\006\uffe0\010\uffe0\022\uffe0\023\uffe0\024\uffe0" +
"\027\uffe0\030\uffe0\044\uffe0\001\002\000\026\004\uffd9\005" +
"\uffd9\006\uffd9\010\uffd9\022\uffd9\023\uffd9\024\uffd9\027\uffd9" +
"\030\uffd9\044\uffd9\001\002\000\004\007\212\001\002\000" +
"\036\005\075\007\063\015\202\025\057\031\077\056\101" +
"\057\074\060\067\061\104\062\060\063\076\064\073\066" +
"\061\067\066\001\002\000\052\005\075\007\063\011\064" +
"\012\ufffa\020\062\025\057\026\056\031\077\052\071\054" +
"\054\055\100\056\101\057\074\060\067\061\176\062\060" +
"\063\076\064\073\066\061\067\066\001\002\000\024\004" +
"\uffdc\005\uffdc\006\uffdc\022\uffdc\023\uffdc\024\uffdc\030\uffdc" +
"\045\173\061\uffc8\001\002\000\026\004\uffda\005\uffda\006" +
"\uffda\010\uffda\022\uffda\023\uffda\024\uffda\027\uffda\030\uffda" +
"\044\uffda\001\002\000\026\004\uffea\005\uffea\006\uffea\010" +
"\uffea\022\uffea\023\uffea\024\uffea\027\uffea\030\uffea\044\uffea" +
"\001\002\000\020\004\110\005\112\006\113\022\106\023" +
"\111\024\107\030\165\001\002\000\004\007\155\001\002" +
"\000\006\012\uffc3\033\150\001\002\000\026\004\uffde\005" +
"\uffde\006\uffde\010\uffde\022\uffde\023\uffde\024\uffde\027\uffde" +
"\030\uffde\044\uffde\001\002\000\004\007\144\001\002\000" +
"\034\005\075\007\063\025\057\031\077\056\101\057\074" +
"\060\067\061\104\062\060\063\076\064\073\066\061\067" +
"\066\001\002\000\026\004\uffdf\005\uffdf\006\uffdf\010\uffdf" +
"\022\uffdf\023\uffdf\024\uffdf\027\uffdf\030\uffdf\044\uffdf\001" +
"\002\000\004\061\140\001\002\000\004\007\134\001\002" +
"\000\004\007\102\001\002\000\034\005\075\007\063\025" +
"\057\031\077\056\101\057\074\060\067\061\104\062\060" +
"\063\076\064\073\066\061\067\066\001\002\000\022\004" +
"\110\005\112\006\113\022\106\023\111\024\107\027\105" +
"\030\114\001\002\000\026\004\uffdc\005\uffdc\006\uffdc\010" +
"\uffdc\022\uffdc\023\uffdc\024\uffdc\027\uffdc\030\uffdc\044\uffdc" +
"\001\002\000\034\005\075\007\063\025\057\031\077\056" +
"\101\057\074\060\067\061\104\062\060\063\076\064\073" +
"\066\061\067\066\001\002\000\034\005\075\007\063\025" +
"\057\031\077\056\101\057\074\060\067\061\104\062\060" +
"\063\076\064\073\066\061\067\066\001\002\000\034\005" +
"\075\007\063\025\057\031\077\056\101\057\074\060\067" +
"\061\104\062\060\063\076\064\073\066\061\067\066\001" +
"\002\000\034\005\075\007\063\025\057\031\077\056\101" +
"\057\074\060\067\061\104\062\060\063\076\064\073\066" +
"\061\067\066\001\002\000\034\005\075\007\063\025\057" +
"\031\077\056\101\057\074\060\067\061\104\062\060\063" +
"\076\064\073\066\061\067\066\001\002\000\034\005\075" +
"\007\063\025\057\031\077\056\101\057\074\060\067\061" +
"\104\062\060\063\076\064\073\066\061\067\066\001\002" +
"\000\034\005\075\007\063\025\057\031\077\056\101\057" +
"\074\060\067\061\104\062\060\063\076\064\073\066\061" +
"\067\066\001\002\000\004\061\115\001\002\000\004\007" +
"\116\001\002\000\036\005\075\007\063\010\uffc5\025\057" +
"\031\077\056\101\057\074\060\067\061\104\062\060\063" +
"\076\064\073\066\061\067\066\001\002\000\024\004\110" +
"\005\112\006\113\010\uffc6\022\106\023\111\024\107\027" +
"\122\030\114\001\002\000\004\010\121\001\002\000\026" +
"\004\uffd8\005\uffd8\006\uffd8\010\uffd8\022\uffd8\023\uffd8\024" +
"\uffd8\027\uffd8\030\uffd8\044\uffd8\001\002\000\036\005\075" +
"\007\063\010\uffc5\025\057\031\077\056\101\057\074\060" +
"\067\061\104\062\060\063\076\064\073\066\061\067\066" +
"\001\002\000\004\010\uffc7\001\002\000\026\004\uffec\005" +
"\uffec\006\uffec\010\uffec\022\uffec\023\uffec\024\uffec\027\uffec" +
"\030\114\044\uffec\001\002\000\026\004\uffed\005\uffed\006" +
"\113\010\uffed\022\uffed\023\uffed\024\uffed\027\uffed\030\114" +
"\044\uffed\001\002\000\026\004\110\005\112\006\113\010" +
"\uffe7\022\uffe7\023\uffe7\024\uffe7\027\uffe7\030\114\044\uffe7" +
"\001\002\000\026\004\uffee\005\uffee\006\113\010\uffee\022" +
"\uffee\023\uffee\024\uffee\027\uffee\030\114\044\uffee\001\002" +
"\000\026\004\110\005\112\006\113\010\uffe8\022\106\023" +
"\111\024\uffe8\027\uffe8\030\114\044\uffe8\001\002\000\026" +
"\004\110\005\112\006\113\010\uffdd\022\uffdd\023\uffdd\024" +
"\uffdd\027\uffdd\030\114\044\uffdd\001\002\000\022\004\110" +
"\005\112\006\113\010\133\022\106\023\111\024\107\030" +
"\114\001\002\000\026\004\uffe1\005\uffe1\006\uffe1\010\uffe1" +
"\022\uffe1\023\uffe1\024\uffe1\027\uffe1\030\uffe1\044\uffe1\001" +
"\002\000\034\005\075\007\063\025\057\031\077\056\101" +
"\057\074\060\067\061\104\062\060\063\076\064\073\066" +
"\061\067\066\001\002\000\022\004\110\005\112\006\113" +
"\010\136\022\106\023\111\024\107\030\114\001\002\000" +
"\004\044\137\001\002\000\056\005\ufff8\007\ufff8\011\ufff8" +
"\012\ufff8\020\ufff8\021\ufff8\025\ufff8\026\ufff8\031\ufff8\033" +
"\ufff8\052\ufff8\054\ufff8\055\ufff8\056\ufff8\057\ufff8\060\ufff8" +
"\061\ufff8\062\ufff8\063\ufff8\064\ufff8\066\ufff8\067\ufff8\001" +
"\002\000\004\007\141\001\002\000\004\010\142\001\002" +
"\000\026\004\uffdb\005\uffdb\006\uffdb\010\uffdb\022\uffdb\023" +
"\uffdb\024\uffdb\027\uffdb\030\uffdb\044\uffdb\001\002\000\026" +
"\004\uffeb\005\uffeb\006\uffeb\010\uffeb\022\uffeb\023\uffeb\024" +
"\uffeb\027\uffeb\030\114\044\uffeb\001\002\000\004\065\145" +
"\001\002\000\004\010\146\001\002\000\026\004\uffe2\005" +
"\uffe2\006\uffe2\010\uffe2\022\uffe2\023\uffe2\024\uffe2\027\uffe2" +
"\030\uffe2\044\uffe2\001\002\000\004\012\153\001\002\000" +
"\034\005\075\007\063\025\057\031\077\056\101\057\074" +
"\060\067\061\104\062\060\063\076\064\073\066\061\067" +
"\066\001\002\000\022\004\110\005\112\006\113\022\106" +
"\023\111\024\107\030\114\044\152\001\002\000\004\012" +
"\uffc4\001\002\000\006\012\uffd3\032\023\001\002\000\004" +
"\012\uffd4\001\002\000\034\005\075\007\063\025\057\031" +
"\077\056\101\057\074\060\067\061\104\062\060\063\076" +
"\064\073\066\061\067\066\001\002\000\022\004\110\005" +
"\112\006\113\022\106\023\111\024\107\027\157\030\114" +
"\001\002\000\034\005\075\007\063\025\057\031\077\056" +
"\101\057\074\060\067\061\104\062\060\063\076\064\073" +
"\066\061\067\066\001\002\000\022\004\110\005\112\006" +
"\113\022\106\023\111\024\107\027\161\030\114\001\002" +
"\000\034\005\075\007\063\025\057\031\077\056\101\057" +
"\074\060\067\061\104\062\060\063\076\064\073\066\061" +
"\067\066\001\002\000\022\004\110\005\112\006\113\010" +
"\163\022\106\023\111\024\107\030\114\001\002\000\004" +
"\044\164\001\002\000\056\005\ufff9\007\ufff9\011\ufff9\012" +
"\ufff9\020\ufff9\021\ufff9\025\ufff9\026\ufff9\031\ufff9\033\ufff9" +
"\052\ufff9\054\ufff9\055\ufff9\056\ufff9\057\ufff9\060\ufff9\061" +
"\ufff9\062\ufff9\063\ufff9\064\ufff9\066\ufff9\067\ufff9\001\002" +
"\000\004\061\166\001\002\000\004\007\167\001\002\000" +
"\036\005\075\007\063\010\uffc5\025\057\031\077\056\101" +
"\057\074\060\067\061\104\062\060\063\076\064\073\066" +
"\061\067\066\001\002\000\004\010\171\001\002\000\022" +
"\004\uffd8\005\uffd8\006\uffd8\022\uffd8\023\uffd8\024\uffd8\030" +
"\uffd8\044\172\001\002\000\056\005\ufff0\007\ufff0\011\ufff0" +
"\012\ufff0\020\ufff0\021\ufff0\025\ufff0\026\ufff0\031\ufff0\033" +
"\ufff0\052\ufff0\054\ufff0\055\ufff0\056\ufff0\057\ufff0\060\ufff0" +
"\061\ufff0\062\ufff0\063\ufff0\064\ufff0\066\ufff0\067\ufff0\001" +
"\002\000\034\005\075\007\063\025\057\031\077\056\101" +
"\057\074\060\067\061\104\062\060\063\076\064\073\066" +
"\061\067\066\001\002\000\022\004\110\005\112\006\113" +
"\022\106\023\111\024\107\030\114\044\175\001\002\000" +
"\056\005\uffef\007\uffef\011\uffef\012\uffef\020\uffef\021\uffef" +
"\025\uffef\026\uffef\031\uffef\033\uffef\052\uffef\054\uffef\055" +
"\uffef\056\uffef\057\uffef\060\uffef\061\uffef\062\uffef\063\uffef" +
"\064\uffef\066\uffef\067\uffef\001\002\000\022\004\uffdc\005" +
"\uffdc\006\uffdc\022\uffdc\023\uffdc\024\uffdc\030\uffdc\045\173" +
"\001\002\000\004\012\200\001\002\000\006\012\ufffb\033" +
"\ufffb\001\002\000\022\004\110\005\112\006\113\010\211" +
"\022\106\023\111\024\107\030\114\001\002\000\004\010" +
"\203\001\002\000\010\007\206\060\205\061\204\001\002" +
"\000\026\004\uffe4\005\uffe4\006\uffe4\010\uffe4\022\uffe4\023" +
"\uffe4\024\uffe4\027\uffe4\030\uffe4\044\uffe4\001\002\000\026" +
"\004\uffe5\005\uffe5\006\uffe5\010\uffe5\022\uffe5\023\uffe5\024" +
"\uffe5\027\uffe5\030\uffe5\044\uffe5\001\002\000\034\005\075" +
"\007\063\025\057\031\077\056\101\057\074\060\067\061" +
"\104\062\060\063\076\064\073\066\061\067\066\001\002" +
"\000\022\004\110\005\112\006\113\010\210\022\106\023" +
"\111\024\107\030\114\001\002\000\026\004\uffe6\005\uffe6" +
"\006\uffe6\010\uffe6\022\uffe6\023\uffe6\024\uffe6\027\uffe6\030" +
"\uffe6\044\uffe6\001\002\000\026\004\uffe9\005\uffe9\006\uffe9" +
"\010\uffe9\022\uffe9\023\uffe9\024\uffe9\027\uffe9\030\uffe9\044" +
"\uffe9\001\002\000\034\005\075\007\063\025\057\031\077" +
"\056\101\057\074\060\067\061\104\062\060\063\076\064" +
"\073\066\061\067\066\001\002\000\022\004\110\005\112" +
"\006\113\010\214\022\106\023\111\024\107\030\114\001" +
"\002\000\050\005\075\007\063\011\216\020\062\025\057" +
"\026\056\031\077\052\071\054\054\055\100\056\101\057" +
"\074\060\067\061\176\062\060\063\076\064\073\066\061" +
"\067\066\001\002\000\056\005\ufff4\007\ufff4\011\ufff4\012" +
"\ufff4\020\ufff4\021\225\025\ufff4\026\ufff4\031\ufff4\033\ufff4" +
"\052\ufff4\054\ufff4\055\ufff4\056\ufff4\057\ufff4\060\ufff4\061" +
"\ufff4\062\ufff4\063\ufff4\064\ufff4\066\ufff4\067\ufff4\001\002" +
"\000\052\005\075\007\063\011\064\012\ufffa\020\062\025" +
"\057\026\056\031\077\052\071\054\054\055\100\056\101" +
"\057\074\060\067\061\176\062\060\063\076\064\073\066" +
"\061\067\066\001\002\000\056\005\ufff5\007\ufff5\011\ufff5" +
"\012\ufff5\020\ufff5\021\220\025\ufff5\026\ufff5\031\ufff5\033" +
"\ufff5\052\ufff5\054\ufff5\055\ufff5\056\ufff5\057\ufff5\060\ufff5" +
"\061\ufff5\062\ufff5\063\ufff5\064\ufff5\066\ufff5\067\ufff5\001" +
"\002\000\050\005\075\007\063\011\216\020\062\025\057" +
"\026\056\031\077\052\071\054\054\055\100\056\101\057" +
"\074\060\067\061\176\062\060\063\076\064\073\066\061" +
"\067\066\001\002\000\056\005\ufff1\007\ufff1\011\ufff1\012" +
"\ufff1\020\ufff1\021\ufff1\025\ufff1\026\ufff1\031\ufff1\033\ufff1" +
"\052\ufff1\054\ufff1\055\ufff1\056\ufff1\057\ufff1\060\ufff1\061" +
"\ufff1\062\ufff1\063\ufff1\064\ufff1\066\ufff1\067\ufff1\001\002" +
"\000\056\005\ufff2\007\ufff2\011\ufff2\012\ufff2\020\ufff2\021" +
"\ufff2\025\ufff2\026\ufff2\031\ufff2\033\ufff2\052\ufff2\054\ufff2" +
"\055\ufff2\056\ufff2\057\ufff2\060\ufff2\061\ufff2\062\ufff2\063" +
"\ufff2\064\ufff2\066\ufff2\067\ufff2\001\002\000\004\012\224" +
"\001\002\000\056\005\ufffd\007\ufffd\011\ufffd\012\ufffd\020" +
"\ufffd\021\ufffd\025\ufffd\026\ufffd\031\ufffd\033\ufffd\052\ufffd" +
"\054\ufffd\055\ufffd\056\ufffd\057\ufffd\060\ufffd\061\ufffd\062" +
"\ufffd\063\ufffd\064\ufffd\066\ufffd\067\ufffd\001\002\000\046" +
"\005\075\007\063\020\062\025\057\026\056\031\077\052" +
"\071\054\054\055\100\056\101\057\074\060\067\061\176" +
"\062\060\063\076\064\073\066\061\067\066\001\002\000" +
"\056\005\ufff3\007\ufff3\011\ufff3\012\ufff3\020\ufff3\021\ufff3" +
"\025\ufff3\026\ufff3\031\ufff3\033\ufff3\052\ufff3\054\ufff3\055" +
"\ufff3\056\ufff3\057\ufff3\060\ufff3\061\ufff3\062\ufff3\063\ufff3" +
"\064\ufff3\066\ufff3\067\ufff3\001\002\000\026\004\110\005" +
"\112\006\113\010\uffe3\022\106\023\111\024\107\027\uffe3" +
"\030\114\044\uffe3\001\002\000\034\005\075\007\063\025" +
"\057\031\077\056\101\057\074\060\067\061\104\062\060" +
"\063\076\064\073\066\061\067\066\001\002\000\022\004" +
"\110\005\112\006\113\010\232\022\106\023\111\024\107" +
"\030\114\001\002\000\004\011\216\001\002\000\056\005" +
"\ufff6\007\ufff6\011\ufff6\012\ufff6\020\ufff6\021\ufff6\025\ufff6" +
"\026\ufff6\031\ufff6\033\ufff6\052\ufff6\054\ufff6\055\ufff6\056" +
"\ufff6\057\ufff6\060\ufff6\061\ufff6\062\ufff6\063\ufff6\064\ufff6" +
"\066\ufff6\067\ufff6\001\002\000\006\012\ufffc\033\ufffc\001" +
"\002\000\034\005\075\007\063\025\057\031\077\056\101" +
"\057\074\060\067\061\104\062\060\063\076\064\073\066" +
"\061\067\066\001\002\000\022\004\110\005\112\006\113" +
"\022\106\023\111\024\107\027\237\030\114\001\002\000" +
"\034\005\075\007\063\025\057\031\077\056\101\057\074" +
"\060\067\061\104\062\060\063\076\064\073\066\061\067" +
"\066\001\002\000\022\004\110\005\112\006\113\010\241" +
"\022\106\023\111\024\107\030\114\001\002\000\004\044" +
"\242\001\002\000\056\005\ufff7\007\ufff7\011\ufff7\012\ufff7" +
"\020\ufff7\021\ufff7\025\ufff7\026\ufff7\031\ufff7\033\ufff7\052" +
"\ufff7\054\ufff7\055\ufff7\056\ufff7\057\ufff7\060\ufff7\061\ufff7" +
"\062\ufff7\063\ufff7\064\ufff7\066\ufff7\067\ufff7\001\002\000" +
"\026\012\uffd3\013\024\014\022\015\034\032\023\036\025" +
"\047\032\050\030\051\027\061\031\001\002\000\004\012" +
"\245\001\002\000\006\002\uffd5\037\013\001\002\000\004" +
"\002\uffd7\001\002\000\004\011\uffff\001\002\000\004\011" +
"\251\001\002\000\004\032\252\001\002\000\004\034\253" +
"\001\002\000\004\036\254\001\002\000\004\016\255\001" +
"\002\000\004\007\256\001\002\000\004\035\257\001\002" +
"\000\004\041\260\001\002\000\004\042\261\001\002\000" +
"\004\061\262\001\002\000\004\010\263\001\002\000\004" +
"\011\216\001\002\000\004\012\265\001\002\000\006\002" +
"\ufffe\037\ufffe\001\002\000\004\002\001\001\002" });
/** Access to parse-action table. */
public short[][] action_table() {return _action_table;}
/** <code>reduce_goto</code> table. */
protected static final short[][] _reduce_table =
unpackFromStrings(new String[] {
"\000\264\000\004\002\003\001\001\000\002\001\001\000" +
"\002\001\001\000\002\001\001\000\004\006\010\001\001" +
"\000\002\001\001\000\004\003\011\001\001\000\002\001" +
"\001\000\002\001\001\000\002\001\001\000\004\016\242" +
"\001\001\000\002\001\001\000\002\001\001\000\004\016" +
"\020\001\001\000\006\011\025\013\032\001\001\000\002" +
"\001\001\000\004\013\040\001\001\000\002\001\001\000" +
"\002\001\001\000\002\001\001\000\002\001\001\000\002" +
"\001\001\000\002\001\001\000\002\001\001\000\002\001" +
"\001\000\002\001\001\000\002\001\001\000\002\001\001" +
"\000\004\003\037\001\001\000\002\001\001\000\002\001" +
"\001\000\002\001\001\000\006\012\043\013\044\001\001" +
"\000\002\001\001\000\002\001\001\000\002\001\001\000" +
"\006\012\047\013\044\001\001\000\002\001\001\000\002" +
"\001\001\000\004\016\052\001\001\000\012\004\054\005" +
"\071\010\067\013\032\001\001\000\002\001\001\000\010" +
"\004\054\005\233\010\067\001\001\000\002\001\001\000" +
"\004\010\226\001\001\000\002\001\001\000\002\001\001" +
"\000\002\001\001\000\004\010\200\001\001\000\010\004" +
"\054\005\176\010\067\001\001\000\002\001\001\000\002" +
"\001\001\000\002\001\001\000\002\001\001\000\002\001" +
"\001\000\004\015\146\001\001\000\002\001\001\000\002" +
"\001\001\000\004\010\142\001\001\000\002\001\001\000" +
"\002\001\001\000\002\001\001\000\002\001\001\000\004" +
"\010\102\001\001\000\002\001\001\000\002\001\001\000" +
"\004\010\131\001\001\000\004\010\130\001\001\000\004" +
"\010\127\001\001\000\004\010\126\001\001\000\004\010" +
"\125\001\001\000\004\010\124\001\001\000\004\010\123" +
"\001\001\000\002\001\001\000\002\001\001\000\006\010" +
"\116\014\117\001\001\000\002\001\001\000\002\001\001" +
"\000\002\001\001\000\006\010\116\014\122\001\001\000" +
"\002\001\001\000\002\001\001\000\002\001\001\000\002" +
"\001\001\000\002\001\001\000\002\001\001\000\002\001" +
"\001\000\002\001\001\000\002\001\001\000\004\010\134" +
"\001\001\000\002\001\001\000\002\001\001\000\002\001" +
"\001\000\002\001\001\000\002\001\001\000\002\001\001" +
"\000\002\001\001\000\002\001\001\000\002\001\001\000" +
"\002\001\001\000\002\001\001\000\004\010\150\001\001" +
"\000\002\001\001\000\002\001\001\000\004\011\153\001" +
"\001\000\002\001\001\000\004\010\155\001\001\000\002" +
"\001\001\000\004\010\157\001\001\000\002\001\001\000" +
"\004\010\161\001\001\000\002\001\001\000\002\001\001" +
"\000\002\001\001\000\002\001\001\000\002\001\001\000" +
"\006\010\116\014\167\001\001\000\002\001\001\000\002" +
"\001\001\000\002\001\001\000\004\010\173\001\001\000" +
"\002\001\001\000\002\001\001\000\002\001\001\000\002" +
"\001\001\000\002\001\001\000\002\001\001\000\002\001" +
"\001\000\002\001\001\000\002\001\001\000\002\001\001" +
"\000\004\010\206\001\001\000\002\001\001\000\002\001" +
"\001\000\002\001\001\000\004\010\212\001\001\000\002" +
"\001\001\000\010\004\214\007\216\010\067\001\001\000" +
"\002\001\001\000\010\004\054\005\222\010\067\001\001" +
"\000\002\001\001\000\010\004\220\007\221\010\067\001" +
"\001\000\002\001\001\000\002\001\001\000\002\001\001" +
"\000\002\001\001\000\006\004\225\010\067\001\001\000" +
"\002\001\001\000\002\001\001\000\004\010\230\001\001" +
"\000\002\001\001\000\004\007\232\001\001\000\002\001" +
"\001\000\002\001\001\000\004\010\235\001\001\000\002" +
"\001\001\000\004\010\237\001\001\000\002\001\001\000" +
"\002\001\001\000\002\001\001\000\006\011\243\013\032" +
"\001\001\000\002\001\001\000\004\003\245\001\001\000" +
"\002\001\001\000\004\017\247\001\001\000\002\001\001" +
"\000\002\001\001\000\002\001\001\000\002\001\001\000" +
"\002\001\001\000\002\001\001\000\002\001\001\000\002" +
"\001\001\000\002\001\001\000\002\001\001\000\002\001" +
"\001\000\004\007\263\001\001\000\002\001\001\000\002" +
"\001\001\000\002\001\001" });
/** Access to <code>reduce_goto</code> table. */
public short[][] reduce_table() {return _reduce_table;}
/** Instance of action encapsulation class. */
protected CUP$mj$actions action_obj;
/** Action encapsulation object initializer. */
protected void init_actions()
{
action_obj = new CUP$mj$actions(this);
}
/** Invoke a user supplied parse action. */
public java_cup.runtime.Symbol do_action(
int act_num,
java_cup.runtime.lr_parser parser,
java.util.Stack stack,
int top)
throws java.lang.Exception
{
/* call code in generated class */
return action_obj.CUP$mj$do_action(act_num, parser, stack, top);
}
/** Indicates start state. */
public int start_state() {return 0;}
/** Indicates start production. */
public int start_production() {return 0;}
/** <code>EOF</code> Symbol index. */
public int EOF_sym() {return 0;}
/** <code>error</code> Symbol index. */
public int error_sym() {return 1;}
public PrintWriter out;
public String programName;
public void unrecovered_syntax_error(Symbol cur_SymbolValue) {
report_fatal_error("Fatal syntax error", cur_SymbolValue);
}
public void report_fatal_error(String message, Object info) {
report_error(message, info);
done_parsing();
Symbol SymbolValue = (Symbol)info;
mjparser.SymbolValue tok = (mjparser.SymbolValue)SymbolValue.value;
throw new mjparser.ParseException("Fatal parsing error",
tok.line, tok.pos);
}
public void report_error(String message, Object info) {
Symbol SymbolValue = (Symbol)info;
mjparser.SymbolValue tok = (mjparser.SymbolValue)SymbolValue.value;
System.err.println("[" + tok.line + "," + tok.pos + "] "
+ message + " at " + tok.toString() );
}
}
/** Cup generated class to encapsulate user supplied action code.*/
class CUP$mj$actions {
private final mj parser;
/** Constructor */
CUP$mj$actions(mj parser) {
this.parser = parser;
}
/** Method with the actual generated action code. */
public final java_cup.runtime.Symbol CUP$mj$do_action(
int CUP$mj$act_num,
java_cup.runtime.lr_parser CUP$mj$parser,
java.util.Stack CUP$mj$stack,
int CUP$mj$top)
throws java.lang.Exception
{
/* Symbol object for return from actions */
java_cup.runtime.Symbol CUP$mj$result;
/* select the action based on the action number */
switch (CUP$mj$act_num)
{
/*. . . . . . . . . . . . . . . . . . . .*/
case 64: // varibleDecl ::=
{
LinkedList<VarDecl> RESULT =null;
RESULT =new LinkedList<VarDecl>();
CUP$mj$result = parser.getSymbolFactory().newSymbol("varibleDecl",12, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 63: // varibleDecl ::= varibleDecl type ID SEMI
{
LinkedList<VarDecl> RESULT =null;
int varListleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int varListright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
LinkedList<VarDecl> varList = (LinkedList<VarDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int typleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int typright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IType typ = (IType)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
LinkedList<VarDecl> _varDecls = new LinkedList<VarDecl>();
VarDecl var = new VarDecl(name.line,name.pos,typ,name.lexeme);
if(varList!=null)
_varDecls.addAll(varList);
_varDecls.add(var);
RESULT = _varDecls;
CUP$mj$result = parser.getSymbolFactory().newSymbol("varibleDecl",12, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 62: // returnStatement ::=
{
IExp RESULT =null;
//System.out.println("no return type");
RESULT=null;
CUP$mj$result = parser.getSymbolFactory().newSymbol("returnStatement",11, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 61: // returnStatement ::= RETURN operation SEMI
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
IExp op = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
//System.out.println("return statement : "+ op);
RESULT = op;
CUP$mj$result = parser.getSymbolFactory().newSymbol("returnStatement",11, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 60: // args ::=
{
LinkedList<IExp> RESULT =null;
RESULT= new LinkedList<IExp>();
CUP$mj$result = parser.getSymbolFactory().newSymbol("args",10, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 59: // args ::= operation
{
LinkedList<IExp> RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp op = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
LinkedList list = new LinkedList<IExp>();
list.add(op);
//System.out.println("Single parameter");
RESULT= list;
CUP$mj$result = parser.getSymbolFactory().newSymbol("args",10, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 58: // args ::= operation COMMA args
{
LinkedList<IExp> RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp op = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int lstleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int lstright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
LinkedList<IExp> lst = (LinkedList<IExp>)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
LinkedList list = new LinkedList<IExp>();
if(lst!=null){
list.addAll(lst);
}
list.add(op);
RESULT= list;
CUP$mj$result = parser.getSymbolFactory().newSymbol("args",10, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 57: // type ::= ID
{
IType RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new ClassType(op.line,op.pos,op.lexeme);
CUP$mj$result = parser.getSymbolFactory().newSymbol("type",9, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 56: // type ::= MEGGYTONE
{
IType RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new ToneType(op.line,op.pos);
CUP$mj$result = parser.getSymbolFactory().newSymbol("type",9, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 55: // type ::= MEGGYBUTTON
{
IType RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new ButtonType(op.line,op.pos);
CUP$mj$result = parser.getSymbolFactory().newSymbol("type",9, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 54: // type ::= MEGGYCOLOR
{
IType RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new ColorType(op.line,op.pos);
CUP$mj$result = parser.getSymbolFactory().newSymbol("type",9, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 53: // type ::= VOID
{
IType RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new VoidType(op.line,op.pos);
CUP$mj$result = parser.getSymbolFactory().newSymbol("type",9, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 52: // type ::= BYTE
{
IType RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new ByteType(op.line,op.pos);
CUP$mj$result = parser.getSymbolFactory().newSymbol("type",9, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 51: // type ::= BOOLEAN
{
IType RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new BoolType(op.line,op.pos);
CUP$mj$result = parser.getSymbolFactory().newSymbol("type",9, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 50: // type ::= INT
{
IType RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new IntType(op.line,op.pos);
CUP$mj$result = parser.getSymbolFactory().newSymbol("type",9, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 49: // formal ::=
{
LinkedList<Formal> RESULT =null;
LinkedList lst = new LinkedList<Formal>();
//System.out.println(" inside empty parameter list is "+lst);
RESULT=lst;
CUP$mj$result = parser.getSymbolFactory().newSymbol("formal",8, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 48: // formal ::= type ID
{
LinkedList<Formal> RESULT =null;
int typleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int typright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
IType typ = (IType)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("type");
LinkedList lst = new LinkedList<Formal>();
Formal formal= new Formal(name.line,name.pos,typ,name.lexeme);
lst.add(formal);
RESULT=lst;
CUP$mj$result = parser.getSymbolFactory().newSymbol("formal",8, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 47: // formal ::= type ID COMMA formal
{
LinkedList<Formal> RESULT =null;
int typleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int typright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
IType typ = (IType)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int listleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int listright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
LinkedList<Formal> list = (LinkedList<Formal>)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
LinkedList lst = new LinkedList<Formal>();
Formal formal= new Formal(name.line,name.pos,typ,name.lexeme);
//System.out.println("type,formal");
if (list!=null)
{
//System.out.println(" formal ::"+list);
lst.addAll(list);
}
lst.add(formal);
//System.out.println(" inside parameter list is "+lst+" and param is " +formal);
RESULT=lst;
CUP$mj$result = parser.getSymbolFactory().newSymbol("formal",8, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 46: // methodDecl ::=
{
LinkedList<MethodDecl> RESULT =null;
RESULT= new LinkedList<MethodDecl>();
CUP$mj$result = parser.getSymbolFactory().newSymbol("methodDecl",7, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 45: // methodDecl ::= PUBLIC type ID LPAREN formal RPAREN LBRACE varibleDecl statement_list returnStatement RBRACE methodDecl
{
LinkedList<MethodDecl> RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-11)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-11)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-11)).value;
int typleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-10)).left;
int typright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-10)).right;
IType typ = (IType)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-10)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-9)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-9)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-9)).value;
int paramleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-7)).left;
int paramright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-7)).right;
LinkedList<Formal> param = (LinkedList<Formal>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-7)).value;
int varleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int varright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
LinkedList<VarDecl> var = (LinkedList<VarDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int blockleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int blockright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
List block = (List)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int rstmtleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int rstmtright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp rstmt = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int methodsleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int methodsright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
LinkedList<MethodDecl> methods = (LinkedList<MethodDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
LinkedList<Formal> _formals = new LinkedList<Formal>();
_formals.addAll(param);
LinkedList<VarDecl> _varDecls = new LinkedList<VarDecl>();// not required
LinkedList<IStatement> _statements = new LinkedList<IStatement>(); //--> blockstatement
//System.out.println(" method is "+name.lexeme );
_statements.addAll(block);
if(var!=null){
_varDecls.addAll(var);
}
MethodDecl method=new MethodDecl(op.line,op.pos,typ,name+"",_formals,_varDecls,_statements,rstmt);
LinkedList<MethodDecl> methodList = new LinkedList<MethodDecl>();
if (methods!=null)
methodList.addAll(methods);
methodList.add(method);
RESULT=methodList;
CUP$mj$result = parser.getSymbolFactory().newSymbol("methodDecl",7, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-11)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 44: // otherClass ::=
{
LinkedList<IClassDecl> RESULT =null;
LinkedList<IClassDecl> classDecl = new LinkedList<IClassDecl>();
//LinkedList<MethodDecl> _methodDecls = new LinkedList<MethodDecl>();
//_methodDecls.add(methods);
//RESULT=new TopClassDecl(0,0,"",_varDecls,_methodDecls);
RESULT = classDecl;
CUP$mj$result = parser.getSymbolFactory().newSymbol("otherClass",1, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 43: // otherClass ::= CLASS ID EXTENDS ID LBRACE varibleDecl methodDecl RBRACE otherClass
{
LinkedList<IClassDecl> RESULT =null;
int op1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-8)).left;
int op1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-8)).right;
SymbolValue op1 = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-8)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-7)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-7)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-7)).value;
int parentleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)).left;
int parentright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)).right;
SymbolValue parent = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-5)).value;
int varleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int varright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
LinkedList<VarDecl> var = (LinkedList<VarDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int methodsleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int methodsright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
LinkedList<MethodDecl> methods = (LinkedList<MethodDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int otherleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int otherright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
LinkedList<IClassDecl> other = (LinkedList<IClassDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
LinkedList<VarDecl> _varDecls = new LinkedList<VarDecl>();
LinkedList<MethodDecl> _methodDecls = new LinkedList<MethodDecl>();
//System.out.println("before : class is "+_methodDecls+" and statement list is "+methods );
if(var!=null){
_varDecls.addAll(var);
}
if(methods!=null){
_methodDecls.addAll(methods);
}
//System.out.println(" class is "+name );
LinkedList<IClassDecl> classDecl = new LinkedList<IClassDecl>();
ChildClassDecl classdec = new ChildClassDecl(op1.line,op1.pos,name+"",parent+"",_varDecls,_methodDecls);
classDecl.add((IClassDecl)classdec);
if(other!=null){
classDecl.addAll(other);
}
RESULT = classDecl;
CUP$mj$result = parser.getSymbolFactory().newSymbol("otherClass",1, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-8)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 42: // otherClass ::= CLASS ID LBRACE varibleDecl methodDecl RBRACE otherClass
{
LinkedList<IClassDecl> RESULT =null;
int op1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).left;
int op1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).right;
SymbolValue op1 = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-6)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-5)).value;
int varleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int varright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
LinkedList<VarDecl> var = (LinkedList<VarDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int methodsleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int methodsright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
LinkedList<MethodDecl> methods = (LinkedList<MethodDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int otherleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int otherright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
LinkedList<IClassDecl> other = (LinkedList<IClassDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
LinkedList<VarDecl> _varDecls = new LinkedList<VarDecl>();
LinkedList<MethodDecl> _methodDecls = new LinkedList<MethodDecl>();
//System.out.println("before : class is "+_methodDecls+" and statement list is "+methods );
if(var!=null){
_varDecls.addAll(var);
}
if(methods!=null){
_methodDecls.addAll(methods);
}
//System.out.println(" class is "+name );
LinkedList<IClassDecl> classDecl = new LinkedList<IClassDecl>();
TopClassDecl classdec = new TopClassDecl(op1.line,op1.pos,name+"",_varDecls,_methodDecls);
classDecl.add((IClassDecl)classdec);
if(other!=null){
classDecl.addAll(other);
}
RESULT = classDecl;
CUP$mj$result = parser.getSymbolFactory().newSymbol("otherClass",1, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 41: // operation ::= operation DOT ID LPAREN args RPAREN
{
IExp RESULT =null;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-5)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int _argsleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int _argsright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
LinkedList<IExp> _args = (LinkedList<IExp>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
RESULT = new CallExp(name.line,name.pos,e1,name.lexeme,_args);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 40: // operation ::= TONE_LITERAL
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new ToneLiteral(op.line,op.pos,op.lexeme,op.value);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 39: // operation ::= THIS
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT= new ThisLiteral(op.line,op.pos,op.lexeme,op.value);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 38: // operation ::= NEW ID LPAREN RPAREN
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
RESULT = new NewExp(op.line,op.pos,name+"");
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 37: // operation ::= ID
{
IExp RESULT =null;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new IdLiteral(name.line,name.pos,name+"");
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 36: // operation ::= operation LT operation
{
IExp RESULT =null;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int exleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int exright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue ex = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int e2left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e2right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp e2 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new LtExp(ex.line,ex.pos,e1,e2);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 35: // operation ::= COLOR_LITERAL
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new ColorLiteral(op.line,op.pos,op.lexeme,op.value);
//System.out.println("Color literal");
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 34: // operation ::= FALSE
{
IExp RESULT =null;
int op2left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int op2right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op2 = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new FalseLiteral(op2.line,op2.pos,op2.lexeme,op2.value);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 33: // operation ::= TRUE
{
IExp RESULT =null;
int op1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int op1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue op1 = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new TrueLiteral(op1.line,op1.pos,op1.lexeme,op1.value);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 32: // operation ::= MEGGYGETPIXEL LPAREN operation COMMA operation RPAREN
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-5)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
//System.out.println("getPixel");
RESULT= new MeggyGetPixel(op.line,op.pos,e,e1);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 31: // operation ::= MEGGYCHECKBUTTON LPAREN BUTTON_LITERAL RPAREN
{
IExp RESULT =null;
int exleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int exright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
SymbolValue ex = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
//System.out.println("CheckButton");
ButtonLiteral b= new ButtonLiteral(ex.line,ex.pos,op.lexeme,op.value);
RESULT = new MeggyCheckButton(ex.line,ex.pos,b);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 30: // operation ::= NOT operation
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("not");
RESULT= new NotExp(op.line,op.pos,e);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 29: // operation ::= LPAREN BYTE RPAREN ID
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int exleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int exright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue ex = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("op to byte operation");
IdLiteral e = new IdLiteral(ex.line,ex.pos,ex+"");
RESULT = new ByteCast(op.line, op.pos,e);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 28: // operation ::= LPAREN BYTE RPAREN INT_LITERAL
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int exleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int exright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue ex = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("op to byte operation");
IntLiteral e = new IntLiteral(ex.line,ex.pos,ex.lexeme,ex.value);
RESULT = new ByteCast(op.line, op.pos,e);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 27: // operation ::= LPAREN BYTE RPAREN LPAREN operation RPAREN
{
IExp RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
// System.out.println("op to byte operation");
RESULT = new ByteCast(op.line, op.pos,e);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-5)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 26: // operation ::= operation EQUAL operation
{
IExp RESULT =null;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("equal");
RESULT = new EqualExp(op.line, op.pos, e, e1);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 25: // operation ::= operation AND operation
{
IExp RESULT =null;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("and");
RESULT = new AndExp(op.line, op.pos, e, e1);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 24: // operation ::= LPAREN operation RPAREN
{
IExp RESULT =null;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
RESULT =e;
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 23: // operation ::= INT_LITERAL
{
IExp RESULT =null;
int exleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int exright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue ex = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("int");
RESULT = new IntLiteral(ex.line,ex.pos,ex.lexeme,ex.value);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 22: // operation ::= MINUS operation
{
IExp RESULT =null;
int exleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int exright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue ex = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp op = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new NegExp(ex.line,ex.pos,op);
//System.out.println("Unary minus");
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 21: // operation ::= operation TIMES operation
{
IExp RESULT =null;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("Times");
RESULT = new MulExp(op.line, op.pos, e, e1);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 20: // operation ::= operation MINUS operation
{
IExp RESULT =null;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("min");
RESULT = new MinusExp(op.line, op.pos, e, e1);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 19: // operation ::= operation PLUS operation
{
IExp RESULT =null;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("plus");
RESULT = new PlusExp(op.line, op.pos, e, e1);
CUP$mj$result = parser.getSymbolFactory().newSymbol("operation",6, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 18: // statement ::= ID ASSIGN operation SEMI
{
IStatement RESULT =null;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
IExp op = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
RESULT = new AssignStatement(name.line,name.pos, name.lexeme,op);
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 17: // statement ::= operation DOT ID LPAREN args RPAREN SEMI
{
IStatement RESULT =null;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-6)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int _argsleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int _argsright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
LinkedList<IExp> _args = (LinkedList<IExp>)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
RESULT = new CallStatement(name.line,name.pos,e1,name.lexeme,_args);
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 16: // statement ::= IF LPAREN operation RPAREN block_statement ELSE statement
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-6)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
BlockStatement e1 = (BlockStatement)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int e2left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e2right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IStatement e2 = (IStatement)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new IfStatement(op.line,op.pos,e,e1,e2);
//System.out.printf("cond -> if booleanExp then stmt\n");
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 15: // statement ::= IF LPAREN operation RPAREN block_statement ELSE block_statement
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-6)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
BlockStatement e1 = (BlockStatement)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int e2left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e2right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
BlockStatement e2 = (BlockStatement)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new IfStatement(op.line,op.pos,e,e1,e2);
//System.out.printf("cond -> if booleanExp then stmt\n");
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 14: // statement ::= IF LPAREN operation RPAREN statement ELSE statement
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-6)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IStatement e1 = (IStatement)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int e2left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e2right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IStatement e2 = (IStatement)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new IfStatement(op.line,op.pos,e,e1,e2);
//System.out.printf("cond -> if booleanExp then stmt\n");
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 13: // statement ::= IF LPAREN operation RPAREN statement
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
IStatement e1 = (IStatement)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new IfStatement(op.line,op.pos,e,e1,null);
//System.out.printf("cond -> if booleanExp then stmt\n");
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 12: // statement ::= IF LPAREN operation RPAREN block_statement
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
BlockStatement e1 = (BlockStatement)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
RESULT = new IfStatement(op.line,op.pos,e,e1,null);
//System.out.printf("cond -> if booleanExp then stmt\n");
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 11: // statement ::= WHILE LPAREN operation RPAREN block_statement
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int stmtleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int stmtright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
BlockStatement stmt = (BlockStatement)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
//System.out.println("while");
RESULT= new WhileStatement(op.line,op.pos,e,stmt);
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 10: // statement ::= MEGGYTONESTART LPAREN operation COMMA operation RPAREN SEMI
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-6)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int e2left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int e2right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e2 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
//System.out.println("delay");
RESULT = new MeggyToneStart(op.line,op.pos,e,e2);
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 9: // statement ::= MEGGYDELAY LPAREN operation RPAREN SEMI
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
//System.out.println("delay");
RESULT = new MeggyDelay(op.line,op.pos,e);
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 8: // statement ::= MEGGYSETPIXEL LPAREN operation COMMA operation COMMA operation RPAREN SEMI
{
IStatement RESULT =null;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-8)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-8)).right;
SymbolValue op = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-8)).value;
int eleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).left;
int eright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-6)).right;
IExp e = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-6)).value;
int e1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int e1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
IExp e1 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int e2left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int e2right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
IExp e2 = (IExp)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
//System.out.println("Setpixel ");
//ColorLiteral c = new ColorLiteral(op.line,op.pos,e2.lexeme,e2.value);
RESULT = new MeggySetPixel(op.line,op.pos,e,e1,e2);
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement",2, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-8)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 7: // statement_list ::=
{
List RESULT =null;
LinkedList list = new LinkedList<IStatement>();
RESULT = list;
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement_list",3, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 6: // statement_list ::= LBRACE statement_list RBRACE
{
List RESULT =null;
int list1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int list1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
List list1 = (List)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
List list = new LinkedList<IStatement>();
if(list1!=null){
list.addAll(list1);
}
RESULT = list;
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement_list",3, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 5: // statement_list ::= statement statement_list
{
List RESULT =null;
int op2left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int op2right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
IStatement op2 = (IStatement)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int lst1left = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int lst1right = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
List lst1 = (List)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
List list = new LinkedList<IStatement>();
if(lst1!=null){
list.addAll(lst1);
}
//System.out.println("statement "+op2);
if(op2!=null){
list.add(op2);
}
RESULT = list;
CUP$mj$result = parser.getSymbolFactory().newSymbol("statement_list",3, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 4: // block_statement ::= LBRACE statement_list RBRACE
{
BlockStatement RESULT =null;
int exleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).left;
int exright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)).right;
SymbolValue ex = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-2)).value;
int listleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int listright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
List list = (List)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
// end of class
//System.out.println(" main");
RESULT = new BlockStatement(ex.line,ex.pos,list);
CUP$mj$result = parser.getSymbolFactory().newSymbol("block_statement",5, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-2)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 3: // main_class ::= CLASS ID NT$0 LBRACE PUBLIC STATIC VOID MAIN LPAREN STRING LBRACKET RBRACKET ID RPAREN block_statement RBRACE
{
MainClass RESULT =null;
// propagate RESULT from NT$0
RESULT = (MainClass) ((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-13)).value;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-14)).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-14)).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-14)).value;
int op1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-8)).left;
int op1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-8)).right;
SymbolValue op1 = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-8)).value;
int paramleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).left;
int paramright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-3)).right;
SymbolValue param = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-3)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
BlockStatement op = (BlockStatement)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
//System.out.println("End of Main");
RESULT = new MainClass(op1.line,op1.pos,name+"",param+"",op);
CUP$mj$result = parser.getSymbolFactory().newSymbol("main_class",4, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-15)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 2: // NT$0 ::=
{
MainClass RESULT =null;
int nameleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int nameright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
SymbolValue name = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
// Check filename is class name, if not exit with error message
if(!parser.programName.equals(name+".java"))
{ System.out.println("Filename and Classname are different");
System.exit(0);}
CUP$mj$result = parser.getSymbolFactory().newSymbol("NT$0",13, ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 1: // program ::= IMPORT MEGGY SEMI main_class otherClass
{
Object RESULT =null;
int op1left = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).left;
int op1right = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)).right;
SymbolValue op1 = (SymbolValue)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-4)).value;
int opleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int opright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
MainClass op = (MainClass)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
int pleft = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).left;
int pright = ((java_cup.runtime.Symbol)CUP$mj$stack.peek()).right;
LinkedList<IClassDecl> p = (LinkedList<IClassDecl>)((java_cup.runtime.Symbol) CUP$mj$stack.peek()).value;
LinkedList<IClassDecl> _classDecls = new LinkedList<IClassDecl>() ;
_classDecls.addAll(p);
RESULT = new Program(op1.line,op1.pos,op,_classDecls);
//System.out.println("program");
CUP$mj$result = parser.getSymbolFactory().newSymbol("program",0, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-4)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
return CUP$mj$result;
/*. . . . . . . . . . . . . . . . . . . .*/
case 0: // $START ::= program EOF
{
Object RESULT =null;
int start_valleft = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).left;
int start_valright = ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)).right;
Object start_val = (Object)((java_cup.runtime.Symbol) CUP$mj$stack.elementAt(CUP$mj$top-1)).value;
RESULT = start_val;
CUP$mj$result = parser.getSymbolFactory().newSymbol("$START",0, ((java_cup.runtime.Symbol)CUP$mj$stack.elementAt(CUP$mj$top-1)), ((java_cup.runtime.Symbol)CUP$mj$stack.peek()), RESULT);
}
/* ACCEPT */
CUP$mj$parser.done_parsing();
return CUP$mj$result;
/* . . . . . .*/
default:
throw new Exception(
"Invalid action number found in internal parse table");
}
}
}
| TedisAgolli/MeggyJava-Compiler | mj.java |
137 | /*
* Copyright (c) 2016 SNLAB and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.mapleapp.impl;
// TODO: Need all these packages??
import org.opendaylight.maple.core.increment.app.MapleAppBase;
import org.opendaylight.maple.core.increment.packet.Ethernet;
import org.opendaylight.maple.core.increment.packet.IPv4;
import org.opendaylight.maple.core.increment.tracetree.MaplePacket;
import org.opendaylight.maple.core.increment.tracetree.Route;
public class M1 extends MapleAppBase {
private static final String H1 = "10.0.0.1";
private static final int H1_IP = IPv4.toIPv4Address(H1);
private static final String H2 = "10.0.0.2";
private static final int H2_IP = IPv4.toIPv4Address(H2);
private static final int HTTP_PORT = 80;
// TODO: Better explain the path construct:
// TODO: Use s1, s2, ... in the construction if possible
private static final String[] H12_HIGH_PATH = { "openflow:1:3", "openflow:2:2", "openflow:4:1" };
private static final String[] H12_LOW_PATH = { "openflow:1:4", "openflow:3:2", "openflow:4:1" };
private static final String[] H21_HIGH_PATH = { "openflow:4:4", "openflow:2:1", "openflow:1:1" };
private static final String[] H21_LOW_PATH = { "openflow:4:5", "openflow:3:1", "openflow:1:1" };
@Override
public void onPacket(MaplePacket pkt) {
int ethType = pkt.ethType();
// For IPv4 traffic only
if ( ethType == Ethernet.TYPE_IPv4) {
// H1 -> H2
if ( pkt.IPv4SrcIs(H1_IP) && pkt.IPv4DstIs(H2_IP) ) {
String[] path = null;
if ( ! pkt.TCPDstPortIs(HTTP_PORT) ) { // All non HTTP IP, e.g., UDP, PING, SSH
path = H12_LOW_PATH;
} else { // Only HTTP traffic
path = H12_HIGH_PATH;
}
pkt.setRoute(path);
// Other host pairs
}
// H2 -> H1
else if ( pkt.IPv4SrcIs(H2_IP) && pkt.IPv4DstIs(H1_IP) ) {
String[] path = null;
if ( ! pkt.TCPSrcPortIs(HTTP_PORT) ) {
path = H21_LOW_PATH;
} else {
path = H21_HIGH_PATH;
}
pkt.setRoute(path);
// All other pairs non than H1 <-> H2
} else {
pkt.setRoute(Route.DROP);
}
} // end of ethType == Ethernet.TYPE_IPv4
else { // Other type of traffic handled by another Maple App
passToNext(pkt);
}
} // end of onPacket
}
| snlab/fastmaple16 | M1.java |
141 | package org.usfirst.frc.team302.robot;
import java.io.BufferedReader;
import java.io.FileReader;
import org.usfirst.frc.team302.robot.commands.CommandFactory;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
public class OI extends Robot
{
/**
* This class is the glue that binds the controls on the physical operator interface to the commands and command groups that allow control of the
* robot.
*/
// constants for the tokens on each comma separated value line of the profile
private final int m_stickToken = 0;
private final int m_buttonToken = 1;
private final int m_commandToken = 2;
private final int m_stateToken = 3;
private final int m_tokensPerLine = 4;
// constants for the joystick IDs
private final int m_invalidJoystickID = -1;
private final int m_driverJoystickID = 0;
private final int m_copilotJoystickID = 1;
private final int m_copilot2JoystickID = 2;
private final int m_invalidState = -1;
private final int m_pressedID = 1;
private final int m_heldID = 2;
private final int m_released = 3;
private final int m_trigger = 4;
private final int m_buttonInvalid = -1;
private final int m_buttonA = 1;
private final int m_buttonB= 2;
private final int m_buttonX = 3;
private final int m_buttonY = 4;
private final int m_upperRightButton = 5;
private final int m_upperLeftButton = 6;
private final int m_buttonBack = 7;
private final int m_buttonStart = 8;
private final int m_buttonRStick = 9;
private final int m_buttonLStick = 10;
private final int m_buttonLTrigger = 11;
private final int m_buttonRTrigger = 12;
private Joystick m_driverControl;
private Joystick m_copilotControl;
private Joystick m_copilot2Control;
private static OI m_oi = null;
private Button[] driverButtons;
private Button[] copilotButtons;
private Button[] copilot2Buttons;
public OI()
{
//// CREATING BUTTONS
// One type of button is a joystick button which is any button on a
//// joystick.
// You create one by telling it which joystick it's on and which button
// number it is.
m_driverControl = new Joystick(RobotMap.DRIVER_CONTROLLER);
m_copilotControl = new Joystick(RobotMap.COPILOT_CONTROLLER);
m_copilot2Control = new Joystick(RobotMap.COPILOT_2_CONTROLLER);
copilotButtons = new Button[10];
driverButtons = new Button[10];
copilot2Buttons = new Button[10];
for(int y = 0; y <= 9; y++)
{
copilotButtons[y] = new JoystickButton(m_copilotControl, y + 1);
}
for(int y = 0; y <=9; y++)
{
copilot2Buttons[y] = new JoystickButton(m_copilot2Control, y+1);
}
for(int y = 0; y <= 9; y++)
{
driverButtons[y] = new JoystickButton(m_driverControl, y + 1);
}
}
public static OI getOI()
{
if(m_oi == null)
{
m_oi = new OI();
}
return m_oi;
}
public void readFile(String oiSelected)
{
//fileName must be the full directory on the robot
String fileName = "/home/admin/" + oiSelected + ".txt";
//read that file!
try
{
FileReader inputFile = new FileReader(fileName);
BufferedReader buffReader = new BufferedReader(inputFile);
String line;
while ((line = buffReader.readLine()) != null)
{
// Skip comment lines that begin with a #
if (line.trim().startsWith("#"))
{
continue;
}
// Parse the line and associate the command to the appropriate button
assignCommand(line);
}
buffReader.close();
}
catch (Exception e)
{
System.out.println("Error while reading file line by line:" + e.getMessage());
}
}
/**
* assignCommand - given a comma separated line from the command-button mapping profile, this method will
* parse the string into 4 tokens (stick, button, button state, command). This will be validated
* and if it is good, assign the command to the button action.
* @param line line from the configuration file that doesn't begin with a comment character
*/
public void assignCommand(String line)
{
if (line != null)
{
// Parse the string into 3 tokens ButtonID, ButtonState and CommandID where each thing is separated by commas
String[] items = line.split(",");
if (items.length == m_tokensPerLine)
{
// Get Joystick ID
int stickID = getStickID(items[m_stickToken]);
if (stickID > m_invalidJoystickID)
{
Joystick stick = getStick(stickID);
if (stick != null)
{
// Get Button ID
int buttonID = getButtonID(items[m_buttonToken]); // if using Button Description
if (buttonID > m_buttonInvalid)
{
int stateID = getStateID(items[m_stateToken].toLowerCase());
if(stateID > m_invalidState)
{
// Get Command
String commandName = items[m_commandToken].toLowerCase(); // if using Command Description
if(stickID == 0)
{
switch(stateID)
{
case 1:
driverButtons[buttonID - 1].whenPressed(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 2:
driverButtons[buttonID - 1].whileHeld(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 3:
driverButtons[buttonID - 1].whenReleased(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 4:
if(isPressed(m_driverControl, buttonID - 9)) //TODO Ask Joosh about -9
{
CommandFactory.getCommandFactory().getCommand(commandName).start();
}
break;
default:
break;
}
}
else if(stickID == 1)
{
switch(stateID)
{
case 1:
copilotButtons[buttonID - 1].whenPressed(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 2:
copilotButtons[buttonID - 1].whileHeld(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 3:
copilotButtons[buttonID - 1].whenReleased(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 4:
if(isPressed(m_copilotControl, buttonID - 9))
{
CommandFactory.getCommandFactory().getCommand(commandName).start();
}
break;
default:
break;
}
}
else if(stickID == 2)
{
switch(stateID)
{
case 1:
copilot2Buttons[buttonID - 1].whenPressed(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 2:
copilot2Buttons[buttonID - 1].whileHeld(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 3:
copilot2Buttons[buttonID - 1].whenReleased(CommandFactory.getCommandFactory().getCommand(commandName));
break;
case 4:
if(isPressed(m_copilot2Control, buttonID - 9))
{
CommandFactory.getCommandFactory().getCommand(commandName).start();
}
break;
default:
break;
}
}
else
{
System.out.println("you done messed up");
}
}
}
else
{
System.out.println("invalid line - invalid stick");
}
}
else
{
System.out.println("invalid line - invalid stick");
}
}
else
{
System.out.println("invalid line - invalid stick identifer:" + line);
}
}
else
{
System.out.println("invalid line - not enough tokens:" + line);
}
}
}
/*
* getStickID - Given a stick label, this returns the ID of the stick (driver or co-pilot)
*
* @param stickLabel = string read from the file that indicates what Joystick to associate the
* command to
* @return int version of the button state
*/
public int getStickID(String stickLabel)
{
int stickID = m_invalidJoystickID;
if (stickLabel != null)
{
String lcStickLabel = stickLabel.toLowerCase(); // make it lowercase for compares
switch (lcStickLabel)
{
case "driverjoystick":
stickID = m_driverJoystickID;
break;
case "copilotjoystick":
stickID = m_copilotJoystickID;
break;
case "copilot2joystick":
stickID = m_copilot2JoystickID;
break;
default:
System.out.println("Invalid stick Label:" + stickLabel);
stickID = m_invalidJoystickID;
break;
}
}
return stickID;
}
/*
getStick - given a stick ID (driver or co-pilot), this will return the joystick to process.
@param stickID = 1 = driver, 2 = co-pilot
@return int version of the button state
*/
public Joystick getStick(int stickID)
{
Joystick stick = null;
switch (stickID)
{
case 0:
if (m_driverControl == null)
{
m_driverControl = new Joystick(m_driverJoystickID);
}
stick = m_driverControl;
break;
case 1:
if (m_copilotControl == null)
{
m_copilotControl = new Joystick(m_copilotJoystickID);
}
stick = m_copilotControl;
break;
case 2:
if (m_copilot2Control == null)
{
m_copilot2Control = new Joystick(m_copilot2JoystickID);
}
stick = m_copilot2Control;
break;
default:
System.out.println("Invalid stick id:" + stickID);
stick = null;
break;
}
return stick;
}
/**
* getButtonID - given a button label, this returns the corresponding button ID.
*
* @param buttonLabel = string identifying the button to map
* @return button identifier (int)
*/
public int getButtonID(String buttonLabel)
{
int buttonID = m_buttonInvalid;
if (buttonLabel != null)
{
String lcButtonLabel = buttonLabel.toLowerCase(); // make it lowercase for compares
switch (lcButtonLabel)
{
case "x":
buttonID = m_buttonX;
break;
case "a":
buttonID = m_buttonA;
break;
case "b":
buttonID = m_buttonB;
break;
case "y":
buttonID = m_buttonY;
break;
case "LB":
buttonID = m_upperLeftButton;
break;
case "RB":
buttonID = m_upperRightButton;
break;
case "back":
buttonID = m_buttonBack;
break;
case "start":
buttonID = m_buttonStart;
break;
case "lstick":
buttonID = m_buttonLStick;
break;
case "rstick":
buttonID = m_buttonRStick;
break;
case "lt":
buttonID = m_buttonLTrigger;
break;
case "rt":
buttonID = m_buttonRTrigger;
break;
default:
System.out.println("Invalid button Label:" + buttonLabel);
break;
}
}
return buttonID;
}
/**
* getStateID - determines the number of the state based on the text file.
*
* @param stateName = string of the state name
* @return stateID = the number corresponding with the name
*
*/
public int getStateID(String stateName)
{
int stateID = m_invalidState;
switch (stateName)
{
case "whenpressed":
stateID = m_pressedID;
break;
case "whileheld":
stateID = m_heldID;
break;
case "whenreleased":
stateID = m_released;
break;
case "trigger":
stateID = m_trigger;
break;
default:
break;
}
return stateID;
}
public double getValue(Joystick m_joystick, int axis)
{
return m_joystick.getRawAxis(axis);
}
public boolean isPressed(Joystick m_joystick, int axis)
{
double value;
boolean trigger = false;
value = getValue(m_joystick, axis);
if (value > 0)
{
trigger = true;
}else{
trigger = false;
}
return trigger;
}
public Joystick getCopilotJoystick()
{
return m_copilotControl;
}
public Joystick getDriverJoystick()
{
return m_driverControl;
}
public Joystick getCopilot2Joystick()
{
return m_copilot2Control;
}
}
| Team302/2016Stronghold | OI.java |
145 | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
/**
* Write a description of class A here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class A extends VirtualKeyboard
{
/**
* Act - do whatever the A wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public A()
{
image.drawString("A", x, y);
gi.drawImage(image,0,0);
setImage(image);
}
public void act()
{
/* Hangman hangman = (Hangman) getWorld();
wordtoguess = hangman.getWordToGuess();*/
WordToGuess wordtoguess = new WordToGuess();
if(Greenfoot.mouseClicked(this) && !isClick)
{
image.setColor(Color.GREEN);
image.drawString("A", x, y);
System.out.println("pressed A");
wordtoguess.setAlphabetGuessed("A",getWorld());
isClick = true;
}
}
}
| singhalsurbhi07/202-Hangman | A.java |
154 | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
/**
* Write a description of class K here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class K extends VirtualKeyboard
{
/**
* Act - do whatever the K wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public K()
{
image.drawString("K", x, y);
gi.drawImage(image,0,0);
setImage(image);
}
public void act()
{ /* Hangman hangman = (Hangman) getWorld();
wordtoguess = hangman.getWordToGuess();*/
WordToGuess wordtoguess = new WordToGuess();
if(Greenfoot.mouseClicked(this) && !isClick)
{
image.setColor(Color.GREEN);
image.drawString("K", x, y);
wordtoguess.setAlphabetGuessed("K",getWorld());
isClick = true;
}
}
}
| singhalsurbhi07/202-Hangman | K.java |
157 | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
/**
* Write a description of class G here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class G extends VirtualKeyboard
{
/**
* Act - do whatever the G wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public G()
{
image.drawString("G", x, y);
gi.drawImage(image,0,0);
setImage(image);
}
public void act()
{
/* Hangman hangman = (Hangman) getWorld();
wordtoguess = hangman.getWordToGuess();*/
WordToGuess wordtoguess = new WordToGuess();
if(Greenfoot.mouseClicked(this) && !isClick)
{
image.setColor(Color.GREEN);
image.drawString("G", x, y);
System.out.println("pressed G");
wordtoguess.setAlphabetGuessed("G",getWorld());
isClick = true;
}
}
}
| singhalsurbhi07/202-Hangman | G.java |
162 | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
/**
* Write a description of class B here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class B extends VirtualKeyboard
{
/**
* Act - do whatever the B wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public B()
{
image.drawString("B", x, y);
gi.drawImage(image,0,0);
setImage(image);
}
public void act()
{
/* Hangman hangman = (Hangman) getWorld();
wordtoguess = hangman.getWordToGuess();*/
WordToGuess wordtoguess = new WordToGuess();
if(Greenfoot.mouseClicked(this) && !isClick)
{
image.setColor(Color.GREEN);
image.drawString("B", x, y);
wordtoguess.setAlphabetGuessed("B",getWorld());
isClick = true;
}
}
}
| singhalsurbhi07/202-Hangman | B.java |
167 | import java.io.*;
import java.net.Socket;
import java.util.StringTokenizer;
// client program
public class Client
{
public Client(String serverIP, int sport) {
this.serverIP = serverIP;
this.sport = sport;
}
public void initialize() {
System.out.println("ConTo: "+ this.serverIP + " LclPort: " + sport);
socket = null;
pw = null;
br = null;
// the bri is for user input, br is used for sending requests throught socket.
bri = new BufferedReader(new InputStreamReader(System.in));
try {
socket = new Socket(serverIP, sport);
pw = new PrintWriter(socket.getOutputStream());
br = new BufferedReader(new InputStreamReader(socket.getInputStream()));
} catch (Exception e) {
e.printStackTrace();
}
}
public void signIN() {
signin = "Signin "+myname;
// sends the message over the socket.
pw.println(signin);
pw.flush();
System.out.println("Signin..");
//wait for the Ok reply.
String okrep = "";
try {
okrep = br.readLine();
} catch(IOException e) {
e.printStackTrace();
}
if(okrep.equals("Ok")) {
System.out.println("Signin success.");
} else {
System.out.println("Failed..");
System.exit(-1);
}
}
public void prompts() {
System.out.println("Enter <mail> to check your emails");
System.out.println("Enter <send> to send email");
System.out.println("Enter <signout> to exit");
}
public void searchMode() {
try{
br.readLine();
} catch(IOException e) {
e.printStackTrace();
}
while (true)
{
srep = "";
prompts();
try {
data = bri.readLine(); //reads line.
//checking if this was the signout command
if(data.equals("signout")) {
dt2 = "signout";
System.out.println(dt2);
//send signout
pw.println(dt2);
pw.flush();
break;
}
// code to get your email.
if(data.startsWith("mail") && data.length() == 4) {
System.out.println("Check your emails");
//send mail
pw.println("mail");
pw.flush();
data = br.readLine();
System.out.println("---EMAILS---\n");
System.out.println(data);
System.out.println("------------\n");
}
// command to send email.
if(data.startsWith("send") && (data.length() == 4)) {
String receiverName;
String receiverPort;
String email;
String cmdToServer;
System.out.println("Enter receivers name: ");
data = bri.readLine(); //reads line.
receiverName = data;
System.out.println("Enter server's port : ");
data = bri.readLine();
receiverPort = data;
System.out.println("Write email for : " + receiverName);
data = bri.readLine();
email = data;
cmdToServer = "mail "+receiverName+"@"+serverIP+":"+receiverPort+" "+email;
System.out.println(cmdToServer);
//send message
pw.println(cmdToServer);
pw.flush();
String dump = br.readLine();
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public static void main(String[] args)
{
if (args.length != 3) {
System.out.println("Error: you forgot <server IP> <port>");
return;
}
serverIP = args[0];
sport = Integer.decode(args[1]);
myname = args[2];
c = new Client(serverIP, sport);
c.initialize(); //initializing the connection.
c.signIN(); // signin
c.searchMode(); //functionality of search and getting Server's replies.
}
private static Client c;
private static String str, data, dt2, serverIP, srep, listOfFiles, signin, myname;
private static int sport, ttt;
private Socket socket;
public static PrintWriter pw;
private static String freply;
private BufferedReader br, bri;
private StringTokenizer stoken;
}
| NikosMouzakitis/email_server_distributed_systems | c.java |
168 | // 58. Length of Last Word
class Solution {
public int lengthOfLastWord(String s) {
return s.trim().split(" ")[s.trim().split(" ").length-1].length();
}
} | YatinDora81/Leetcode_Ques | 58.java |
169 | class Solution {
public int numberOfMatches(int n) {
int ans = 0;
while (n > 1) {
if (n % 2 == 0) {
ans += n / 2;
n = n / 2;
} else {
ans += (n - 1) / 2;
n = (n - 1) / 2 + 1;
}
}
return ans;
}
}
| ashi-gaur/DSA | Count of Matches in Tournament |
170 | package com.example.zooapp;
public final class R {
public static final class anim {
public static final int abc_fade_in = 2130771968;
public static final int abc_fade_out = 2130771969;
public static final int abc_grow_fade_in_from_bottom = 2130771970;
public static final int abc_popup_enter = 2130771971;
public static final int abc_popup_exit = 2130771972;
public static final int abc_shrink_fade_out_from_bottom = 2130771973;
public static final int abc_slide_in_bottom = 2130771974;
public static final int abc_slide_in_top = 2130771975;
public static final int abc_slide_out_bottom = 2130771976;
public static final int abc_slide_out_top = 2130771977;
public static final int abc_tooltip_enter = 2130771978;
public static final int abc_tooltip_exit = 2130771979;
public static final int btn_checkbox_to_checked_box_inner_merged_animation = 2130771980;
public static final int btn_checkbox_to_checked_box_outer_merged_animation = 2130771981;
public static final int btn_checkbox_to_checked_icon_null_animation = 2130771982;
public static final int btn_checkbox_to_unchecked_box_inner_merged_animation = 2130771983;
public static final int btn_checkbox_to_unchecked_check_path_merged_animation = 2130771984;
public static final int btn_checkbox_to_unchecked_icon_null_animation = 2130771985;
public static final int btn_radio_to_off_mtrl_dot_group_animation = 2130771986;
public static final int btn_radio_to_off_mtrl_ring_outer_animation = 2130771987;
public static final int btn_radio_to_off_mtrl_ring_outer_path_animation = 2130771988;
public static final int btn_radio_to_on_mtrl_dot_group_animation = 2130771989;
public static final int btn_radio_to_on_mtrl_ring_outer_animation = 2130771990;
public static final int btn_radio_to_on_mtrl_ring_outer_path_animation = 2130771991;
public static final int design_bottom_sheet_slide_in = 2130771992;
public static final int design_bottom_sheet_slide_out = 2130771993;
public static final int design_snackbar_in = 2130771994;
public static final int design_snackbar_out = 2130771995;
public static final int fragment_close_enter = 2130771996;
public static final int fragment_close_exit = 2130771997;
public static final int fragment_fade_enter = 2130771998;
public static final int fragment_fade_exit = 2130771999;
public static final int fragment_fast_out_extra_slow_in = 2130772000;
public static final int fragment_open_enter = 2130772001;
public static final int fragment_open_exit = 2130772002;
public static final int mtrl_bottom_sheet_slide_in = 2130772003;
public static final int mtrl_bottom_sheet_slide_out = 2130772004;
public static final int mtrl_card_lowers_interpolator = 2130772005;
private anim() {
}
}
public static final class animator {
public static final int design_appbar_state_list_animator = 2130837504;
public static final int design_fab_hide_motion_spec = 2130837505;
public static final int design_fab_show_motion_spec = 2130837506;
public static final int mtrl_btn_state_list_anim = 2130837507;
public static final int mtrl_btn_unelevated_state_list_anim = 2130837508;
public static final int mtrl_card_state_list_anim = 2130837509;
public static final int mtrl_chip_state_list_anim = 2130837510;
public static final int mtrl_extended_fab_change_size_motion_spec = 2130837511;
public static final int mtrl_extended_fab_hide_motion_spec = 2130837512;
public static final int mtrl_extended_fab_show_motion_spec = 2130837513;
public static final int mtrl_extended_fab_state_list_animator = 2130837514;
public static final int mtrl_fab_hide_motion_spec = 2130837515;
public static final int mtrl_fab_show_motion_spec = 2130837516;
public static final int mtrl_fab_transformation_sheet_collapse_spec = 2130837517;
public static final int mtrl_fab_transformation_sheet_expand_spec = 2130837518;
private animator() {
}
}
public static final class array {
public static final int meat = 2130903040;
public static final int vegies = 2130903041;
private array() {
}
}
public static final class attr {
public static final int actionBarDivider = 2130968576;
public static final int actionBarItemBackground = 2130968577;
public static final int actionBarPopupTheme = 2130968578;
public static final int actionBarSize = 2130968579;
public static final int actionBarSplitStyle = 2130968580;
public static final int actionBarStyle = 2130968581;
public static final int actionBarTabBarStyle = 2130968582;
public static final int actionBarTabStyle = 2130968583;
public static final int actionBarTabTextStyle = 2130968584;
public static final int actionBarTheme = 2130968585;
public static final int actionBarWidgetTheme = 2130968586;
public static final int actionButtonStyle = 2130968587;
public static final int actionDropDownStyle = 2130968588;
public static final int actionLayout = 2130968589;
public static final int actionMenuTextAppearance = 2130968590;
public static final int actionMenuTextColor = 2130968591;
public static final int actionModeBackground = 2130968592;
public static final int actionModeCloseButtonStyle = 2130968593;
public static final int actionModeCloseDrawable = 2130968594;
public static final int actionModeCopyDrawable = 2130968595;
public static final int actionModeCutDrawable = 2130968596;
public static final int actionModeFindDrawable = 2130968597;
public static final int actionModePasteDrawable = 2130968598;
public static final int actionModePopupWindowStyle = 2130968599;
public static final int actionModeSelectAllDrawable = 2130968600;
public static final int actionModeShareDrawable = 2130968601;
public static final int actionModeSplitBackground = 2130968602;
public static final int actionModeStyle = 2130968603;
public static final int actionModeWebSearchDrawable = 2130968604;
public static final int actionOverflowButtonStyle = 2130968605;
public static final int actionOverflowMenuStyle = 2130968606;
public static final int actionProviderClass = 2130968607;
public static final int actionTextColorAlpha = 2130968608;
public static final int actionViewClass = 2130968609;
public static final int activityChooserViewStyle = 2130968610;
public static final int alertDialogButtonGroupStyle = 2130968611;
public static final int alertDialogCenterButtons = 2130968612;
public static final int alertDialogStyle = 2130968613;
public static final int alertDialogTheme = 2130968614;
public static final int allowStacking = 2130968615;
public static final int alpha = 2130968616;
public static final int alphabeticModifiers = 2130968617;
public static final int animationMode = 2130968618;
public static final int appBarLayoutStyle = 2130968619;
public static final int arrowHeadLength = 2130968620;
public static final int arrowShaftLength = 2130968621;
public static final int assetName = 2130968622;
public static final int autoCompleteTextViewStyle = 2130968623;
public static final int autoSizeMaxTextSize = 2130968624;
public static final int autoSizeMinTextSize = 2130968625;
public static final int autoSizePresetSizes = 2130968626;
public static final int autoSizeStepGranularity = 2130968627;
public static final int autoSizeTextType = 2130968628;
public static final int background = 2130968629;
public static final int backgroundColor = 2130968630;
public static final int backgroundInsetBottom = 2130968631;
public static final int backgroundInsetEnd = 2130968632;
public static final int backgroundInsetStart = 2130968633;
public static final int backgroundInsetTop = 2130968634;
public static final int backgroundOverlayColorAlpha = 2130968635;
public static final int backgroundSplit = 2130968636;
public static final int backgroundStacked = 2130968637;
public static final int backgroundTint = 2130968638;
public static final int backgroundTintMode = 2130968639;
public static final int badgeGravity = 2130968640;
public static final int badgeStyle = 2130968641;
public static final int badgeTextColor = 2130968642;
public static final int barLength = 2130968643;
public static final int barrierAllowsGoneWidgets = 2130968644;
public static final int barrierDirection = 2130968645;
public static final int behavior_autoHide = 2130968646;
public static final int behavior_autoShrink = 2130968647;
public static final int behavior_draggable = 2130968648;
public static final int behavior_expandedOffset = 2130968649;
public static final int behavior_fitToContents = 2130968650;
public static final int behavior_halfExpandedRatio = 2130968651;
public static final int behavior_hideable = 2130968652;
public static final int behavior_overlapTop = 2130968653;
public static final int behavior_peekHeight = 2130968654;
public static final int behavior_saveFlags = 2130968655;
public static final int behavior_skipCollapsed = 2130968656;
public static final int borderWidth = 2130968657;
public static final int borderlessButtonStyle = 2130968658;
public static final int bottomAppBarStyle = 2130968659;
public static final int bottomNavigationStyle = 2130968660;
public static final int bottomSheetDialogTheme = 2130968661;
public static final int bottomSheetStyle = 2130968662;
public static final int boxBackgroundColor = 2130968663;
public static final int boxBackgroundMode = 2130968664;
public static final int boxCollapsedPaddingTop = 2130968665;
public static final int boxCornerRadiusBottomEnd = 2130968666;
public static final int boxCornerRadiusBottomStart = 2130968667;
public static final int boxCornerRadiusTopEnd = 2130968668;
public static final int boxCornerRadiusTopStart = 2130968669;
public static final int boxStrokeColor = 2130968670;
public static final int boxStrokeErrorColor = 2130968671;
public static final int boxStrokeWidth = 2130968672;
public static final int boxStrokeWidthFocused = 2130968673;
public static final int buttonBarButtonStyle = 2130968674;
public static final int buttonBarNegativeButtonStyle = 2130968675;
public static final int buttonBarNeutralButtonStyle = 2130968676;
public static final int buttonBarPositiveButtonStyle = 2130968677;
public static final int buttonBarStyle = 2130968678;
public static final int buttonCompat = 2130968679;
public static final int buttonGravity = 2130968680;
public static final int buttonIconDimen = 2130968681;
public static final int buttonPanelSideLayout = 2130968682;
public static final int buttonSize = 2130968683;
public static final int buttonStyle = 2130968684;
public static final int buttonStyleSmall = 2130968685;
public static final int buttonTint = 2130968686;
public static final int buttonTintMode = 2130968687;
public static final int cardBackgroundColor = 2130968688;
public static final int cardCornerRadius = 2130968689;
public static final int cardElevation = 2130968690;
public static final int cardForegroundColor = 2130968691;
public static final int cardMaxElevation = 2130968692;
public static final int cardPreventCornerOverlap = 2130968693;
public static final int cardUseCompatPadding = 2130968694;
public static final int cardViewStyle = 2130968695;
public static final int chainUseRtl = 2130968696;
public static final int checkboxStyle = 2130968697;
public static final int checkedButton = 2130968698;
public static final int checkedChip = 2130968699;
public static final int checkedIcon = 2130968700;
public static final int checkedIconEnabled = 2130968701;
public static final int checkedIconTint = 2130968702;
public static final int checkedIconVisible = 2130968703;
public static final int checkedTextViewStyle = 2130968704;
public static final int chipBackgroundColor = 2130968705;
public static final int chipCornerRadius = 2130968706;
public static final int chipEndPadding = 2130968707;
public static final int chipGroupStyle = 2130968708;
public static final int chipIcon = 2130968709;
public static final int chipIconEnabled = 2130968710;
public static final int chipIconSize = 2130968711;
public static final int chipIconTint = 2130968712;
public static final int chipIconVisible = 2130968713;
public static final int chipMinHeight = 2130968714;
public static final int chipMinTouchTargetSize = 2130968715;
public static final int chipSpacing = 2130968716;
public static final int chipSpacingHorizontal = 2130968717;
public static final int chipSpacingVertical = 2130968718;
public static final int chipStandaloneStyle = 2130968719;
public static final int chipStartPadding = 2130968720;
public static final int chipStrokeColor = 2130968721;
public static final int chipStrokeWidth = 2130968722;
public static final int chipStyle = 2130968723;
public static final int chipSurfaceColor = 2130968724;
public static final int circleCrop = 2130968725;
public static final int civ_border = 2130968726;
public static final int civ_border_color = 2130968727;
public static final int civ_border_color_direction = 2130968728;
public static final int civ_border_color_end = 2130968729;
public static final int civ_border_color_start = 2130968730;
public static final int civ_border_width = 2130968731;
public static final int civ_circle_color = 2130968732;
public static final int civ_circle_color_direction = 2130968733;
public static final int civ_circle_color_end = 2130968734;
public static final int civ_circle_color_start = 2130968735;
public static final int civ_shadow = 2130968736;
public static final int civ_shadow_color = 2130968737;
public static final int civ_shadow_gravity = 2130968738;
public static final int civ_shadow_radius = 2130968739;
public static final int closeIcon = 2130968740;
public static final int closeIconEnabled = 2130968741;
public static final int closeIconEndPadding = 2130968742;
public static final int closeIconSize = 2130968743;
public static final int closeIconStartPadding = 2130968744;
public static final int closeIconTint = 2130968745;
public static final int closeIconVisible = 2130968746;
public static final int closeItemLayout = 2130968747;
public static final int collapseContentDescription = 2130968748;
public static final int collapseIcon = 2130968749;
public static final int collapsedTitleGravity = 2130968750;
public static final int collapsedTitleTextAppearance = 2130968751;
public static final int color = 2130968752;
public static final int colorAccent = 2130968753;
public static final int colorBackgroundFloating = 2130968754;
public static final int colorButtonNormal = 2130968755;
public static final int colorControlActivated = 2130968756;
public static final int colorControlHighlight = 2130968757;
public static final int colorControlNormal = 2130968758;
public static final int colorError = 2130968759;
public static final int colorOnBackground = 2130968760;
public static final int colorOnError = 2130968761;
public static final int colorOnPrimary = 2130968762;
public static final int colorOnPrimarySurface = 2130968763;
public static final int colorOnSecondary = 2130968764;
public static final int colorOnSurface = 2130968765;
public static final int colorPrimary = 2130968766;
public static final int colorPrimaryDark = 2130968767;
public static final int colorPrimarySurface = 2130968768;
public static final int colorPrimaryVariant = 2130968769;
public static final int colorScheme = 2130968770;
public static final int colorSecondary = 2130968771;
public static final int colorSecondaryVariant = 2130968772;
public static final int colorSurface = 2130968773;
public static final int colorSwitchThumbNormal = 2130968774;
public static final int commitIcon = 2130968775;
public static final int constraintSet = 2130968776;
public static final int constraint_referenced_ids = 2130968777;
public static final int content = 2130968778;
public static final int contentDescription = 2130968779;
public static final int contentInsetEnd = 2130968780;
public static final int contentInsetEndWithActions = 2130968781;
public static final int contentInsetLeft = 2130968782;
public static final int contentInsetRight = 2130968783;
public static final int contentInsetStart = 2130968784;
public static final int contentInsetStartWithNavigation = 2130968785;
public static final int contentPadding = 2130968786;
public static final int contentPaddingBottom = 2130968787;
public static final int contentPaddingLeft = 2130968788;
public static final int contentPaddingRight = 2130968789;
public static final int contentPaddingTop = 2130968790;
public static final int contentScrim = 2130968791;
public static final int controlBackground = 2130968792;
public static final int coordinatorLayoutStyle = 2130968793;
public static final int cornerFamily = 2130968794;
public static final int cornerFamilyBottomLeft = 2130968795;
public static final int cornerFamilyBottomRight = 2130968796;
public static final int cornerFamilyTopLeft = 2130968797;
public static final int cornerFamilyTopRight = 2130968798;
public static final int cornerRadius = 2130968799;
public static final int cornerSize = 2130968800;
public static final int cornerSizeBottomLeft = 2130968801;
public static final int cornerSizeBottomRight = 2130968802;
public static final int cornerSizeTopLeft = 2130968803;
public static final int cornerSizeTopRight = 2130968804;
public static final int counterEnabled = 2130968805;
public static final int counterMaxLength = 2130968806;
public static final int counterOverflowTextAppearance = 2130968807;
public static final int counterOverflowTextColor = 2130968808;
public static final int counterTextAppearance = 2130968809;
public static final int counterTextColor = 2130968810;
public static final int customNavigationLayout = 2130968811;
public static final int dayInvalidStyle = 2130968812;
public static final int daySelectedStyle = 2130968813;
public static final int dayStyle = 2130968814;
public static final int dayTodayStyle = 2130968815;
public static final int defaultQueryHint = 2130968816;
public static final int dialogCornerRadius = 2130968817;
public static final int dialogPreferredPadding = 2130968818;
public static final int dialogTheme = 2130968819;
public static final int displayOptions = 2130968820;
public static final int divider = 2130968821;
public static final int dividerHorizontal = 2130968822;
public static final int dividerPadding = 2130968823;
public static final int dividerVertical = 2130968824;
public static final int drawableBottomCompat = 2130968825;
public static final int drawableEndCompat = 2130968826;
public static final int drawableLeftCompat = 2130968827;
public static final int drawableRightCompat = 2130968828;
public static final int drawableSize = 2130968829;
public static final int drawableStartCompat = 2130968830;
public static final int drawableTint = 2130968831;
public static final int drawableTintMode = 2130968832;
public static final int drawableTopCompat = 2130968833;
public static final int drawerArrowStyle = 2130968834;
public static final int dropDownListViewStyle = 2130968835;
public static final int dropdownListPreferredItemHeight = 2130968836;
public static final int editTextBackground = 2130968837;
public static final int editTextColor = 2130968838;
public static final int editTextStyle = 2130968839;
public static final int elevation = 2130968840;
public static final int elevationOverlayColor = 2130968841;
public static final int elevationOverlayEnabled = 2130968842;
public static final int emptyVisibility = 2130968843;
public static final int endIconCheckable = 2130968844;
public static final int endIconContentDescription = 2130968845;
public static final int endIconDrawable = 2130968846;
public static final int endIconMode = 2130968847;
public static final int endIconTint = 2130968848;
public static final int endIconTintMode = 2130968849;
public static final int enforceMaterialTheme = 2130968850;
public static final int enforceTextAppearance = 2130968851;
public static final int ensureMinTouchTargetSize = 2130968852;
public static final int errorContentDescription = 2130968853;
public static final int errorEnabled = 2130968854;
public static final int errorIconDrawable = 2130968855;
public static final int errorIconTint = 2130968856;
public static final int errorIconTintMode = 2130968857;
public static final int errorTextAppearance = 2130968858;
public static final int errorTextColor = 2130968859;
public static final int expandActivityOverflowButtonDrawable = 2130968860;
public static final int expanded = 2130968861;
public static final int expandedTitleGravity = 2130968862;
public static final int expandedTitleMargin = 2130968863;
public static final int expandedTitleMarginBottom = 2130968864;
public static final int expandedTitleMarginEnd = 2130968865;
public static final int expandedTitleMarginStart = 2130968866;
public static final int expandedTitleMarginTop = 2130968867;
public static final int expandedTitleTextAppearance = 2130968868;
public static final int extendMotionSpec = 2130968869;
public static final int extendedFloatingActionButtonStyle = 2130968870;
public static final int fabAlignmentMode = 2130968871;
public static final int fabAnimationMode = 2130968872;
public static final int fabCradleMargin = 2130968873;
public static final int fabCradleRoundedCornerRadius = 2130968874;
public static final int fabCradleVerticalOffset = 2130968875;
public static final int fabCustomSize = 2130968876;
public static final int fabSize = 2130968877;
public static final int fastScrollEnabled = 2130968878;
public static final int fastScrollHorizontalThumbDrawable = 2130968879;
public static final int fastScrollHorizontalTrackDrawable = 2130968880;
public static final int fastScrollVerticalThumbDrawable = 2130968881;
public static final int fastScrollVerticalTrackDrawable = 2130968882;
public static final int firstBaselineToTopHeight = 2130968883;
public static final int floatingActionButtonStyle = 2130968884;
public static final int font = 2130968885;
public static final int fontFamily = 2130968886;
public static final int fontProviderAuthority = 2130968887;
public static final int fontProviderCerts = 2130968888;
public static final int fontProviderFetchStrategy = 2130968889;
public static final int fontProviderFetchTimeout = 2130968890;
public static final int fontProviderPackage = 2130968891;
public static final int fontProviderQuery = 2130968892;
public static final int fontStyle = 2130968893;
public static final int fontVariationSettings = 2130968894;
public static final int fontWeight = 2130968895;
public static final int foregroundInsidePadding = 2130968896;
public static final int gapBetweenBars = 2130968897;
public static final int gestureInsetBottomIgnored = 2130968898;
public static final int goIcon = 2130968899;
public static final int haloColor = 2130968900;
public static final int haloRadius = 2130968901;
public static final int headerLayout = 2130968902;
public static final int height = 2130968903;
public static final int helperText = 2130968904;
public static final int helperTextEnabled = 2130968905;
public static final int helperTextTextAppearance = 2130968906;
public static final int helperTextTextColor = 2130968907;
public static final int hideMotionSpec = 2130968908;
public static final int hideOnContentScroll = 2130968909;
public static final int hideOnScroll = 2130968910;
public static final int hintAnimationEnabled = 2130968911;
public static final int hintEnabled = 2130968912;
public static final int hintTextAppearance = 2130968913;
public static final int hintTextColor = 2130968914;
public static final int homeAsUpIndicator = 2130968915;
public static final int homeLayout = 2130968916;
public static final int horizontalOffset = 2130968917;
public static final int hoveredFocusedTranslationZ = 2130968918;
public static final int icon = 2130968919;
public static final int iconEndPadding = 2130968920;
public static final int iconGravity = 2130968921;
public static final int iconPadding = 2130968922;
public static final int iconSize = 2130968923;
public static final int iconStartPadding = 2130968924;
public static final int iconTint = 2130968925;
public static final int iconTintMode = 2130968926;
public static final int iconifiedByDefault = 2130968927;
public static final int imageAspectRatio = 2130968928;
public static final int imageAspectRatioAdjust = 2130968929;
public static final int imageButtonStyle = 2130968930;
public static final int indeterminateProgressStyle = 2130968931;
public static final int initialActivityCount = 2130968932;
public static final int insetForeground = 2130968933;
public static final int isLightTheme = 2130968934;
public static final int isMaterialTheme = 2130968935;
public static final int itemBackground = 2130968936;
public static final int itemFillColor = 2130968937;
public static final int itemHorizontalPadding = 2130968938;
public static final int itemHorizontalTranslationEnabled = 2130968939;
public static final int itemIconPadding = 2130968940;
public static final int itemIconSize = 2130968941;
public static final int itemIconTint = 2130968942;
public static final int itemMaxLines = 2130968943;
public static final int itemPadding = 2130968944;
public static final int itemRippleColor = 2130968945;
public static final int itemShapeAppearance = 2130968946;
public static final int itemShapeAppearanceOverlay = 2130968947;
public static final int itemShapeFillColor = 2130968948;
public static final int itemShapeInsetBottom = 2130968949;
public static final int itemShapeInsetEnd = 2130968950;
public static final int itemShapeInsetStart = 2130968951;
public static final int itemShapeInsetTop = 2130968952;
public static final int itemSpacing = 2130968953;
public static final int itemStrokeColor = 2130968954;
public static final int itemStrokeWidth = 2130968955;
public static final int itemTextAppearance = 2130968956;
public static final int itemTextAppearanceActive = 2130968957;
public static final int itemTextAppearanceInactive = 2130968958;
public static final int itemTextColor = 2130968959;
public static final int keylines = 2130968960;
public static final int labelBehavior = 2130968961;
public static final int labelStyle = 2130968962;
public static final int labelVisibilityMode = 2130968963;
public static final int lastBaselineToBottomHeight = 2130968964;
public static final int layout = 2130968965;
public static final int layoutManager = 2130968966;
public static final int layout_anchor = 2130968967;
public static final int layout_anchorGravity = 2130968968;
public static final int layout_behavior = 2130968969;
public static final int layout_collapseMode = 2130968970;
public static final int layout_collapseParallaxMultiplier = 2130968971;
public static final int layout_constrainedHeight = 2130968972;
public static final int layout_constrainedWidth = 2130968973;
public static final int layout_constraintBaseline_creator = 2130968974;
public static final int layout_constraintBaseline_toBaselineOf = 2130968975;
public static final int layout_constraintBottom_creator = 2130968976;
public static final int layout_constraintBottom_toBottomOf = 2130968977;
public static final int layout_constraintBottom_toTopOf = 2130968978;
public static final int layout_constraintCircle = 2130968979;
public static final int layout_constraintCircleAngle = 2130968980;
public static final int layout_constraintCircleRadius = 2130968981;
public static final int layout_constraintDimensionRatio = 2130968982;
public static final int layout_constraintEnd_toEndOf = 2130968983;
public static final int layout_constraintEnd_toStartOf = 2130968984;
public static final int layout_constraintGuide_begin = 2130968985;
public static final int layout_constraintGuide_end = 2130968986;
public static final int layout_constraintGuide_percent = 2130968987;
public static final int layout_constraintHeight_default = 2130968988;
public static final int layout_constraintHeight_max = 2130968989;
public static final int layout_constraintHeight_min = 2130968990;
public static final int layout_constraintHeight_percent = 2130968991;
public static final int layout_constraintHorizontal_bias = 2130968992;
public static final int layout_constraintHorizontal_chainStyle = 2130968993;
public static final int layout_constraintHorizontal_weight = 2130968994;
public static final int layout_constraintLeft_creator = 2130968995;
public static final int layout_constraintLeft_toLeftOf = 2130968996;
public static final int layout_constraintLeft_toRightOf = 2130968997;
public static final int layout_constraintRight_creator = 2130968998;
public static final int layout_constraintRight_toLeftOf = 2130968999;
public static final int layout_constraintRight_toRightOf = 2130969000;
public static final int layout_constraintStart_toEndOf = 2130969001;
public static final int layout_constraintStart_toStartOf = 2130969002;
public static final int layout_constraintTop_creator = 2130969003;
public static final int layout_constraintTop_toBottomOf = 2130969004;
public static final int layout_constraintTop_toTopOf = 2130969005;
public static final int layout_constraintVertical_bias = 2130969006;
public static final int layout_constraintVertical_chainStyle = 2130969007;
public static final int layout_constraintVertical_weight = 2130969008;
public static final int layout_constraintWidth_default = 2130969009;
public static final int layout_constraintWidth_max = 2130969010;
public static final int layout_constraintWidth_min = 2130969011;
public static final int layout_constraintWidth_percent = 2130969012;
public static final int layout_dodgeInsetEdges = 2130969013;
public static final int layout_editor_absoluteX = 2130969014;
public static final int layout_editor_absoluteY = 2130969015;
public static final int layout_goneMarginBottom = 2130969016;
public static final int layout_goneMarginEnd = 2130969017;
public static final int layout_goneMarginLeft = 2130969018;
public static final int layout_goneMarginRight = 2130969019;
public static final int layout_goneMarginStart = 2130969020;
public static final int layout_goneMarginTop = 2130969021;
public static final int layout_insetEdge = 2130969022;
public static final int layout_keyline = 2130969023;
public static final int layout_optimizationLevel = 2130969024;
public static final int layout_scrollFlags = 2130969025;
public static final int layout_scrollInterpolator = 2130969026;
public static final int liftOnScroll = 2130969027;
public static final int liftOnScrollTargetViewId = 2130969028;
public static final int lineHeight = 2130969029;
public static final int lineSpacing = 2130969030;
public static final int listChoiceBackgroundIndicator = 2130969031;
public static final int listChoiceIndicatorMultipleAnimated = 2130969032;
public static final int listChoiceIndicatorSingleAnimated = 2130969033;
public static final int listDividerAlertDialog = 2130969034;
public static final int listItemLayout = 2130969035;
public static final int listLayout = 2130969036;
public static final int listMenuViewStyle = 2130969037;
public static final int listPopupWindowStyle = 2130969038;
public static final int listPreferredItemHeight = 2130969039;
public static final int listPreferredItemHeightLarge = 2130969040;
public static final int listPreferredItemHeightSmall = 2130969041;
public static final int listPreferredItemPaddingEnd = 2130969042;
public static final int listPreferredItemPaddingLeft = 2130969043;
public static final int listPreferredItemPaddingRight = 2130969044;
public static final int listPreferredItemPaddingStart = 2130969045;
public static final int logo = 2130969046;
public static final int logoDescription = 2130969047;
public static final int materialAlertDialogBodyTextStyle = 2130969048;
public static final int materialAlertDialogTheme = 2130969049;
public static final int materialAlertDialogTitleIconStyle = 2130969050;
public static final int materialAlertDialogTitlePanelStyle = 2130969051;
public static final int materialAlertDialogTitleTextStyle = 2130969052;
public static final int materialButtonOutlinedStyle = 2130969053;
public static final int materialButtonStyle = 2130969054;
public static final int materialButtonToggleGroupStyle = 2130969055;
public static final int materialCalendarDay = 2130969056;
public static final int materialCalendarFullscreenTheme = 2130969057;
public static final int materialCalendarHeaderConfirmButton = 2130969058;
public static final int materialCalendarHeaderDivider = 2130969059;
public static final int materialCalendarHeaderLayout = 2130969060;
public static final int materialCalendarHeaderSelection = 2130969061;
public static final int materialCalendarHeaderTitle = 2130969062;
public static final int materialCalendarHeaderToggleButton = 2130969063;
public static final int materialCalendarStyle = 2130969064;
public static final int materialCalendarTheme = 2130969065;
public static final int materialCardViewStyle = 2130969066;
public static final int materialThemeOverlay = 2130969067;
public static final int maxActionInlineWidth = 2130969068;
public static final int maxButtonHeight = 2130969069;
public static final int maxCharacterCount = 2130969070;
public static final int maxImageSize = 2130969071;
public static final int maxLines = 2130969072;
public static final int measureWithLargestChild = 2130969073;
public static final int menu = 2130969074;
public static final int minTouchTargetSize = 2130969075;
public static final int multiChoiceItemLayout = 2130969076;
public static final int navigationContentDescription = 2130969077;
public static final int navigationIcon = 2130969078;
public static final int navigationMode = 2130969079;
public static final int navigationViewStyle = 2130969080;
public static final int number = 2130969081;
public static final int numericModifiers = 2130969082;
public static final int overlapAnchor = 2130969083;
public static final int paddingBottomNoButtons = 2130969084;
public static final int paddingBottomSystemWindowInsets = 2130969085;
public static final int paddingEnd = 2130969086;
public static final int paddingLeftSystemWindowInsets = 2130969087;
public static final int paddingRightSystemWindowInsets = 2130969088;
public static final int paddingStart = 2130969089;
public static final int paddingTopNoTitle = 2130969090;
public static final int panEnabled = 2130969091;
public static final int panelBackground = 2130969092;
public static final int panelMenuListTheme = 2130969093;
public static final int panelMenuListWidth = 2130969094;
public static final int passwordToggleContentDescription = 2130969095;
public static final int passwordToggleDrawable = 2130969096;
public static final int passwordToggleEnabled = 2130969097;
public static final int passwordToggleTint = 2130969098;
public static final int passwordToggleTintMode = 2130969099;
public static final int piv_animationDuration = 2130969100;
public static final int piv_animationType = 2130969101;
public static final int piv_autoVisibility = 2130969102;
public static final int piv_count = 2130969103;
public static final int piv_dynamicCount = 2130969104;
public static final int piv_interactiveAnimation = 2130969105;
public static final int piv_orientation = 2130969106;
public static final int piv_padding = 2130969107;
public static final int piv_radius = 2130969108;
public static final int piv_rtl_mode = 2130969109;
public static final int piv_scaleFactor = 2130969110;
public static final int piv_select = 2130969111;
public static final int piv_selectedColor = 2130969112;
public static final int piv_strokeWidth = 2130969113;
public static final int piv_unselectedColor = 2130969114;
public static final int piv_viewPager = 2130969115;
public static final int placeholderText = 2130969116;
public static final int placeholderTextAppearance = 2130969117;
public static final int placeholderTextColor = 2130969118;
public static final int popupMenuBackground = 2130969119;
public static final int popupMenuStyle = 2130969120;
public static final int popupTheme = 2130969121;
public static final int popupWindowStyle = 2130969122;
public static final int prefixText = 2130969123;
public static final int prefixTextAppearance = 2130969124;
public static final int prefixTextColor = 2130969125;
public static final int preserveIconSpacing = 2130969126;
public static final int pressedTranslationZ = 2130969127;
public static final int progressBarPadding = 2130969128;
public static final int progressBarStyle = 2130969129;
public static final int queryBackground = 2130969130;
public static final int queryHint = 2130969131;
public static final int quickScaleEnabled = 2130969132;
public static final int radioButtonStyle = 2130969133;
public static final int rangeFillColor = 2130969134;
public static final int ratingBarStyle = 2130969135;
public static final int ratingBarStyleIndicator = 2130969136;
public static final int ratingBarStyleSmall = 2130969137;
public static final int recyclerViewStyle = 2130969138;
public static final int reverseLayout = 2130969139;
public static final int rippleColor = 2130969140;
public static final int scopeUris = 2130969141;
public static final int scrimAnimationDuration = 2130969142;
public static final int scrimBackground = 2130969143;
public static final int scrimVisibleHeightTrigger = 2130969144;
public static final int searchHintIcon = 2130969145;
public static final int searchIcon = 2130969146;
public static final int searchViewStyle = 2130969147;
public static final int seekBarStyle = 2130969148;
public static final int selectableItemBackground = 2130969149;
public static final int selectableItemBackgroundBorderless = 2130969150;
public static final int selectionRequired = 2130969151;
public static final int shapeAppearance = 2130969152;
public static final int shapeAppearanceLargeComponent = 2130969153;
public static final int shapeAppearanceMediumComponent = 2130969154;
public static final int shapeAppearanceOverlay = 2130969155;
public static final int shapeAppearanceSmallComponent = 2130969156;
public static final int showAsAction = 2130969157;
public static final int showDividers = 2130969158;
public static final int showMotionSpec = 2130969159;
public static final int showText = 2130969160;
public static final int showTitle = 2130969161;
public static final int shrinkMotionSpec = 2130969162;
public static final int singleChoiceItemLayout = 2130969163;
public static final int singleLine = 2130969164;
public static final int singleSelection = 2130969165;
public static final int sliderStyle = 2130969166;
public static final int snackbarButtonStyle = 2130969167;
public static final int snackbarStyle = 2130969168;
public static final int snackbarTextViewStyle = 2130969169;
public static final int spanCount = 2130969170;
public static final int spinBars = 2130969171;
public static final int spinnerDropDownItemStyle = 2130969172;
public static final int spinnerStyle = 2130969173;
public static final int splitTrack = 2130969174;
public static final int src = 2130969175;
public static final int srcCompat = 2130969176;
public static final int stackFromEnd = 2130969177;
public static final int startIconCheckable = 2130969178;
public static final int startIconContentDescription = 2130969179;
public static final int startIconDrawable = 2130969180;
public static final int startIconTint = 2130969181;
public static final int startIconTintMode = 2130969182;
public static final int state_above_anchor = 2130969183;
public static final int state_collapsed = 2130969184;
public static final int state_collapsible = 2130969185;
public static final int state_dragged = 2130969186;
public static final int state_liftable = 2130969187;
public static final int state_lifted = 2130969188;
public static final int statusBarBackground = 2130969189;
public static final int statusBarForeground = 2130969190;
public static final int statusBarScrim = 2130969191;
public static final int strokeColor = 2130969192;
public static final int strokeWidth = 2130969193;
public static final int subMenuArrow = 2130969194;
public static final int submitBackground = 2130969195;
public static final int subtitle = 2130969196;
public static final int subtitleTextAppearance = 2130969197;
public static final int subtitleTextColor = 2130969198;
public static final int subtitleTextStyle = 2130969199;
public static final int suffixText = 2130969200;
public static final int suffixTextAppearance = 2130969201;
public static final int suffixTextColor = 2130969202;
public static final int suggestionRowLayout = 2130969203;
public static final int switchMinWidth = 2130969204;
public static final int switchPadding = 2130969205;
public static final int switchStyle = 2130969206;
public static final int switchTextAppearance = 2130969207;
public static final int tabBackground = 2130969208;
public static final int tabContentStart = 2130969209;
public static final int tabGravity = 2130969210;
public static final int tabIconTint = 2130969211;
public static final int tabIconTintMode = 2130969212;
public static final int tabIndicator = 2130969213;
public static final int tabIndicatorAnimationDuration = 2130969214;
public static final int tabIndicatorColor = 2130969215;
public static final int tabIndicatorFullWidth = 2130969216;
public static final int tabIndicatorGravity = 2130969217;
public static final int tabIndicatorHeight = 2130969218;
public static final int tabInlineLabel = 2130969219;
public static final int tabMaxWidth = 2130969220;
public static final int tabMinWidth = 2130969221;
public static final int tabMode = 2130969222;
public static final int tabPadding = 2130969223;
public static final int tabPaddingBottom = 2130969224;
public static final int tabPaddingEnd = 2130969225;
public static final int tabPaddingStart = 2130969226;
public static final int tabPaddingTop = 2130969227;
public static final int tabRippleColor = 2130969228;
public static final int tabSelectedTextColor = 2130969229;
public static final int tabStyle = 2130969230;
public static final int tabTextAppearance = 2130969231;
public static final int tabTextColor = 2130969232;
public static final int tabUnboundedRipple = 2130969233;
public static final int textAllCaps = 2130969234;
public static final int textAppearanceBody1 = 2130969235;
public static final int textAppearanceBody2 = 2130969236;
public static final int textAppearanceButton = 2130969237;
public static final int textAppearanceCaption = 2130969238;
public static final int textAppearanceHeadline1 = 2130969239;
public static final int textAppearanceHeadline2 = 2130969240;
public static final int textAppearanceHeadline3 = 2130969241;
public static final int textAppearanceHeadline4 = 2130969242;
public static final int textAppearanceHeadline5 = 2130969243;
public static final int textAppearanceHeadline6 = 2130969244;
public static final int textAppearanceLargePopupMenu = 2130969245;
public static final int textAppearanceLineHeightEnabled = 2130969246;
public static final int textAppearanceListItem = 2130969247;
public static final int textAppearanceListItemSecondary = 2130969248;
public static final int textAppearanceListItemSmall = 2130969249;
public static final int textAppearanceOverline = 2130969250;
public static final int textAppearancePopupMenuHeader = 2130969251;
public static final int textAppearanceSearchResultSubtitle = 2130969252;
public static final int textAppearanceSearchResultTitle = 2130969253;
public static final int textAppearanceSmallPopupMenu = 2130969254;
public static final int textAppearanceSubtitle1 = 2130969255;
public static final int textAppearanceSubtitle2 = 2130969256;
public static final int textColorAlertDialogListItem = 2130969257;
public static final int textColorSearchUrl = 2130969258;
public static final int textEndPadding = 2130969259;
public static final int textInputLayoutFocusedRectEnabled = 2130969260;
public static final int textInputStyle = 2130969261;
public static final int textLocale = 2130969262;
public static final int textStartPadding = 2130969263;
public static final int theme = 2130969264;
public static final int themeLineHeight = 2130969265;
public static final int thickness = 2130969266;
public static final int thumbColor = 2130969267;
public static final int thumbElevation = 2130969268;
public static final int thumbRadius = 2130969269;
public static final int thumbTextPadding = 2130969270;
public static final int thumbTint = 2130969271;
public static final int thumbTintMode = 2130969272;
public static final int tickColor = 2130969273;
public static final int tickColorActive = 2130969274;
public static final int tickColorInactive = 2130969275;
public static final int tickMark = 2130969276;
public static final int tickMarkTint = 2130969277;
public static final int tickMarkTintMode = 2130969278;
public static final int tileBackgroundColor = 2130969279;
public static final int tint = 2130969280;
public static final int tintMode = 2130969281;
public static final int title = 2130969282;
public static final int titleEnabled = 2130969283;
public static final int titleMargin = 2130969284;
public static final int titleMarginBottom = 2130969285;
public static final int titleMarginEnd = 2130969286;
public static final int titleMarginStart = 2130969287;
public static final int titleMarginTop = 2130969288;
public static final int titleMargins = 2130969289;
public static final int titleTextAppearance = 2130969290;
public static final int titleTextColor = 2130969291;
public static final int titleTextStyle = 2130969292;
public static final int toolbarId = 2130969293;
public static final int toolbarNavigationButtonStyle = 2130969294;
public static final int toolbarStyle = 2130969295;
public static final int tooltipForegroundColor = 2130969296;
public static final int tooltipFrameBackground = 2130969297;
public static final int tooltipStyle = 2130969298;
public static final int tooltipText = 2130969299;
public static final int track = 2130969300;
public static final int trackColor = 2130969301;
public static final int trackColorActive = 2130969302;
public static final int trackColorInactive = 2130969303;
public static final int trackHeight = 2130969304;
public static final int trackTint = 2130969305;
public static final int trackTintMode = 2130969306;
public static final int transitionShapeAppearance = 2130969307;
public static final int ttcIndex = 2130969308;
public static final int useCompatPadding = 2130969309;
public static final int useMaterialThemeColors = 2130969310;
public static final int values = 2130969311;
public static final int verticalOffset = 2130969312;
public static final int viewInflaterClass = 2130969313;
public static final int voiceIcon = 2130969314;
public static final int windowActionBar = 2130969315;
public static final int windowActionBarOverlay = 2130969316;
public static final int windowActionModeOverlay = 2130969317;
public static final int windowFixedHeightMajor = 2130969318;
public static final int windowFixedHeightMinor = 2130969319;
public static final int windowFixedWidthMajor = 2130969320;
public static final int windowFixedWidthMinor = 2130969321;
public static final int windowMinWidthMajor = 2130969322;
public static final int windowMinWidthMinor = 2130969323;
public static final int windowNoTitle = 2130969324;
public static final int yearSelectedStyle = 2130969325;
public static final int yearStyle = 2130969326;
public static final int yearTodayStyle = 2130969327;
public static final int zoomEnabled = 2130969328;
private attr() {
}
}
public static final class bool {
public static final int abc_action_bar_embed_tabs = 2131034112;
public static final int abc_allow_stacked_button_bar = 2131034113;
public static final int abc_config_actionMenuItemAllCaps = 2131034114;
public static final int mtrl_btn_textappearance_all_caps = 2131034115;
private bool() {
}
}
public static final class color {
public static final int abc_background_cache_hint_selector_material_dark = 2131099648;
public static final int abc_background_cache_hint_selector_material_light = 2131099649;
public static final int abc_btn_colored_borderless_text_material = 2131099650;
public static final int abc_btn_colored_text_material = 2131099651;
public static final int abc_color_highlight_material = 2131099652;
public static final int abc_decor_view_status_guard = 2131099653;
public static final int abc_decor_view_status_guard_light = 2131099654;
public static final int abc_hint_foreground_material_dark = 2131099655;
public static final int abc_hint_foreground_material_light = 2131099656;
public static final int abc_primary_text_disable_only_material_dark = 2131099657;
public static final int abc_primary_text_disable_only_material_light = 2131099658;
public static final int abc_primary_text_material_dark = 2131099659;
public static final int abc_primary_text_material_light = 2131099660;
public static final int abc_search_url_text = 2131099661;
public static final int abc_search_url_text_normal = 2131099662;
public static final int abc_search_url_text_pressed = 2131099663;
public static final int abc_search_url_text_selected = 2131099664;
public static final int abc_secondary_text_material_dark = 2131099665;
public static final int abc_secondary_text_material_light = 2131099666;
public static final int abc_tint_btn_checkable = 2131099667;
public static final int abc_tint_default = 2131099668;
public static final int abc_tint_edittext = 2131099669;
public static final int abc_tint_seek_thumb = 2131099670;
public static final int abc_tint_spinner = 2131099671;
public static final int abc_tint_switch_track = 2131099672;
public static final int accent_material_dark = 2131099673;
public static final int accent_material_light = 2131099674;
public static final int androidx_core_ripple_material_light = 2131099675;
public static final int androidx_core_secondary_text_default_material_light = 2131099676;
public static final int background_floating_material_dark = 2131099677;
public static final int background_floating_material_light = 2131099678;
public static final int background_material_dark = 2131099679;
public static final int background_material_light = 2131099680;
public static final int bright_foreground_disabled_material_dark = 2131099681;
public static final int bright_foreground_disabled_material_light = 2131099682;
public static final int bright_foreground_inverse_material_dark = 2131099683;
public static final int bright_foreground_inverse_material_light = 2131099684;
public static final int bright_foreground_material_dark = 2131099685;
public static final int bright_foreground_material_light = 2131099686;
public static final int button_material_dark = 2131099687;
public static final int button_material_light = 2131099688;
public static final int cardview_dark_background = 2131099689;
public static final int cardview_light_background = 2131099690;
public static final int cardview_shadow_end_color = 2131099691;
public static final int cardview_shadow_start_color = 2131099692;
public static final int checkbox_themeable_attribute_color = 2131099693;
public static final int color = 2131099694;
public static final int colorAccent = 2131099695;
public static final int colorPrimary = 2131099696;
public static final int colorPrimaryDark = 2131099697;
public static final int common_google_signin_btn_text_dark = 2131099698;
public static final int common_google_signin_btn_text_dark_default = 2131099699;
public static final int common_google_signin_btn_text_dark_disabled = 2131099700;
public static final int common_google_signin_btn_text_dark_focused = 2131099701;
public static final int common_google_signin_btn_text_dark_pressed = 2131099702;
public static final int common_google_signin_btn_text_light = 2131099703;
public static final int common_google_signin_btn_text_light_default = 2131099704;
public static final int common_google_signin_btn_text_light_disabled = 2131099705;
public static final int common_google_signin_btn_text_light_focused = 2131099706;
public static final int common_google_signin_btn_text_light_pressed = 2131099707;
public static final int common_google_signin_btn_tint = 2131099708;
public static final int design_bottom_navigation_shadow_color = 2131099709;
public static final int design_box_stroke_color = 2131099710;
public static final int design_dark_default_color_background = 2131099711;
public static final int design_dark_default_color_error = 2131099712;
public static final int design_dark_default_color_on_background = 2131099713;
public static final int design_dark_default_color_on_error = 2131099714;
public static final int design_dark_default_color_on_primary = 2131099715;
public static final int design_dark_default_color_on_secondary = 2131099716;
public static final int design_dark_default_color_on_surface = 2131099717;
public static final int design_dark_default_color_primary = 2131099718;
public static final int design_dark_default_color_primary_dark = 2131099719;
public static final int design_dark_default_color_primary_variant = 2131099720;
public static final int design_dark_default_color_secondary = 2131099721;
public static final int design_dark_default_color_secondary_variant = 2131099722;
public static final int design_dark_default_color_surface = 2131099723;
public static final int design_default_color_background = 2131099724;
public static final int design_default_color_error = 2131099725;
public static final int design_default_color_on_background = 2131099726;
public static final int design_default_color_on_error = 2131099727;
public static final int design_default_color_on_primary = 2131099728;
public static final int design_default_color_on_secondary = 2131099729;
public static final int design_default_color_on_surface = 2131099730;
public static final int design_default_color_primary = 2131099731;
public static final int design_default_color_primary_dark = 2131099732;
public static final int design_default_color_primary_variant = 2131099733;
public static final int design_default_color_secondary = 2131099734;
public static final int design_default_color_secondary_variant = 2131099735;
public static final int design_default_color_surface = 2131099736;
public static final int design_error = 2131099737;
public static final int design_fab_shadow_end_color = 2131099738;
public static final int design_fab_shadow_mid_color = 2131099739;
public static final int design_fab_shadow_start_color = 2131099740;
public static final int design_fab_stroke_end_inner_color = 2131099741;
public static final int design_fab_stroke_end_outer_color = 2131099742;
public static final int design_fab_stroke_top_inner_color = 2131099743;
public static final int design_fab_stroke_top_outer_color = 2131099744;
public static final int design_icon_tint = 2131099745;
public static final int design_snackbar_background_color = 2131099746;
public static final int dim_foreground_disabled_material_dark = 2131099747;
public static final int dim_foreground_disabled_material_light = 2131099748;
public static final int dim_foreground_material_dark = 2131099749;
public static final int dim_foreground_material_light = 2131099750;
public static final int error_color_material_dark = 2131099751;
public static final int error_color_material_light = 2131099752;
public static final int foreground_material_dark = 2131099753;
public static final int foreground_material_light = 2131099754;
public static final int highlighted_text_material_dark = 2131099755;
public static final int highlighted_text_material_light = 2131099756;
public static final int material_blue_grey_800 = 2131099757;
public static final int material_blue_grey_900 = 2131099758;
public static final int material_blue_grey_950 = 2131099759;
public static final int material_deep_teal_200 = 2131099760;
public static final int material_deep_teal_500 = 2131099761;
public static final int material_grey_100 = 2131099762;
public static final int material_grey_300 = 2131099763;
public static final int material_grey_50 = 2131099764;
public static final int material_grey_600 = 2131099765;
public static final int material_grey_800 = 2131099766;
public static final int material_grey_850 = 2131099767;
public static final int material_grey_900 = 2131099768;
public static final int material_on_background_disabled = 2131099769;
public static final int material_on_background_emphasis_high_type = 2131099770;
public static final int material_on_background_emphasis_medium = 2131099771;
public static final int material_on_primary_disabled = 2131099772;
public static final int material_on_primary_emphasis_high_type = 2131099773;
public static final int material_on_primary_emphasis_medium = 2131099774;
public static final int material_on_surface_disabled = 2131099775;
public static final int material_on_surface_emphasis_high_type = 2131099776;
public static final int material_on_surface_emphasis_medium = 2131099777;
public static final int material_on_surface_stroke = 2131099778;
public static final int material_slider_active_tick_marks_color = 2131099779;
public static final int material_slider_active_track_color = 2131099780;
public static final int material_slider_halo_color = 2131099781;
public static final int material_slider_inactive_tick_marks_color = 2131099782;
public static final int material_slider_inactive_track_color = 2131099783;
public static final int material_slider_thumb_color = 2131099784;
public static final int mtrl_bottom_nav_colored_item_tint = 2131099785;
public static final int mtrl_bottom_nav_colored_ripple_color = 2131099786;
public static final int mtrl_bottom_nav_item_tint = 2131099787;
public static final int mtrl_bottom_nav_ripple_color = 2131099788;
public static final int mtrl_btn_bg_color_selector = 2131099789;
public static final int mtrl_btn_ripple_color = 2131099790;
public static final int mtrl_btn_stroke_color_selector = 2131099791;
public static final int mtrl_btn_text_btn_bg_color_selector = 2131099792;
public static final int mtrl_btn_text_btn_ripple_color = 2131099793;
public static final int mtrl_btn_text_color_disabled = 2131099794;
public static final int mtrl_btn_text_color_selector = 2131099795;
public static final int mtrl_btn_transparent_bg_color = 2131099796;
public static final int mtrl_calendar_item_stroke_color = 2131099797;
public static final int mtrl_calendar_selected_range = 2131099798;
public static final int mtrl_card_view_foreground = 2131099799;
public static final int mtrl_card_view_ripple = 2131099800;
public static final int mtrl_chip_background_color = 2131099801;
public static final int mtrl_chip_close_icon_tint = 2131099802;
public static final int mtrl_chip_ripple_color = 2131099803;
public static final int mtrl_chip_surface_color = 2131099804;
public static final int mtrl_chip_text_color = 2131099805;
public static final int mtrl_choice_chip_background_color = 2131099806;
public static final int mtrl_choice_chip_ripple_color = 2131099807;
public static final int mtrl_choice_chip_text_color = 2131099808;
public static final int mtrl_error = 2131099809;
public static final int mtrl_fab_bg_color_selector = 2131099810;
public static final int mtrl_fab_icon_text_color_selector = 2131099811;
public static final int mtrl_fab_ripple_color = 2131099812;
public static final int mtrl_filled_background_color = 2131099813;
public static final int mtrl_filled_icon_tint = 2131099814;
public static final int mtrl_filled_stroke_color = 2131099815;
public static final int mtrl_indicator_text_color = 2131099816;
public static final int mtrl_navigation_item_background_color = 2131099817;
public static final int mtrl_navigation_item_icon_tint = 2131099818;
public static final int mtrl_navigation_item_text_color = 2131099819;
public static final int mtrl_on_primary_text_btn_text_color_selector = 2131099820;
public static final int mtrl_outlined_icon_tint = 2131099821;
public static final int mtrl_outlined_stroke_color = 2131099822;
public static final int mtrl_popupmenu_overlay_color = 2131099823;
public static final int mtrl_scrim_color = 2131099824;
public static final int mtrl_tabs_colored_ripple_color = 2131099825;
public static final int mtrl_tabs_icon_color_selector = 2131099826;
public static final int mtrl_tabs_icon_color_selector_colored = 2131099827;
public static final int mtrl_tabs_legacy_text_color_selector = 2131099828;
public static final int mtrl_tabs_ripple_color = 2131099829;
public static final int mtrl_text_btn_text_color_selector = 2131099830;
public static final int mtrl_textinput_default_box_stroke_color = 2131099831;
public static final int mtrl_textinput_disabled_color = 2131099832;
public static final int mtrl_textinput_filled_box_default_background_color = 2131099833;
public static final int mtrl_textinput_focused_box_stroke_color = 2131099834;
public static final int mtrl_textinput_hovered_box_stroke_color = 2131099835;
public static final int notification_action_color_filter = 2131099836;
public static final int notification_icon_bg_color = 2131099837;
public static final int notification_material_background_media_default_color = 2131099838;
public static final int primary_dark_material_dark = 2131099839;
public static final int primary_dark_material_light = 2131099840;
public static final int primary_material_dark = 2131099841;
public static final int primary_material_light = 2131099842;
public static final int primary_text_default_material_dark = 2131099843;
public static final int primary_text_default_material_light = 2131099844;
public static final int primary_text_disabled_material_dark = 2131099845;
public static final int primary_text_disabled_material_light = 2131099846;
public static final int radiobutton_themeable_attribute_color = 2131099847;
public static final int ripple_material_dark = 2131099848;
public static final int ripple_material_light = 2131099849;
public static final int royalBlue = 2131099850;
public static final int secondary_text_default_material_dark = 2131099851;
public static final int secondary_text_default_material_light = 2131099852;
public static final int secondary_text_disabled_material_dark = 2131099853;
public static final int secondary_text_disabled_material_light = 2131099854;
public static final int switch_thumb_disabled_material_dark = 2131099855;
public static final int switch_thumb_disabled_material_light = 2131099856;
public static final int switch_thumb_material_dark = 2131099857;
public static final int switch_thumb_material_light = 2131099858;
public static final int switch_thumb_normal_material_dark = 2131099859;
public static final int switch_thumb_normal_material_light = 2131099860;
public static final int test_mtrl_calendar_day = 2131099861;
public static final int test_mtrl_calendar_day_selected = 2131099862;
public static final int tooltip_background_dark = 2131099863;
public static final int tooltip_background_light = 2131099864;
private color() {
}
}
public static final class dimen {
public static final int abc_action_bar_content_inset_material = 2131165184;
public static final int abc_action_bar_content_inset_with_nav = 2131165185;
public static final int abc_action_bar_default_height_material = 2131165186;
public static final int abc_action_bar_default_padding_end_material = 2131165187;
public static final int abc_action_bar_default_padding_start_material = 2131165188;
public static final int abc_action_bar_elevation_material = 2131165189;
public static final int abc_action_bar_icon_vertical_padding_material = 2131165190;
public static final int abc_action_bar_overflow_padding_end_material = 2131165191;
public static final int abc_action_bar_overflow_padding_start_material = 2131165192;
public static final int abc_action_bar_stacked_max_height = 2131165193;
public static final int abc_action_bar_stacked_tab_max_width = 2131165194;
public static final int abc_action_bar_subtitle_bottom_margin_material = 2131165195;
public static final int abc_action_bar_subtitle_top_margin_material = 2131165196;
public static final int abc_action_button_min_height_material = 2131165197;
public static final int abc_action_button_min_width_material = 2131165198;
public static final int abc_action_button_min_width_overflow_material = 2131165199;
public static final int abc_alert_dialog_button_bar_height = 2131165200;
public static final int abc_alert_dialog_button_dimen = 2131165201;
public static final int abc_button_inset_horizontal_material = 2131165202;
public static final int abc_button_inset_vertical_material = 2131165203;
public static final int abc_button_padding_horizontal_material = 2131165204;
public static final int abc_button_padding_vertical_material = 2131165205;
public static final int abc_cascading_menus_min_smallest_width = 2131165206;
public static final int abc_config_prefDialogWidth = 2131165207;
public static final int abc_control_corner_material = 2131165208;
public static final int abc_control_inset_material = 2131165209;
public static final int abc_control_padding_material = 2131165210;
public static final int abc_dialog_corner_radius_material = 2131165211;
public static final int abc_dialog_fixed_height_major = 2131165212;
public static final int abc_dialog_fixed_height_minor = 2131165213;
public static final int abc_dialog_fixed_width_major = 2131165214;
public static final int abc_dialog_fixed_width_minor = 2131165215;
public static final int abc_dialog_list_padding_bottom_no_buttons = 2131165216;
public static final int abc_dialog_list_padding_top_no_title = 2131165217;
public static final int abc_dialog_min_width_major = 2131165218;
public static final int abc_dialog_min_width_minor = 2131165219;
public static final int abc_dialog_padding_material = 2131165220;
public static final int abc_dialog_padding_top_material = 2131165221;
public static final int abc_dialog_title_divider_material = 2131165222;
public static final int abc_disabled_alpha_material_dark = 2131165223;
public static final int abc_disabled_alpha_material_light = 2131165224;
public static final int abc_dropdownitem_icon_width = 2131165225;
public static final int abc_dropdownitem_text_padding_left = 2131165226;
public static final int abc_dropdownitem_text_padding_right = 2131165227;
public static final int abc_edit_text_inset_bottom_material = 2131165228;
public static final int abc_edit_text_inset_horizontal_material = 2131165229;
public static final int abc_edit_text_inset_top_material = 2131165230;
public static final int abc_floating_window_z = 2131165231;
public static final int abc_list_item_height_large_material = 2131165232;
public static final int abc_list_item_height_material = 2131165233;
public static final int abc_list_item_height_small_material = 2131165234;
public static final int abc_list_item_padding_horizontal_material = 2131165235;
public static final int abc_panel_menu_list_width = 2131165236;
public static final int abc_progress_bar_height_material = 2131165237;
public static final int abc_search_view_preferred_height = 2131165238;
public static final int abc_search_view_preferred_width = 2131165239;
public static final int abc_seekbar_track_background_height_material = 2131165240;
public static final int abc_seekbar_track_progress_height_material = 2131165241;
public static final int abc_select_dialog_padding_start_material = 2131165242;
public static final int abc_switch_padding = 2131165243;
public static final int abc_text_size_body_1_material = 2131165244;
public static final int abc_text_size_body_2_material = 2131165245;
public static final int abc_text_size_button_material = 2131165246;
public static final int abc_text_size_caption_material = 2131165247;
public static final int abc_text_size_display_1_material = 2131165248;
public static final int abc_text_size_display_2_material = 2131165249;
public static final int abc_text_size_display_3_material = 2131165250;
public static final int abc_text_size_display_4_material = 2131165251;
public static final int abc_text_size_headline_material = 2131165252;
public static final int abc_text_size_large_material = 2131165253;
public static final int abc_text_size_medium_material = 2131165254;
public static final int abc_text_size_menu_header_material = 2131165255;
public static final int abc_text_size_menu_material = 2131165256;
public static final int abc_text_size_small_material = 2131165257;
public static final int abc_text_size_subhead_material = 2131165258;
public static final int abc_text_size_subtitle_material_toolbar = 2131165259;
public static final int abc_text_size_title_material = 2131165260;
public static final int abc_text_size_title_material_toolbar = 2131165261;
public static final int action_bar_size = 2131165262;
public static final int appcompat_dialog_background_inset = 2131165263;
public static final int cardview_compat_inset_shadow = 2131165264;
public static final int cardview_default_elevation = 2131165265;
public static final int cardview_default_radius = 2131165266;
public static final int compat_button_inset_horizontal_material = 2131165267;
public static final int compat_button_inset_vertical_material = 2131165268;
public static final int compat_button_padding_horizontal_material = 2131165269;
public static final int compat_button_padding_vertical_material = 2131165270;
public static final int compat_control_corner_material = 2131165271;
public static final int compat_notification_large_icon_max_height = 2131165272;
public static final int compat_notification_large_icon_max_width = 2131165273;
public static final int default_dimension = 2131165274;
public static final int design_appbar_elevation = 2131165275;
public static final int design_bottom_navigation_active_item_max_width = 2131165276;
public static final int design_bottom_navigation_active_item_min_width = 2131165277;
public static final int design_bottom_navigation_active_text_size = 2131165278;
public static final int design_bottom_navigation_elevation = 2131165279;
public static final int design_bottom_navigation_height = 2131165280;
public static final int design_bottom_navigation_icon_size = 2131165281;
public static final int design_bottom_navigation_item_max_width = 2131165282;
public static final int design_bottom_navigation_item_min_width = 2131165283;
public static final int design_bottom_navigation_margin = 2131165284;
public static final int design_bottom_navigation_shadow_height = 2131165285;
public static final int design_bottom_navigation_text_size = 2131165286;
public static final int design_bottom_sheet_elevation = 2131165287;
public static final int design_bottom_sheet_modal_elevation = 2131165288;
public static final int design_bottom_sheet_peek_height_min = 2131165289;
public static final int design_fab_border_width = 2131165290;
public static final int design_fab_elevation = 2131165291;
public static final int design_fab_image_size = 2131165292;
public static final int design_fab_size_mini = 2131165293;
public static final int design_fab_size_normal = 2131165294;
public static final int design_fab_translation_z_hovered_focused = 2131165295;
public static final int design_fab_translation_z_pressed = 2131165296;
public static final int design_navigation_elevation = 2131165297;
public static final int design_navigation_icon_padding = 2131165298;
public static final int design_navigation_icon_size = 2131165299;
public static final int design_navigation_item_horizontal_padding = 2131165300;
public static final int design_navigation_item_icon_padding = 2131165301;
public static final int design_navigation_max_width = 2131165302;
public static final int design_navigation_padding_bottom = 2131165303;
public static final int design_navigation_separator_vertical_padding = 2131165304;
public static final int design_snackbar_action_inline_max_width = 2131165305;
public static final int design_snackbar_action_text_color_alpha = 2131165306;
public static final int design_snackbar_background_corner_radius = 2131165307;
public static final int design_snackbar_elevation = 2131165308;
public static final int design_snackbar_extra_spacing_horizontal = 2131165309;
public static final int design_snackbar_max_width = 2131165310;
public static final int design_snackbar_min_width = 2131165311;
public static final int design_snackbar_padding_horizontal = 2131165312;
public static final int design_snackbar_padding_vertical = 2131165313;
public static final int design_snackbar_padding_vertical_2lines = 2131165314;
public static final int design_snackbar_text_size = 2131165315;
public static final int design_tab_max_width = 2131165316;
public static final int design_tab_scrollable_min_width = 2131165317;
public static final int design_tab_text_size = 2131165318;
public static final int design_tab_text_size_2line = 2131165319;
public static final int design_textinput_caption_translate_y = 2131165320;
public static final int disabled_alpha_material_dark = 2131165321;
public static final int disabled_alpha_material_light = 2131165322;
public static final int fastscroll_default_thickness = 2131165323;
public static final int fastscroll_margin = 2131165324;
public static final int fastscroll_minimum_range = 2131165325;
public static final int highlight_alpha_material_colored = 2131165326;
public static final int highlight_alpha_material_dark = 2131165327;
public static final int highlight_alpha_material_light = 2131165328;
public static final int hint_alpha_material_dark = 2131165329;
public static final int hint_alpha_material_light = 2131165330;
public static final int hint_pressed_alpha_material_dark = 2131165331;
public static final int hint_pressed_alpha_material_light = 2131165332;
public static final int item_touch_helper_max_drag_scroll_per_frame = 2131165333;
public static final int item_touch_helper_swipe_escape_max_velocity = 2131165334;
public static final int item_touch_helper_swipe_escape_velocity = 2131165335;
public static final int material_emphasis_disabled = 2131165336;
public static final int material_emphasis_high_type = 2131165337;
public static final int material_emphasis_medium = 2131165338;
public static final int material_text_view_test_line_height = 2131165339;
public static final int material_text_view_test_line_height_override = 2131165340;
public static final int mtrl_alert_dialog_background_inset_bottom = 2131165341;
public static final int mtrl_alert_dialog_background_inset_end = 2131165342;
public static final int mtrl_alert_dialog_background_inset_start = 2131165343;
public static final int mtrl_alert_dialog_background_inset_top = 2131165344;
public static final int mtrl_alert_dialog_picker_background_inset = 2131165345;
public static final int mtrl_badge_horizontal_edge_offset = 2131165346;
public static final int mtrl_badge_long_text_horizontal_padding = 2131165347;
public static final int mtrl_badge_radius = 2131165348;
public static final int mtrl_badge_text_horizontal_edge_offset = 2131165349;
public static final int mtrl_badge_text_size = 2131165350;
public static final int mtrl_badge_with_text_radius = 2131165351;
public static final int mtrl_bottomappbar_fabOffsetEndMode = 2131165352;
public static final int mtrl_bottomappbar_fab_bottom_margin = 2131165353;
public static final int mtrl_bottomappbar_fab_cradle_margin = 2131165354;
public static final int mtrl_bottomappbar_fab_cradle_rounded_corner_radius = 2131165355;
public static final int mtrl_bottomappbar_fab_cradle_vertical_offset = 2131165356;
public static final int mtrl_bottomappbar_height = 2131165357;
public static final int mtrl_btn_corner_radius = 2131165358;
public static final int mtrl_btn_dialog_btn_min_width = 2131165359;
public static final int mtrl_btn_disabled_elevation = 2131165360;
public static final int mtrl_btn_disabled_z = 2131165361;
public static final int mtrl_btn_elevation = 2131165362;
public static final int mtrl_btn_focused_z = 2131165363;
public static final int mtrl_btn_hovered_z = 2131165364;
public static final int mtrl_btn_icon_btn_padding_left = 2131165365;
public static final int mtrl_btn_icon_padding = 2131165366;
public static final int mtrl_btn_inset = 2131165367;
public static final int mtrl_btn_letter_spacing = 2131165368;
public static final int mtrl_btn_padding_bottom = 2131165369;
public static final int mtrl_btn_padding_left = 2131165370;
public static final int mtrl_btn_padding_right = 2131165371;
public static final int mtrl_btn_padding_top = 2131165372;
public static final int mtrl_btn_pressed_z = 2131165373;
public static final int mtrl_btn_stroke_size = 2131165374;
public static final int mtrl_btn_text_btn_icon_padding = 2131165375;
public static final int mtrl_btn_text_btn_padding_left = 2131165376;
public static final int mtrl_btn_text_btn_padding_right = 2131165377;
public static final int mtrl_btn_text_size = 2131165378;
public static final int mtrl_btn_z = 2131165379;
public static final int mtrl_calendar_action_height = 2131165380;
public static final int mtrl_calendar_action_padding = 2131165381;
public static final int mtrl_calendar_bottom_padding = 2131165382;
public static final int mtrl_calendar_content_padding = 2131165383;
public static final int mtrl_calendar_day_corner = 2131165384;
public static final int mtrl_calendar_day_height = 2131165385;
public static final int mtrl_calendar_day_horizontal_padding = 2131165386;
public static final int mtrl_calendar_day_today_stroke = 2131165387;
public static final int mtrl_calendar_day_vertical_padding = 2131165388;
public static final int mtrl_calendar_day_width = 2131165389;
public static final int mtrl_calendar_days_of_week_height = 2131165390;
public static final int mtrl_calendar_dialog_background_inset = 2131165391;
public static final int mtrl_calendar_header_content_padding = 2131165392;
public static final int mtrl_calendar_header_content_padding_fullscreen = 2131165393;
public static final int mtrl_calendar_header_divider_thickness = 2131165394;
public static final int mtrl_calendar_header_height = 2131165395;
public static final int mtrl_calendar_header_height_fullscreen = 2131165396;
public static final int mtrl_calendar_header_selection_line_height = 2131165397;
public static final int mtrl_calendar_header_text_padding = 2131165398;
public static final int mtrl_calendar_header_toggle_margin_bottom = 2131165399;
public static final int mtrl_calendar_header_toggle_margin_top = 2131165400;
public static final int mtrl_calendar_landscape_header_width = 2131165401;
public static final int mtrl_calendar_maximum_default_fullscreen_minor_axis = 2131165402;
public static final int mtrl_calendar_month_horizontal_padding = 2131165403;
public static final int mtrl_calendar_month_vertical_padding = 2131165404;
public static final int mtrl_calendar_navigation_bottom_padding = 2131165405;
public static final int mtrl_calendar_navigation_height = 2131165406;
public static final int mtrl_calendar_navigation_top_padding = 2131165407;
public static final int mtrl_calendar_pre_l_text_clip_padding = 2131165408;
public static final int mtrl_calendar_selection_baseline_to_top_fullscreen = 2131165409;
public static final int mtrl_calendar_selection_text_baseline_to_bottom = 2131165410;
public static final int mtrl_calendar_selection_text_baseline_to_bottom_fullscreen = 2131165411;
public static final int mtrl_calendar_selection_text_baseline_to_top = 2131165412;
public static final int mtrl_calendar_text_input_padding_top = 2131165413;
public static final int mtrl_calendar_title_baseline_to_top = 2131165414;
public static final int mtrl_calendar_title_baseline_to_top_fullscreen = 2131165415;
public static final int mtrl_calendar_year_corner = 2131165416;
public static final int mtrl_calendar_year_height = 2131165417;
public static final int mtrl_calendar_year_horizontal_padding = 2131165418;
public static final int mtrl_calendar_year_vertical_padding = 2131165419;
public static final int mtrl_calendar_year_width = 2131165420;
public static final int mtrl_card_checked_icon_margin = 2131165421;
public static final int mtrl_card_checked_icon_size = 2131165422;
public static final int mtrl_card_corner_radius = 2131165423;
public static final int mtrl_card_dragged_z = 2131165424;
public static final int mtrl_card_elevation = 2131165425;
public static final int mtrl_card_spacing = 2131165426;
public static final int mtrl_chip_pressed_translation_z = 2131165427;
public static final int mtrl_chip_text_size = 2131165428;
public static final int mtrl_edittext_rectangle_top_offset = 2131165429;
public static final int mtrl_exposed_dropdown_menu_popup_elevation = 2131165430;
public static final int mtrl_exposed_dropdown_menu_popup_vertical_offset = 2131165431;
public static final int mtrl_exposed_dropdown_menu_popup_vertical_padding = 2131165432;
public static final int mtrl_extended_fab_bottom_padding = 2131165433;
public static final int mtrl_extended_fab_corner_radius = 2131165434;
public static final int mtrl_extended_fab_disabled_elevation = 2131165435;
public static final int mtrl_extended_fab_disabled_translation_z = 2131165436;
public static final int mtrl_extended_fab_elevation = 2131165437;
public static final int mtrl_extended_fab_end_padding = 2131165438;
public static final int mtrl_extended_fab_end_padding_icon = 2131165439;
public static final int mtrl_extended_fab_icon_size = 2131165440;
public static final int mtrl_extended_fab_icon_text_spacing = 2131165441;
public static final int mtrl_extended_fab_min_height = 2131165442;
public static final int mtrl_extended_fab_min_width = 2131165443;
public static final int mtrl_extended_fab_start_padding = 2131165444;
public static final int mtrl_extended_fab_start_padding_icon = 2131165445;
public static final int mtrl_extended_fab_top_padding = 2131165446;
public static final int mtrl_extended_fab_translation_z_base = 2131165447;
public static final int mtrl_extended_fab_translation_z_hovered_focused = 2131165448;
public static final int mtrl_extended_fab_translation_z_pressed = 2131165449;
public static final int mtrl_fab_elevation = 2131165450;
public static final int mtrl_fab_min_touch_target = 2131165451;
public static final int mtrl_fab_translation_z_hovered_focused = 2131165452;
public static final int mtrl_fab_translation_z_pressed = 2131165453;
public static final int mtrl_high_ripple_default_alpha = 2131165454;
public static final int mtrl_high_ripple_focused_alpha = 2131165455;
public static final int mtrl_high_ripple_hovered_alpha = 2131165456;
public static final int mtrl_high_ripple_pressed_alpha = 2131165457;
public static final int mtrl_large_touch_target = 2131165458;
public static final int mtrl_low_ripple_default_alpha = 2131165459;
public static final int mtrl_low_ripple_focused_alpha = 2131165460;
public static final int mtrl_low_ripple_hovered_alpha = 2131165461;
public static final int mtrl_low_ripple_pressed_alpha = 2131165462;
public static final int mtrl_min_touch_target_size = 2131165463;
public static final int mtrl_navigation_elevation = 2131165464;
public static final int mtrl_navigation_item_horizontal_padding = 2131165465;
public static final int mtrl_navigation_item_icon_padding = 2131165466;
public static final int mtrl_navigation_item_icon_size = 2131165467;
public static final int mtrl_navigation_item_shape_horizontal_margin = 2131165468;
public static final int mtrl_navigation_item_shape_vertical_margin = 2131165469;
public static final int mtrl_shape_corner_size_large_component = 2131165470;
public static final int mtrl_shape_corner_size_medium_component = 2131165471;
public static final int mtrl_shape_corner_size_small_component = 2131165472;
public static final int mtrl_slider_halo_radius = 2131165473;
public static final int mtrl_slider_label_padding = 2131165474;
public static final int mtrl_slider_label_radius = 2131165475;
public static final int mtrl_slider_label_square_side = 2131165476;
public static final int mtrl_slider_thumb_elevation = 2131165477;
public static final int mtrl_slider_thumb_radius = 2131165478;
public static final int mtrl_slider_track_height = 2131165479;
public static final int mtrl_slider_track_side_padding = 2131165480;
public static final int mtrl_slider_track_top = 2131165481;
public static final int mtrl_slider_widget_height = 2131165482;
public static final int mtrl_snackbar_action_text_color_alpha = 2131165483;
public static final int mtrl_snackbar_background_corner_radius = 2131165484;
public static final int mtrl_snackbar_background_overlay_color_alpha = 2131165485;
public static final int mtrl_snackbar_margin = 2131165486;
public static final int mtrl_switch_thumb_elevation = 2131165487;
public static final int mtrl_textinput_box_corner_radius_medium = 2131165488;
public static final int mtrl_textinput_box_corner_radius_small = 2131165489;
public static final int mtrl_textinput_box_label_cutout_padding = 2131165490;
public static final int mtrl_textinput_box_stroke_width_default = 2131165491;
public static final int mtrl_textinput_box_stroke_width_focused = 2131165492;
public static final int mtrl_textinput_counter_margin_start = 2131165493;
public static final int mtrl_textinput_end_icon_margin_start = 2131165494;
public static final int mtrl_textinput_outline_box_expanded_padding = 2131165495;
public static final int mtrl_textinput_start_icon_margin_end = 2131165496;
public static final int mtrl_toolbar_default_height = 2131165497;
public static final int mtrl_tooltip_arrowSize = 2131165498;
public static final int mtrl_tooltip_cornerSize = 2131165499;
public static final int mtrl_tooltip_minHeight = 2131165500;
public static final int mtrl_tooltip_minWidth = 2131165501;
public static final int mtrl_tooltip_padding = 2131165502;
public static final int mtrl_transition_shared_axis_slide_distance = 2131165503;
public static final int notification_action_icon_size = 2131165504;
public static final int notification_action_text_size = 2131165505;
public static final int notification_big_circle_margin = 2131165506;
public static final int notification_content_margin_start = 2131165507;
public static final int notification_large_icon_height = 2131165508;
public static final int notification_large_icon_width = 2131165509;
public static final int notification_main_column_padding_top = 2131165510;
public static final int notification_media_narrow_margin = 2131165511;
public static final int notification_right_icon_size = 2131165512;
public static final int notification_right_side_padding_top = 2131165513;
public static final int notification_small_icon_background_padding = 2131165514;
public static final int notification_small_icon_size_as_large = 2131165515;
public static final int notification_subtext_size = 2131165516;
public static final int notification_top_pad = 2131165517;
public static final int notification_top_pad_large_text = 2131165518;
public static final int subtitle_corner_radius = 2131165519;
public static final int subtitle_outline_width = 2131165520;
public static final int subtitle_shadow_offset = 2131165521;
public static final int subtitle_shadow_radius = 2131165522;
public static final int test_mtrl_calendar_day_cornerSize = 2131165523;
public static final int tooltip_corner_radius = 2131165524;
public static final int tooltip_horizontal_padding = 2131165525;
public static final int tooltip_margin = 2131165526;
public static final int tooltip_precise_anchor_extra_offset = 2131165527;
public static final int tooltip_precise_anchor_threshold = 2131165528;
public static final int tooltip_vertical_padding = 2131165529;
public static final int tooltip_y_offset_non_touch = 2131165530;
public static final int tooltip_y_offset_touch = 2131165531;
private dimen() {
}
}
public static final class drawable {
public static final int abc_ab_share_pack_mtrl_alpha = 2131230727;
public static final int abc_action_bar_item_background_material = 2131230728;
public static final int abc_btn_borderless_material = 2131230729;
public static final int abc_btn_check_material = 2131230730;
public static final int abc_btn_check_material_anim = 2131230731;
public static final int abc_btn_check_to_on_mtrl_000 = 2131230732;
public static final int abc_btn_check_to_on_mtrl_015 = 2131230733;
public static final int abc_btn_colored_material = 2131230734;
public static final int abc_btn_default_mtrl_shape = 2131230735;
public static final int abc_btn_radio_material = 2131230736;
public static final int abc_btn_radio_material_anim = 2131230737;
public static final int abc_btn_radio_to_on_mtrl_000 = 2131230738;
public static final int abc_btn_radio_to_on_mtrl_015 = 2131230739;
public static final int abc_btn_switch_to_on_mtrl_00001 = 2131230740;
public static final int abc_btn_switch_to_on_mtrl_00012 = 2131230741;
public static final int abc_cab_background_internal_bg = 2131230742;
public static final int abc_cab_background_top_material = 2131230743;
public static final int abc_cab_background_top_mtrl_alpha = 2131230744;
public static final int abc_control_background_material = 2131230745;
public static final int abc_dialog_material_background = 2131230746;
public static final int abc_edit_text_material = 2131230747;
public static final int abc_ic_ab_back_material = 2131230748;
public static final int abc_ic_arrow_drop_right_black_24dp = 2131230749;
public static final int abc_ic_clear_material = 2131230750;
public static final int abc_ic_commit_search_api_mtrl_alpha = 2131230751;
public static final int abc_ic_go_search_api_material = 2131230752;
public static final int abc_ic_menu_copy_mtrl_am_alpha = 2131230753;
public static final int abc_ic_menu_cut_mtrl_alpha = 2131230754;
public static final int abc_ic_menu_overflow_material = 2131230755;
public static final int abc_ic_menu_paste_mtrl_am_alpha = 2131230756;
public static final int abc_ic_menu_selectall_mtrl_alpha = 2131230757;
public static final int abc_ic_menu_share_mtrl_alpha = 2131230758;
public static final int abc_ic_search_api_material = 2131230759;
public static final int abc_ic_star_black_16dp = 2131230760;
public static final int abc_ic_star_black_36dp = 2131230761;
public static final int abc_ic_star_black_48dp = 2131230762;
public static final int abc_ic_star_half_black_16dp = 2131230763;
public static final int abc_ic_star_half_black_36dp = 2131230764;
public static final int abc_ic_star_half_black_48dp = 2131230765;
public static final int abc_ic_voice_search_api_material = 2131230766;
public static final int abc_item_background_holo_dark = 2131230767;
public static final int abc_item_background_holo_light = 2131230768;
public static final int abc_list_divider_material = 2131230769;
public static final int abc_list_divider_mtrl_alpha = 2131230770;
public static final int abc_list_focused_holo = 2131230771;
public static final int abc_list_longpressed_holo = 2131230772;
public static final int abc_list_pressed_holo_dark = 2131230773;
public static final int abc_list_pressed_holo_light = 2131230774;
public static final int abc_list_selector_background_transition_holo_dark = 2131230775;
public static final int abc_list_selector_background_transition_holo_light = 2131230776;
public static final int abc_list_selector_disabled_holo_dark = 2131230777;
public static final int abc_list_selector_disabled_holo_light = 2131230778;
public static final int abc_list_selector_holo_dark = 2131230779;
public static final int abc_list_selector_holo_light = 2131230780;
public static final int abc_menu_hardkey_panel_mtrl_mult = 2131230781;
public static final int abc_popup_background_mtrl_mult = 2131230782;
public static final int abc_ratingbar_indicator_material = 2131230783;
public static final int abc_ratingbar_material = 2131230784;
public static final int abc_ratingbar_small_material = 2131230785;
public static final int abc_scrubber_control_off_mtrl_alpha = 2131230786;
public static final int abc_scrubber_control_to_pressed_mtrl_000 = 2131230787;
public static final int abc_scrubber_control_to_pressed_mtrl_005 = 2131230788;
public static final int abc_scrubber_primary_mtrl_alpha = 2131230789;
public static final int abc_scrubber_track_mtrl_alpha = 2131230790;
public static final int abc_seekbar_thumb_material = 2131230791;
public static final int abc_seekbar_tick_mark_material = 2131230792;
public static final int abc_seekbar_track_material = 2131230793;
public static final int abc_spinner_mtrl_am_alpha = 2131230794;
public static final int abc_spinner_textfield_background_material = 2131230795;
public static final int abc_switch_thumb_material = 2131230796;
public static final int abc_switch_track_mtrl_alpha = 2131230797;
public static final int abc_tab_indicator_material = 2131230798;
public static final int abc_tab_indicator_mtrl_alpha = 2131230799;
public static final int abc_text_cursor_material = 2131230800;
public static final int abc_text_select_handle_left_mtrl_dark = 2131230801;
public static final int abc_text_select_handle_left_mtrl_light = 2131230802;
public static final int abc_text_select_handle_middle_mtrl_dark = 2131230803;
public static final int abc_text_select_handle_middle_mtrl_light = 2131230804;
public static final int abc_text_select_handle_right_mtrl_dark = 2131230805;
public static final int abc_text_select_handle_right_mtrl_light = 2131230806;
public static final int abc_textfield_activated_mtrl_alpha = 2131230807;
public static final int abc_textfield_default_mtrl_alpha = 2131230808;
public static final int abc_textfield_search_activated_mtrl_alpha = 2131230809;
public static final int abc_textfield_search_default_mtrl_alpha = 2131230810;
public static final int abc_textfield_search_material = 2131230811;
public static final int abc_vector_test = 2131230812;
public static final int admin = 2131230813;
public static final int alligator = 2131230814;
public static final int animals = 2131230815;
public static final int avd_hide_password = 2131230816;
public static final int avd_show_password = 2131230817;
public static final int back = 2131230818;
public static final int bear = 2131230819;
public static final int bear1 = 2131230820;
public static final int bg_overlay = 2131230821;
public static final int black = 2131230822;
public static final int btn_checkbox_checked_mtrl = 2131230823;
public static final int btn_checkbox_checked_to_unchecked_mtrl_animation = 2131230824;
public static final int btn_checkbox_unchecked_mtrl = 2131230825;
public static final int btn_checkbox_unchecked_to_checked_mtrl_animation = 2131230826;
public static final int btn_radio_off_mtrl = 2131230827;
public static final int btn_radio_off_to_on_mtrl_animation = 2131230828;
public static final int btn_radio_on_mtrl = 2131230829;
public static final int btn_radio_on_to_off_mtrl_animation = 2131230830;
public static final int calc = 2131230831;
public static final int chat = 2131230832;
public static final int common_full_open_on_phone = 2131230833;
public static final int common_google_signin_btn_icon_dark = 2131230834;
public static final int common_google_signin_btn_icon_dark_focused = 2131230835;
public static final int common_google_signin_btn_icon_dark_normal = 2131230836;
public static final int common_google_signin_btn_icon_dark_normal_background = 2131230837;
public static final int common_google_signin_btn_icon_disabled = 2131230838;
public static final int common_google_signin_btn_icon_light = 2131230839;
public static final int common_google_signin_btn_icon_light_focused = 2131230840;
public static final int common_google_signin_btn_icon_light_normal = 2131230841;
public static final int common_google_signin_btn_icon_light_normal_background = 2131230842;
public static final int common_google_signin_btn_text_dark = 2131230843;
public static final int common_google_signin_btn_text_dark_focused = 2131230844;
public static final int common_google_signin_btn_text_dark_normal = 2131230845;
public static final int common_google_signin_btn_text_dark_normal_background = 2131230846;
public static final int common_google_signin_btn_text_disabled = 2131230847;
public static final int common_google_signin_btn_text_light = 2131230848;
public static final int common_google_signin_btn_text_light_focused = 2131230849;
public static final int common_google_signin_btn_text_light_normal = 2131230850;
public static final int common_google_signin_btn_text_light_normal_background = 2131230851;
public static final int design_bottom_navigation_item_background = 2131230852;
public static final int design_fab_background = 2131230853;
public static final int design_ic_visibility = 2131230854;
public static final int design_ic_visibility_off = 2131230855;
public static final int design_password_eye = 2131230856;
public static final int design_snackbar_background = 2131230857;
public static final int econtact = 2131230858;
public static final int elephant = 2131230859;
public static final int exit = 2131230860;
public static final int first = 2131230861;
public static final int foodrecord = 2131230862;
public static final int foodrecord2 = 2131230863;
public static final int giraffe = 2131230864;
public static final int giraffe1 = 2131230865;
public static final int googleg_disabled_color_18 = 2131230866;
public static final int googleg_standard_color_18 = 2131230867;
public static final int hippopotamus = 2131230868;
public static final int home = 2131230869;
public static final int ic_launcher_background = 2131230870;
public static final int ic_launcher_foreground = 2131230871;
public static final int ic_mtrl_checked_circle = 2131230872;
public static final int ic_mtrl_chip_checked_black = 2131230873;
public static final int ic_mtrl_chip_checked_circle = 2131230874;
public static final int ic_mtrl_chip_close_circle = 2131230875;
public static final int lion = 2131230876;
public static final int lion1 = 2131230877;
public static final int listcover = 2131230878;
public static final int loading = 2131230879;
public static final int location = 2131230880;
public static final int lock = 2131230881;
public static final int login_button = 2131230882;
public static final int logout = 2131230883;
public static final int mail = 2131230884;
public static final int material_ic_calendar_black_24dp = 2131230885;
public static final int material_ic_clear_black_24dp = 2131230886;
public static final int material_ic_edit_black_24dp = 2131230887;
public static final int material_ic_keyboard_arrow_left_black_24dp = 2131230888;
public static final int material_ic_keyboard_arrow_right_black_24dp = 2131230889;
public static final int material_ic_menu_arrow_down_black_24dp = 2131230890;
public static final int material_ic_menu_arrow_up_black_24dp = 2131230891;
public static final int medical = 2131230892;
public static final int menu_icon = 2131230893;
public static final int menuu = 2131230894;
public static final int monkey = 2131230895;
public static final int mtrl_dialog_background = 2131230896;
public static final int mtrl_dropdown_arrow = 2131230897;
public static final int mtrl_ic_arrow_drop_down = 2131230898;
public static final int mtrl_ic_arrow_drop_up = 2131230899;
public static final int mtrl_ic_cancel = 2131230900;
public static final int mtrl_ic_error = 2131230901;
public static final int mtrl_popupmenu_background = 2131230902;
public static final int mtrl_popupmenu_background_dark = 2131230903;
public static final int mtrl_tabs_default_indicator = 2131230904;
public static final int nav_header = 2131230905;
public static final int navigation_empty_icon = 2131230906;
public static final int notification_action_background = 2131230907;
public static final int notification_bg = 2131230908;
public static final int notification_bg_low = 2131230909;
public static final int notification_bg_low_normal = 2131230910;
public static final int notification_bg_low_pressed = 2131230911;
public static final int notification_bg_normal = 2131230912;
public static final int notification_bg_normal_pressed = 2131230913;
public static final int notification_icon_background = 2131230914;
public static final int notification_template_icon_bg = 2131230915;
public static final int notification_template_icon_low_bg = 2131230916;
public static final int notification_tile_bg = 2131230917;
public static final int notify_panel_notification_icon_bg = 2131230918;
public static final int nounderline = 2131230919;
public static final int panda = 2131230920;
public static final int pro = 2131230921;
public static final int profile = 2131230922;
public static final int profileback = 2131230923;
public static final int receipt = 2131230924;
public static final int records = 2131230925;
public static final int rhino = 2131230926;
public static final int ring = 2131230927;
public static final int schedule = 2131230928;
public static final int selector = 2131230929;
public static final int snake1 = 2131230930;
public static final int style_spinner = 2131230931;
public static final int taka = 2131230932;
public static final int test_custom_background = 2131230933;
public static final int tiger = 2131230934;
public static final int tiger1 = 2131230935;
public static final int tooltip_frame_dark = 2131230936;
public static final int tooltip_frame_light = 2131230937;
public static final int user = 2131230938;
public static final int users = 2131230939;
public static final int white_box = 2131230940;
public static final int whiteback = 2131230941;
public static final int zebra = 2131230942;
public static final int zebra1 = 2131230943;
public static final int zoo = 2131230944;
public static final int zoo2 = 2131230945;
public static final int zoomap = 2131230946;
/* added by JADX */
public static final int $avd_hide_password__0 = 2131230720;
/* added by JADX */
public static final int $avd_hide_password__1 = 2131230721;
/* added by JADX */
public static final int $avd_hide_password__2 = 2131230722;
/* added by JADX */
public static final int $avd_show_password__0 = 2131230723;
/* added by JADX */
public static final int $avd_show_password__1 = 2131230724;
/* added by JADX */
public static final int $avd_show_password__2 = 2131230725;
/* added by JADX */
public static final int $ic_launcher_foreground__0 = 2131230726;
private drawable() {
}
}
public static final class font {
public static final int babypanda = 2131296256;
private font() {
}
}
public static final class id {
public static final int ALT = 2131361792;
public static final int Animals = 2131361793;
public static final int BOTTOM_END = 2131361794;
public static final int BOTTOM_START = 2131361795;
public static final int CTRL = 2131361796;
public static final int CardofAnimals = 2131361797;
public static final int CardofAnimals2 = 2131361798;
public static final int FUNCTION = 2131361799;
public static final int Lmail = 2131361800;
public static final int Lpass = 2131361801;
public static final int META = 2131361802;
public static final int Rmail = 2131361803;
public static final int Rpass = 2131361804;
public static final int SHIFT = 2131361805;
public static final int SYM = 2131361806;
public static final int TOP_END = 2131361807;
public static final int TOP_START = 2131361808;
public static final int accessibility_action_clickable_span = 2131361809;
public static final int accessibility_custom_action_0 = 2131361810;
public static final int accessibility_custom_action_1 = 2131361811;
public static final int accessibility_custom_action_10 = 2131361812;
public static final int accessibility_custom_action_11 = 2131361813;
public static final int accessibility_custom_action_12 = 2131361814;
public static final int accessibility_custom_action_13 = 2131361815;
public static final int accessibility_custom_action_14 = 2131361816;
public static final int accessibility_custom_action_15 = 2131361817;
public static final int accessibility_custom_action_16 = 2131361818;
public static final int accessibility_custom_action_17 = 2131361819;
public static final int accessibility_custom_action_18 = 2131361820;
public static final int accessibility_custom_action_19 = 2131361821;
public static final int accessibility_custom_action_2 = 2131361822;
public static final int accessibility_custom_action_20 = 2131361823;
public static final int accessibility_custom_action_21 = 2131361824;
public static final int accessibility_custom_action_22 = 2131361825;
public static final int accessibility_custom_action_23 = 2131361826;
public static final int accessibility_custom_action_24 = 2131361827;
public static final int accessibility_custom_action_25 = 2131361828;
public static final int accessibility_custom_action_26 = 2131361829;
public static final int accessibility_custom_action_27 = 2131361830;
public static final int accessibility_custom_action_28 = 2131361831;
public static final int accessibility_custom_action_29 = 2131361832;
public static final int accessibility_custom_action_3 = 2131361833;
public static final int accessibility_custom_action_30 = 2131361834;
public static final int accessibility_custom_action_31 = 2131361835;
public static final int accessibility_custom_action_4 = 2131361836;
public static final int accessibility_custom_action_5 = 2131361837;
public static final int accessibility_custom_action_6 = 2131361838;
public static final int accessibility_custom_action_7 = 2131361839;
public static final int accessibility_custom_action_8 = 2131361840;
public static final int accessibility_custom_action_9 = 2131361841;
public static final int action0 = 2131361842;
public static final int action_bar = 2131361843;
public static final int action_bar_activity_content = 2131361844;
public static final int action_bar_container = 2131361845;
public static final int action_bar_root = 2131361846;
public static final int action_bar_spinner = 2131361847;
public static final int action_bar_subtitle = 2131361848;
public static final int action_bar_title = 2131361849;
public static final int action_container = 2131361850;
public static final int action_context_bar = 2131361851;
public static final int action_divider = 2131361852;
public static final int action_image = 2131361853;
public static final int action_menu_divider = 2131361854;
public static final int action_menu_presenter = 2131361855;
public static final int action_mode_bar = 2131361856;
public static final int action_mode_bar_stub = 2131361857;
public static final int action_mode_close_button = 2131361858;
public static final int action_text = 2131361859;
public static final int actions = 2131361860;
public static final int activity_chooser_view_content = 2131361861;
public static final int add = 2131361862;
public static final int adjust_height = 2131361863;
public static final int adjust_width = 2131361864;
public static final int alertTitle = 2131361865;
public static final int all = 2131361866;
public static final int always = 2131361867;
public static final int animalsBAR = 2131361868;
public static final int anitotal = 2131361869;
public static final int async = 2131361870;
public static final int auto = 2131361871;
public static final int avatar = 2131361872;
public static final int barrier = 2131361873;
public static final int beginning = 2131361874;
public static final int blocking = 2131361875;
public static final int botNav = 2131361876;
public static final int bottom = 2131361877;
public static final int bottom_to_top = 2131361878;
public static final int buttonPanel = 2131361879;
public static final int c1 = 2131361880;
public static final int c10 = 2131361881;
public static final int c11 = 2131361882;
public static final int c12 = 2131361883;
public static final int c13 = 2131361884;
public static final int c2 = 2131361885;
public static final int c3 = 2131361886;
public static final int c4 = 2131361887;
public static final int c5 = 2131361888;
public static final int c6 = 2131361889;
public static final int c7 = 2131361890;
public static final int c8 = 2131361891;
public static final int c9 = 2131361892;
public static final int calT = 2131361893;
public static final int calculation = 2131361894;
public static final int cancelB = 2131361895;
public static final int cancel_action = 2131361896;
public static final int cancel_button = 2131361897;
public static final int cardsA = 2131361898;
public static final int cardsB = 2131361899;
public static final int center = 2131361900;
public static final int center_horizontal = 2131361901;
public static final int center_vertical = 2131361902;
public static final int chains = 2131361903;
public static final int checkbox = 2131361904;
public static final int checked = 2131361905;
public static final int chip = 2131361906;
public static final int chip1 = 2131361907;
public static final int chip2 = 2131361908;
public static final int chip3 = 2131361909;
public static final int chip_group = 2131361910;
public static final int chronometer = 2131361911;
public static final int clearField = 2131361912;
public static final int clear_text = 2131361913;
public static final int clip_horizontal = 2131361914;
public static final int clip_vertical = 2131361915;
public static final int collapseActionView = 2131361916;
public static final int color = 2131361917;
public static final int complete = 2131361918;
public static final int complete2 = 2131361919;
public static final int confirm_button = 2131361920;
public static final int container = 2131361921;
public static final int content = 2131361922;
public static final int contentPanel = 2131361923;
public static final int coordinator = 2131361924;
public static final int custom = 2131361925;
public static final int customPanel = 2131361926;
public static final int cut = 2131361927;
public static final int dark = 2131361928;
public static final int date_picker_actions = 2131361929;
public static final int decor_content_parent = 2131361930;
public static final int default_activity_button = 2131361931;
public static final int descA = 2131361932;
public static final int design_bottom_sheet = 2131361933;
public static final int design_menu_item_action_area = 2131361934;
public static final int design_menu_item_action_area_stub = 2131361935;
public static final int design_menu_item_text = 2131361936;
public static final int design_navigation_view = 2131361937;
public static final int dialog_button = 2131361938;
public static final int dimensions = 2131361939;
public static final int direct = 2131361940;
public static final int disableHome = 2131361941;
public static final int drawer_chat = 2131361942;
public static final int drawer_doctors = 2131361943;
public static final int drawer_home = 2131361944;
public static final int drawer_layout = 2131361945;
public static final int drawer_layout2 = 2131361946;
public static final int drawer_logout = 2131361947;
public static final int drawer_menu = 2131361948;
public static final int drawer_profile = 2131361949;
public static final int drawer_users = 2131361950;
public static final int drop = 2131361951;
public static final int dropdown_menu = 2131361952;
public static final int e1 = 2131361953;
public static final int e10 = 2131361954;
public static final int e11 = 2131361955;
public static final int e12 = 2131361956;
public static final int e13 = 2131361957;
public static final int e2 = 2131361958;
public static final int e3 = 2131361959;
public static final int e4 = 2131361960;
public static final int e5 = 2131361961;
public static final int e6 = 2131361962;
public static final int e7 = 2131361963;
public static final int e8 = 2131361964;
public static final int e9 = 2131361965;
public static final int econtacts = 2131361966;
public static final int edit_query = 2131361967;
public static final int end = 2131361968;
public static final int end_padder = 2131361969;
public static final int enterAlways = 2131361970;
public static final int enterAlwaysCollapsed = 2131361971;
public static final int exitUntilCollapsed = 2131361972;
public static final int expand_activities_button = 2131361973;
public static final int expanded_menu = 2131361974;
public static final int fade = 2131361975;
public static final int fill = 2131361976;
public static final int fill_horizontal = 2131361977;
public static final int fill_vertical = 2131361978;
public static final int filled = 2131361979;
public static final int fitToContents = 2131361980;
public static final int fixed = 2131361981;
public static final int fixed2 = 2131361982;
public static final int floating = 2131361983;
public static final int foodrecords = 2131361984;
public static final int forever = 2131361985;
public static final int fragment_container_view_tag = 2131361986;
public static final int ghost_view = 2131361987;
public static final int ghost_view_holder = 2131361988;
public static final int gone = 2131361989;
public static final int group_divider = 2131361990;
public static final int groups = 2131361991;
public static final int hideable = 2131361992;
public static final int home = 2131361993;
public static final int homeAsUp = 2131361994;
public static final int horizontal = 2131361995;
public static final int icon = 2131361996;
public static final int icon_group = 2131361997;
public static final int icon_only = 2131361998;
public static final int ifRoom = 2131361999;
public static final int image = 2131362000;
public static final int imageA = 2131362001;
public static final int imageSlider = 2131362002;
public static final int imageView2 = 2131362003;
public static final int imageView3 = 2131362004;
public static final int info = 2131362005;
public static final int invisible = 2131362006;
public static final int italic = 2131362007;
public static final int item_touch_helper_previous_elevation = 2131362008;
public static final int iv_auto_image_slider = 2131362009;
public static final int labeled = 2131362010;
public static final int largeLabel = 2131362011;
public static final int left = 2131362012;
public static final int left_to_right = 2131362013;
public static final int light = 2131362014;
public static final int line1 = 2131362015;
public static final int line3 = 2131362016;
public static final int listMode = 2131362017;
public static final int list_item = 2131362018;
public static final int login = 2131362019;
public static final int loginpage = 2131362020;
public static final int logout = 2131362021;
public static final int mailpro = 2131362022;
public static final int mainHome = 2131362023;
public static final int mainLoc = 2131362024;
public static final int masked = 2131362025;
public static final int meatAV = 2131362026;
public static final int meattotal = 2131362027;
public static final int media_actions = 2131362028;
public static final int message = 2131362029;
public static final int middle = 2131362030;
public static final int mini = 2131362031;
public static final int month_grid = 2131362032;
public static final int month_navigation_bar = 2131362033;
public static final int month_navigation_fragment_toggle = 2131362034;
public static final int month_navigation_next = 2131362035;
public static final int month_navigation_previous = 2131362036;
public static final int month_title = 2131362037;
public static final int mtrl_calendar_day_selector_frame = 2131362038;
public static final int mtrl_calendar_days_of_week = 2131362039;
public static final int mtrl_calendar_frame = 2131362040;
public static final int mtrl_calendar_main_pane = 2131362041;
public static final int mtrl_calendar_months = 2131362042;
public static final int mtrl_calendar_selection_frame = 2131362043;
public static final int mtrl_calendar_text_input_frame = 2131362044;
public static final int mtrl_calendar_year_selector_frame = 2131362045;
public static final int mtrl_card_checked_layer_id = 2131362046;
public static final int mtrl_child_content_container = 2131362047;
public static final int mtrl_internal_children_alpha_tag = 2131362048;
public static final int mtrl_motion_snapshot_view = 2131362049;
public static final int mtrl_picker_fullscreen = 2131362050;
public static final int mtrl_picker_header = 2131362051;
public static final int mtrl_picker_header_selection_text = 2131362052;
public static final int mtrl_picker_header_title_and_selection = 2131362053;
public static final int mtrl_picker_header_toggle = 2131362054;
public static final int mtrl_picker_text_input_date = 2131362055;
public static final int mtrl_picker_text_input_range_end = 2131362056;
public static final int mtrl_picker_text_input_range_start = 2131362057;
public static final int mtrl_picker_title_text = 2131362058;
public static final int multiply = 2131362059;
public static final int name = 2131362060;
public static final int namepro = 2131362061;
public static final int namesA = 2131362062;
public static final int nav_view = 2131362063;
public static final int navigation_header_container = 2131362064;
public static final int need = 2131362065;
public static final int need2 = 2131362066;
public static final int never = 2131362067;
public static final int noScroll = 2131362068;
public static final int none = 2131362069;
public static final int normal = 2131362070;
public static final int notification_background = 2131362071;
public static final int notification_main_column = 2131362072;
public static final int notification_main_column_container = 2131362073;
public static final int off = 2131362074;
public static final int on = 2131362075;
public static final int outline = 2131362076;
public static final int packed = 2131362077;
public static final int pager_indicator = 2131362078;
public static final int parallax = 2131362079;
public static final int parent = 2131362080;
public static final int parentPanel = 2131362081;
public static final int parent_matrix = 2131362082;
public static final int passpro = 2131362083;
public static final int password_toggle = 2131362084;
public static final int peekHeight = 2131362085;
public static final int percent = 2131362086;
public static final int pickImage = 2131362087;
public static final int pin = 2131362088;
public static final int price = 2131362089;
public static final int price2 = 2131362090;
public static final int pricetotal = 2131362091;
public static final int progressBar3 = 2131362092;
public static final int progress_circular = 2131362093;
public static final int progress_horizontal = 2131362094;
public static final int radio = 2131362095;
public static final int recM = 2131362096;
public static final int receipt = 2131362097;
public static final int receiptfinal = 2131362098;
public static final int recoverB = 2131362099;
public static final int registerpage = 2131362100;
public static final int resulT = 2131362101;
public static final int right = 2131362102;
public static final int right_icon = 2131362103;
public static final int right_side = 2131362104;
public static final int right_to_left = 2131362105;
public static final int rounded = 2131362106;
public static final int row_index_key = 2131362107;
public static final int rview1 = 2131362108;
public static final int rview2 = 2131362109;
public static final int save_non_transition_alpha = 2131362110;
public static final int save_overlay_view = 2131362111;
public static final int scale = 2131362112;
public static final int scale_down = 2131362113;
public static final int screen = 2131362114;
public static final int scroll = 2131362115;
public static final int scrollIndicatorDown = 2131362116;
public static final int scrollIndicatorUp = 2131362117;
public static final int scrollView = 2131362118;
public static final int scrollable = 2131362119;
public static final int search_badge = 2131362120;
public static final int search_bar = 2131362121;
public static final int search_button = 2131362122;
public static final int search_close_btn = 2131362123;
public static final int search_edit_frame = 2131362124;
public static final int search_go_btn = 2131362125;
public static final int search_mag_icon = 2131362126;
public static final int search_plate = 2131362127;
public static final int search_src_text = 2131362128;
public static final int search_voice_btn = 2131362129;
public static final int select_dialog_listview = 2131362130;
public static final int selected = 2131362131;
public static final int shortcut = 2131362132;
public static final int showCustom = 2131362133;
public static final int showHome = 2131362134;
public static final int showTitle = 2131362135;
public static final int signup = 2131362136;
public static final int skipCollapsed = 2131362137;
public static final int slide = 2131362138;
public static final int smallLabel = 2131362139;
public static final int snackbar_action = 2131362140;
public static final int snackbar_text = 2131362141;
public static final int snap = 2131362142;
public static final int snapMargins = 2131362143;
public static final int spacer = 2131362144;
public static final int spanA = 2131362145;
public static final int specA = 2131362146;
public static final int spinner1 = 2131362147;
public static final int spinner2 = 2131362148;
public static final int split_action_bar = 2131362149;
public static final int spread = 2131362150;
public static final int spread_inside = 2131362151;
public static final int src_atop = 2131362152;
public static final int src_in = 2131362153;
public static final int src_over = 2131362154;
public static final int standard = 2131362155;
public static final int start = 2131362156;
public static final int status_bar_latest_event_content = 2131362157;
public static final int stretch = 2131362158;
public static final int submenuarrow = 2131362159;
public static final int submit_area = 2131362160;
public static final int swap = 2131362161;
public static final int tabMode = 2131362162;
public static final int tag_accessibility_actions = 2131362163;
public static final int tag_accessibility_clickable_spans = 2131362164;
public static final int tag_accessibility_heading = 2131362165;
public static final int tag_accessibility_pane_title = 2131362166;
public static final int tag_screen_reader_focusable = 2131362167;
public static final int tag_transition_group = 2131362168;
public static final int tag_unhandled_key_event_manager = 2131362169;
public static final int tag_unhandled_key_listeners = 2131362170;
public static final int test_checkbox_android_button_tint = 2131362171;
public static final int test_checkbox_app_button_tint = 2131362172;
public static final int test_radiobutton_android_button_tint = 2131362173;
public static final int test_radiobutton_app_button_tint = 2131362174;
public static final int text = 2131362175;
public static final int text2 = 2131362176;
public static final int textEnd = 2131362177;
public static final int textSpacerNoButtons = 2131362178;
public static final int textSpacerNoTitle = 2131362179;
public static final int textStart = 2131362180;
public static final int textView = 2131362181;
public static final int textView10 = 2131362182;
public static final int textView11 = 2131362183;
public static final int textView2 = 2131362184;
public static final int textView9 = 2131362185;
public static final int text_input_end_icon = 2131362186;
public static final int text_input_start_icon = 2131362187;
public static final int textinput_counter = 2131362188;
public static final int textinput_error = 2131362189;
public static final int textinput_helper_text = 2131362190;
public static final int textinput_placeholder = 2131362191;
public static final int textinput_prefix_text = 2131362192;
public static final int textinput_suffix_text = 2131362193;
public static final int thinWorm = 2131362194;
public static final int time = 2131362195;
public static final int title = 2131362196;
public static final int titleDividerNoCustom = 2131362197;
public static final int title_template = 2131362198;
public static final int top = 2131362199;
public static final int topPanel = 2131362200;
public static final int top_to_bottom = 2131362201;
public static final int totalAnimals = 2131362202;
public static final int totalVeg = 2131362203;
public static final int totalmeat = 2131362204;
public static final int touch_outside = 2131362205;
public static final int transition_current_scene = 2131362206;
public static final int transition_layout_save = 2131362207;
public static final int transition_position = 2131362208;
public static final int transition_scene_layoutid_cache = 2131362209;
public static final int transition_transform = 2131362210;
public static final int tv_auto_image_slider = 2131362211;
public static final int unchecked = 2131362212;
public static final int uniform = 2131362213;
public static final int unlabeled = 2131362214;
public static final int up = 2131362215;
public static final int useLogo = 2131362216;
public static final int vegAV = 2131362217;
public static final int vegtotal = 2131362218;
public static final int vertical = 2131362219;
public static final int view_offset_helper = 2131362220;
public static final int visible = 2131362221;
public static final int visible_removing_fragment_view_tag = 2131362222;
public static final int vp_slider_layout = 2131362223;
public static final int wide = 2131362224;
public static final int withText = 2131362225;
public static final int withinBounds = 2131362226;
public static final int worm = 2131362227;
public static final int wrap = 2131362228;
public static final int wrap_content = 2131362229;
public static final int zero_corner_chip = 2131362230;
public static final int zooapp = 2131362231;
private id() {
}
}
public static final class integer {
public static final int abc_config_activityDefaultDur = 2131427328;
public static final int abc_config_activityShortDur = 2131427329;
public static final int app_bar_elevation_anim_duration = 2131427330;
public static final int bottom_sheet_slide_duration = 2131427331;
public static final int cancel_button_image_alpha = 2131427332;
public static final int config_tooltipAnimTime = 2131427333;
public static final int design_snackbar_text_max_lines = 2131427334;
public static final int design_tab_indicator_anim_duration_ms = 2131427335;
public static final int google_play_services_version = 2131427336;
public static final int hide_password_duration = 2131427337;
public static final int mtrl_badge_max_character_count = 2131427338;
public static final int mtrl_btn_anim_delay_ms = 2131427339;
public static final int mtrl_btn_anim_duration_ms = 2131427340;
public static final int mtrl_calendar_header_orientation = 2131427341;
public static final int mtrl_calendar_selection_text_lines = 2131427342;
public static final int mtrl_calendar_year_selector_span = 2131427343;
public static final int mtrl_card_anim_delay_ms = 2131427344;
public static final int mtrl_card_anim_duration_ms = 2131427345;
public static final int mtrl_chip_anim_duration = 2131427346;
public static final int mtrl_tab_indicator_anim_duration_ms = 2131427347;
public static final int show_password_duration = 2131427348;
public static final int status_bar_notification_info_maxnum = 2131427349;
private integer() {
}
}
public static final class interpolator {
public static final int btn_checkbox_checked_mtrl_animation_interpolator_0 = 2131492864;
public static final int btn_checkbox_checked_mtrl_animation_interpolator_1 = 2131492865;
public static final int btn_checkbox_unchecked_mtrl_animation_interpolator_0 = 2131492866;
public static final int btn_checkbox_unchecked_mtrl_animation_interpolator_1 = 2131492867;
public static final int btn_radio_to_off_mtrl_animation_interpolator_0 = 2131492868;
public static final int btn_radio_to_on_mtrl_animation_interpolator_0 = 2131492869;
public static final int fast_out_slow_in = 2131492870;
public static final int mtrl_fast_out_linear_in = 2131492871;
public static final int mtrl_fast_out_slow_in = 2131492872;
public static final int mtrl_linear = 2131492873;
public static final int mtrl_linear_out_slow_in = 2131492874;
private interpolator() {
}
}
public static final class layout {
public static final int abc_action_bar_title_item = 2131558400;
public static final int abc_action_bar_up_container = 2131558401;
public static final int abc_action_menu_item_layout = 2131558402;
public static final int abc_action_menu_layout = 2131558403;
public static final int abc_action_mode_bar = 2131558404;
public static final int abc_action_mode_close_item_material = 2131558405;
public static final int abc_activity_chooser_view = 2131558406;
public static final int abc_activity_chooser_view_list_item = 2131558407;
public static final int abc_alert_dialog_button_bar_material = 2131558408;
public static final int abc_alert_dialog_material = 2131558409;
public static final int abc_alert_dialog_title_material = 2131558410;
public static final int abc_cascading_menu_item_layout = 2131558411;
public static final int abc_dialog_title_material = 2131558412;
public static final int abc_expanded_menu_layout = 2131558413;
public static final int abc_list_menu_item_checkbox = 2131558414;
public static final int abc_list_menu_item_icon = 2131558415;
public static final int abc_list_menu_item_layout = 2131558416;
public static final int abc_list_menu_item_radio = 2131558417;
public static final int abc_popup_menu_header_item_layout = 2131558418;
public static final int abc_popup_menu_item_layout = 2131558419;
public static final int abc_screen_content_include = 2131558420;
public static final int abc_screen_simple = 2131558421;
public static final int abc_screen_simple_overlay_action_mode = 2131558422;
public static final int abc_screen_toolbar = 2131558423;
public static final int abc_search_dropdown_item_icons_2line = 2131558424;
public static final int abc_search_view = 2131558425;
public static final int abc_select_dialog_material = 2131558426;
public static final int abc_tooltip = 2131558427;
public static final int activity_animals_list = 2131558428;
public static final int activity_calculations = 2131558429;
public static final int activity_desc_animals = 2131558430;
public static final int activity_food_record = 2131558431;
public static final int activity_loading = 2131558432;
public static final int activity_login_p = 2131558433;
public static final int activity_page1 = 2131558434;
public static final int activity_receipt = 2131558435;
public static final int activity_registerp = 2131558436;
public static final int activity_total_animals = 2131558437;
public static final int activity_user_profile = 2131558438;
public static final int activity_zoo_map = 2131558439;
public static final int animals_card = 2131558440;
public static final int animals_card2 = 2131558441;
public static final int custom_dialog = 2131558442;
public static final int design_bottom_navigation_item = 2131558443;
public static final int design_bottom_sheet_dialog = 2131558444;
public static final int design_layout_snackbar = 2131558445;
public static final int design_layout_snackbar_include = 2131558446;
public static final int design_layout_tab_icon = 2131558447;
public static final int design_layout_tab_text = 2131558448;
public static final int design_menu_item_action_area = 2131558449;
public static final int design_navigation_item = 2131558450;
public static final int design_navigation_item_header = 2131558451;
public static final int design_navigation_item_separator = 2131558452;
public static final int design_navigation_item_subheader = 2131558453;
public static final int design_navigation_menu = 2131558454;
public static final int design_navigation_menu_item = 2131558455;
public static final int design_text_input_end_icon = 2131558456;
public static final int design_text_input_start_icon = 2131558457;
public static final int drawer_header = 2131558458;
public static final int image_slider_layout_item = 2131558459;
public static final int mtrl_alert_dialog = 2131558460;
public static final int mtrl_alert_dialog_actions = 2131558461;
public static final int mtrl_alert_dialog_title = 2131558462;
public static final int mtrl_alert_select_dialog_item = 2131558463;
public static final int mtrl_alert_select_dialog_multichoice = 2131558464;
public static final int mtrl_alert_select_dialog_singlechoice = 2131558465;
public static final int mtrl_calendar_day = 2131558466;
public static final int mtrl_calendar_day_of_week = 2131558467;
public static final int mtrl_calendar_days_of_week = 2131558468;
public static final int mtrl_calendar_horizontal = 2131558469;
public static final int mtrl_calendar_month = 2131558470;
public static final int mtrl_calendar_month_labeled = 2131558471;
public static final int mtrl_calendar_month_navigation = 2131558472;
public static final int mtrl_calendar_months = 2131558473;
public static final int mtrl_calendar_vertical = 2131558474;
public static final int mtrl_calendar_year = 2131558475;
public static final int mtrl_layout_snackbar = 2131558476;
public static final int mtrl_layout_snackbar_include = 2131558477;
public static final int mtrl_picker_actions = 2131558478;
public static final int mtrl_picker_dialog = 2131558479;
public static final int mtrl_picker_fullscreen = 2131558480;
public static final int mtrl_picker_header_dialog = 2131558481;
public static final int mtrl_picker_header_fullscreen = 2131558482;
public static final int mtrl_picker_header_selection_text = 2131558483;
public static final int mtrl_picker_header_title_text = 2131558484;
public static final int mtrl_picker_header_toggle = 2131558485;
public static final int mtrl_picker_text_input_date = 2131558486;
public static final int mtrl_picker_text_input_date_range = 2131558487;
public static final int nav_header = 2131558488;
public static final int notification_action = 2131558489;
public static final int notification_action_tombstone = 2131558490;
public static final int notification_media_action = 2131558491;
public static final int notification_media_cancel_action = 2131558492;
public static final int notification_template_big_media = 2131558493;
public static final int notification_template_big_media_custom = 2131558494;
public static final int notification_template_big_media_narrow = 2131558495;
public static final int notification_template_big_media_narrow_custom = 2131558496;
public static final int notification_template_custom_big = 2131558497;
public static final int notification_template_icon_group = 2131558498;
public static final int notification_template_lines_media = 2131558499;
public static final int notification_template_media = 2131558500;
public static final int notification_template_media_custom = 2131558501;
public static final int notification_template_part_chronometer = 2131558502;
public static final int notification_template_part_time = 2131558503;
public static final int recoverpass = 2131558504;
public static final int select_dialog_item_material = 2131558505;
public static final int select_dialog_multichoice_material = 2131558506;
public static final int select_dialog_singlechoice_material = 2131558507;
public static final int slider_layout = 2131558508;
public static final int support_simple_spinner_dropdown_item = 2131558509;
public static final int test_action_chip = 2131558510;
public static final int test_chip_zero_corner_radius = 2131558511;
public static final int test_design_checkbox = 2131558512;
public static final int test_design_radiobutton = 2131558513;
public static final int test_reflow_chipgroup = 2131558514;
public static final int test_toolbar = 2131558515;
public static final int test_toolbar_custom_background = 2131558516;
public static final int test_toolbar_elevation = 2131558517;
public static final int test_toolbar_surface = 2131558518;
public static final int text_view_with_line_height_from_appearance = 2131558519;
public static final int text_view_with_line_height_from_layout = 2131558520;
public static final int text_view_with_line_height_from_style = 2131558521;
public static final int text_view_with_theme_line_height = 2131558522;
public static final int text_view_without_line_height = 2131558523;
private layout() {
}
}
public static final class menu {
public static final int main_nav = 2131623936;
public static final int menu_drawer = 2131623937;
private menu() {
}
}
public static final class mipmap {
public static final int ic_launcher = 2131689472;
public static final int ic_launcher_round = 2131689473;
public static final int sampleimage = 2131689474;
public static final int sampleimage_round = 2131689475;
private mipmap() {
}
}
public static final class plurals {
public static final int mtrl_badge_content_description = 2131755008;
private plurals() {
}
}
public static final class string {
public static final int abc_action_bar_home_description = 2131820544;
public static final int abc_action_bar_up_description = 2131820545;
public static final int abc_action_menu_overflow_description = 2131820546;
public static final int abc_action_mode_done = 2131820547;
public static final int abc_activity_chooser_view_see_all = 2131820548;
public static final int abc_activitychooserview_choose_application = 2131820549;
public static final int abc_capital_off = 2131820550;
public static final int abc_capital_on = 2131820551;
public static final int abc_menu_alt_shortcut_label = 2131820552;
public static final int abc_menu_ctrl_shortcut_label = 2131820553;
public static final int abc_menu_delete_shortcut_label = 2131820554;
public static final int abc_menu_enter_shortcut_label = 2131820555;
public static final int abc_menu_function_shortcut_label = 2131820556;
public static final int abc_menu_meta_shortcut_label = 2131820557;
public static final int abc_menu_shift_shortcut_label = 2131820558;
public static final int abc_menu_space_shortcut_label = 2131820559;
public static final int abc_menu_sym_shortcut_label = 2131820560;
public static final int abc_prepend_shortcut_label = 2131820561;
public static final int abc_search_hint = 2131820562;
public static final int abc_searchview_description_clear = 2131820563;
public static final int abc_searchview_description_query = 2131820564;
public static final int abc_searchview_description_search = 2131820565;
public static final int abc_searchview_description_submit = 2131820566;
public static final int abc_searchview_description_voice = 2131820567;
public static final int abc_shareactionprovider_share_with = 2131820568;
public static final int abc_shareactionprovider_share_with_application = 2131820569;
public static final int abc_toolbar_collapse_description = 2131820570;
public static final int app_name = 2131820571;
public static final int appbar_scrolling_view_behavior = 2131820572;
public static final int bottom_sheet_behavior = 2131820573;
public static final int character_counter_content_description = 2131820574;
public static final int character_counter_overflowed_content_description = 2131820575;
public static final int character_counter_pattern = 2131820576;
public static final int chip_text = 2131820577;
public static final int clear_text_end_icon_content_description = 2131820578;
public static final int common_google_play_services_enable_button = 2131820579;
public static final int common_google_play_services_enable_text = 2131820580;
public static final int common_google_play_services_enable_title = 2131820581;
public static final int common_google_play_services_install_button = 2131820582;
public static final int common_google_play_services_install_text = 2131820583;
public static final int common_google_play_services_install_title = 2131820584;
public static final int common_google_play_services_notification_channel_name = 2131820585;
public static final int common_google_play_services_notification_ticker = 2131820586;
public static final int common_google_play_services_unknown_issue = 2131820587;
public static final int common_google_play_services_unsupported_text = 2131820588;
public static final int common_google_play_services_update_button = 2131820589;
public static final int common_google_play_services_update_text = 2131820590;
public static final int common_google_play_services_update_title = 2131820591;
public static final int common_google_play_services_updating_text = 2131820592;
public static final int common_google_play_services_wear_update_text = 2131820593;
public static final int common_open_on_phone = 2131820594;
public static final int common_signin_button_text = 2131820595;
public static final int common_signin_button_text_long = 2131820596;
public static final int default_web_client_id = 2131820597;
public static final int error_icon_content_description = 2131820598;
public static final int exposed_dropdown_menu_content_description = 2131820599;
public static final int fab_transformation_scrim_behavior = 2131820600;
public static final int fab_transformation_sheet_behavior = 2131820601;
public static final int firebase_database_url = 2131820602;
public static final int gcm_defaultSenderId = 2131820603;
public static final int google_api_key = 2131820604;
public static final int google_app_id = 2131820605;
public static final int google_crash_reporting_api_key = 2131820606;
public static final int google_storage_bucket = 2131820607;
public static final int hide_bottom_view_on_scroll_behavior = 2131820608;
public static final int icon_content_description = 2131820609;
public static final int item_view_role_description = 2131820610;
public static final int material_slider_range_end = 2131820611;
public static final int material_slider_range_start = 2131820612;
public static final int mtrl_badge_numberless_content_description = 2131820613;
public static final int mtrl_chip_close_icon_content_description = 2131820614;
public static final int mtrl_exceed_max_badge_number_content_description = 2131820615;
public static final int mtrl_exceed_max_badge_number_suffix = 2131820616;
public static final int mtrl_picker_a11y_next_month = 2131820617;
public static final int mtrl_picker_a11y_prev_month = 2131820618;
public static final int mtrl_picker_announce_current_selection = 2131820619;
public static final int mtrl_picker_cancel = 2131820620;
public static final int mtrl_picker_confirm = 2131820621;
public static final int mtrl_picker_date_header_selected = 2131820622;
public static final int mtrl_picker_date_header_title = 2131820623;
public static final int mtrl_picker_date_header_unselected = 2131820624;
public static final int mtrl_picker_day_of_week_column_header = 2131820625;
public static final int mtrl_picker_invalid_format = 2131820626;
public static final int mtrl_picker_invalid_format_example = 2131820627;
public static final int mtrl_picker_invalid_format_use = 2131820628;
public static final int mtrl_picker_invalid_range = 2131820629;
public static final int mtrl_picker_navigate_to_year_description = 2131820630;
public static final int mtrl_picker_out_of_range = 2131820631;
public static final int mtrl_picker_range_header_only_end_selected = 2131820632;
public static final int mtrl_picker_range_header_only_start_selected = 2131820633;
public static final int mtrl_picker_range_header_selected = 2131820634;
public static final int mtrl_picker_range_header_title = 2131820635;
public static final int mtrl_picker_range_header_unselected = 2131820636;
public static final int mtrl_picker_save = 2131820637;
public static final int mtrl_picker_text_input_date_hint = 2131820638;
public static final int mtrl_picker_text_input_date_range_end_hint = 2131820639;
public static final int mtrl_picker_text_input_date_range_start_hint = 2131820640;
public static final int mtrl_picker_text_input_day_abbr = 2131820641;
public static final int mtrl_picker_text_input_month_abbr = 2131820642;
public static final int mtrl_picker_text_input_year_abbr = 2131820643;
public static final int mtrl_picker_toggle_to_calendar_input_mode = 2131820644;
public static final int mtrl_picker_toggle_to_day_selection = 2131820645;
public static final int mtrl_picker_toggle_to_text_input_mode = 2131820646;
public static final int mtrl_picker_toggle_to_year_selection = 2131820647;
public static final int password_toggle_content_description = 2131820648;
public static final int path_password_eye = 2131820649;
public static final int path_password_eye_mask_strike_through = 2131820650;
public static final int path_password_eye_mask_visible = 2131820651;
public static final int path_password_strike_through = 2131820652;
public static final int project_id = 2131820653;
public static final int search_menu_title = 2131820654;
public static final int status_bar_notification_info_overflow = 2131820655;
public static final int title_activity_calculations = 2131820656;
public static final int title_activity_recordings = 2131820657;
public static final int validMail = 2131820658;
private string() {
}
}
public static final class style {
public static final int AlertDialog_AppCompat = 2131886080;
public static final int AlertDialog_AppCompat_Light = 2131886081;
public static final int AndroidThemeColorAccentYellow = 2131886082;
public static final int Animation_AppCompat_Dialog = 2131886083;
public static final int Animation_AppCompat_DropDownUp = 2131886084;
public static final int Animation_AppCompat_Tooltip = 2131886085;
public static final int Animation_Design_BottomSheetDialog = 2131886086;
public static final int Animation_MaterialComponents_BottomSheetDialog = 2131886087;
public static final int AppTheme = 2131886088;
public static final int AppTheme_AppBarOverlay = 2131886089;
public static final int AppTheme_NoActionBar = 2131886090;
public static final int AppTheme_PopupOverlay = 2131886091;
public static final int AwesomeValidation_TextInputLayout = 2131886092;
public static final int Base_AlertDialog_AppCompat = 2131886093;
public static final int Base_AlertDialog_AppCompat_Light = 2131886094;
public static final int Base_Animation_AppCompat_Dialog = 2131886095;
public static final int Base_Animation_AppCompat_DropDownUp = 2131886096;
public static final int Base_Animation_AppCompat_Tooltip = 2131886097;
public static final int Base_CardView = 2131886098;
public static final int Base_DialogWindowTitleBackground_AppCompat = 2131886100;
public static final int Base_DialogWindowTitle_AppCompat = 2131886099;
public static final int Base_MaterialAlertDialog_MaterialComponents_Title_Icon = 2131886101;
public static final int Base_MaterialAlertDialog_MaterialComponents_Title_Panel = 2131886102;
public static final int Base_MaterialAlertDialog_MaterialComponents_Title_Text = 2131886103;
public static final int Base_TextAppearance_AppCompat = 2131886104;
public static final int Base_TextAppearance_AppCompat_Body1 = 2131886105;
public static final int Base_TextAppearance_AppCompat_Body2 = 2131886106;
public static final int Base_TextAppearance_AppCompat_Button = 2131886107;
public static final int Base_TextAppearance_AppCompat_Caption = 2131886108;
public static final int Base_TextAppearance_AppCompat_Display1 = 2131886109;
public static final int Base_TextAppearance_AppCompat_Display2 = 2131886110;
public static final int Base_TextAppearance_AppCompat_Display3 = 2131886111;
public static final int Base_TextAppearance_AppCompat_Display4 = 2131886112;
public static final int Base_TextAppearance_AppCompat_Headline = 2131886113;
public static final int Base_TextAppearance_AppCompat_Inverse = 2131886114;
public static final int Base_TextAppearance_AppCompat_Large = 2131886115;
public static final int Base_TextAppearance_AppCompat_Large_Inverse = 2131886116;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131886117;
public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131886118;
public static final int Base_TextAppearance_AppCompat_Medium = 2131886119;
public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 2131886120;
public static final int Base_TextAppearance_AppCompat_Menu = 2131886121;
public static final int Base_TextAppearance_AppCompat_SearchResult = 2131886122;
public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131886123;
public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 2131886124;
public static final int Base_TextAppearance_AppCompat_Small = 2131886125;
public static final int Base_TextAppearance_AppCompat_Small_Inverse = 2131886126;
public static final int Base_TextAppearance_AppCompat_Subhead = 2131886127;
public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131886128;
public static final int Base_TextAppearance_AppCompat_Title = 2131886129;
public static final int Base_TextAppearance_AppCompat_Title_Inverse = 2131886130;
public static final int Base_TextAppearance_AppCompat_Tooltip = 2131886131;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131886132;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131886133;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131886134;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131886135;
public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131886136;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131886137;
public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131886138;
public static final int Base_TextAppearance_AppCompat_Widget_Button = 2131886139;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131886140;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131886141;
public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131886142;
public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131886143;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131886144;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131886145;
public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131886146;
public static final int Base_TextAppearance_AppCompat_Widget_Switch = 2131886147;
public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131886148;
public static final int Base_TextAppearance_MaterialComponents_Badge = 2131886149;
public static final int Base_TextAppearance_MaterialComponents_Button = 2131886150;
public static final int Base_TextAppearance_MaterialComponents_Headline6 = 2131886151;
public static final int Base_TextAppearance_MaterialComponents_Subtitle2 = 2131886152;
public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131886153;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131886154;
public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131886155;
public static final int Base_ThemeOverlay_AppCompat = 2131886189;
public static final int Base_ThemeOverlay_AppCompat_ActionBar = 2131886190;
public static final int Base_ThemeOverlay_AppCompat_Dark = 2131886191;
public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131886192;
public static final int Base_ThemeOverlay_AppCompat_Dialog = 2131886193;
public static final int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131886194;
public static final int Base_ThemeOverlay_AppCompat_Light = 2131886195;
public static final int Base_ThemeOverlay_MaterialComponents_Dialog = 2131886196;
public static final int Base_ThemeOverlay_MaterialComponents_Dialog_Alert = 2131886197;
public static final int Base_ThemeOverlay_MaterialComponents_Dialog_Alert_Framework = 2131886198;
public static final int Base_ThemeOverlay_MaterialComponents_Light_Dialog_Alert_Framework = 2131886199;
public static final int Base_ThemeOverlay_MaterialComponents_MaterialAlertDialog = 2131886200;
public static final int Base_Theme_AppCompat = 2131886156;
public static final int Base_Theme_AppCompat_CompactMenu = 2131886157;
public static final int Base_Theme_AppCompat_Dialog = 2131886158;
public static final int Base_Theme_AppCompat_DialogWhenLarge = 2131886162;
public static final int Base_Theme_AppCompat_Dialog_Alert = 2131886159;
public static final int Base_Theme_AppCompat_Dialog_FixedSize = 2131886160;
public static final int Base_Theme_AppCompat_Dialog_MinWidth = 2131886161;
public static final int Base_Theme_AppCompat_Light = 2131886163;
public static final int Base_Theme_AppCompat_Light_DarkActionBar = 2131886164;
public static final int Base_Theme_AppCompat_Light_Dialog = 2131886165;
public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131886169;
public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 2131886166;
public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131886167;
public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131886168;
public static final int Base_Theme_MaterialComponents = 2131886170;
public static final int Base_Theme_MaterialComponents_Bridge = 2131886171;
public static final int Base_Theme_MaterialComponents_CompactMenu = 2131886172;
public static final int Base_Theme_MaterialComponents_Dialog = 2131886173;
public static final int Base_Theme_MaterialComponents_DialogWhenLarge = 2131886178;
public static final int Base_Theme_MaterialComponents_Dialog_Alert = 2131886174;
public static final int Base_Theme_MaterialComponents_Dialog_Bridge = 2131886175;
public static final int Base_Theme_MaterialComponents_Dialog_FixedSize = 2131886176;
public static final int Base_Theme_MaterialComponents_Dialog_MinWidth = 2131886177;
public static final int Base_Theme_MaterialComponents_Light = 2131886179;
public static final int Base_Theme_MaterialComponents_Light_Bridge = 2131886180;
public static final int Base_Theme_MaterialComponents_Light_DarkActionBar = 2131886181;
public static final int Base_Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131886182;
public static final int Base_Theme_MaterialComponents_Light_Dialog = 2131886183;
public static final int Base_Theme_MaterialComponents_Light_DialogWhenLarge = 2131886188;
public static final int Base_Theme_MaterialComponents_Light_Dialog_Alert = 2131886184;
public static final int Base_Theme_MaterialComponents_Light_Dialog_Bridge = 2131886185;
public static final int Base_Theme_MaterialComponents_Light_Dialog_FixedSize = 2131886186;
public static final int Base_Theme_MaterialComponents_Light_Dialog_MinWidth = 2131886187;
public static final int Base_V14_ThemeOverlay_MaterialComponents_Dialog = 2131886210;
public static final int Base_V14_ThemeOverlay_MaterialComponents_Dialog_Alert = 2131886211;
public static final int Base_V14_ThemeOverlay_MaterialComponents_MaterialAlertDialog = 2131886212;
public static final int Base_V14_Theme_MaterialComponents = 2131886201;
public static final int Base_V14_Theme_MaterialComponents_Bridge = 2131886202;
public static final int Base_V14_Theme_MaterialComponents_Dialog = 2131886203;
public static final int Base_V14_Theme_MaterialComponents_Dialog_Bridge = 2131886204;
public static final int Base_V14_Theme_MaterialComponents_Light = 2131886205;
public static final int Base_V14_Theme_MaterialComponents_Light_Bridge = 2131886206;
public static final int Base_V14_Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131886207;
public static final int Base_V14_Theme_MaterialComponents_Light_Dialog = 2131886208;
public static final int Base_V14_Theme_MaterialComponents_Light_Dialog_Bridge = 2131886209;
public static final int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131886221;
public static final int Base_V21_Theme_AppCompat = 2131886213;
public static final int Base_V21_Theme_AppCompat_Dialog = 2131886214;
public static final int Base_V21_Theme_AppCompat_Light = 2131886215;
public static final int Base_V21_Theme_AppCompat_Light_Dialog = 2131886216;
public static final int Base_V21_Theme_MaterialComponents = 2131886217;
public static final int Base_V21_Theme_MaterialComponents_Dialog = 2131886218;
public static final int Base_V21_Theme_MaterialComponents_Light = 2131886219;
public static final int Base_V21_Theme_MaterialComponents_Light_Dialog = 2131886220;
public static final int Base_V22_Theme_AppCompat = 2131886222;
public static final int Base_V22_Theme_AppCompat_Light = 2131886223;
public static final int Base_V23_Theme_AppCompat = 2131886224;
public static final int Base_V23_Theme_AppCompat_Light = 2131886225;
public static final int Base_V26_Theme_AppCompat = 2131886226;
public static final int Base_V26_Theme_AppCompat_Light = 2131886227;
public static final int Base_V26_Widget_AppCompat_Toolbar = 2131886228;
public static final int Base_V28_Theme_AppCompat = 2131886229;
public static final int Base_V28_Theme_AppCompat_Light = 2131886230;
public static final int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131886235;
public static final int Base_V7_Theme_AppCompat = 2131886231;
public static final int Base_V7_Theme_AppCompat_Dialog = 2131886232;
public static final int Base_V7_Theme_AppCompat_Light = 2131886233;
public static final int Base_V7_Theme_AppCompat_Light_Dialog = 2131886234;
public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131886236;
public static final int Base_V7_Widget_AppCompat_EditText = 2131886237;
public static final int Base_V7_Widget_AppCompat_Toolbar = 2131886238;
public static final int Base_Widget_AppCompat_ActionBar = 2131886239;
public static final int Base_Widget_AppCompat_ActionBar_Solid = 2131886240;
public static final int Base_Widget_AppCompat_ActionBar_TabBar = 2131886241;
public static final int Base_Widget_AppCompat_ActionBar_TabText = 2131886242;
public static final int Base_Widget_AppCompat_ActionBar_TabView = 2131886243;
public static final int Base_Widget_AppCompat_ActionButton = 2131886244;
public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 2131886245;
public static final int Base_Widget_AppCompat_ActionButton_Overflow = 2131886246;
public static final int Base_Widget_AppCompat_ActionMode = 2131886247;
public static final int Base_Widget_AppCompat_ActivityChooserView = 2131886248;
public static final int Base_Widget_AppCompat_AutoCompleteTextView = 2131886249;
public static final int Base_Widget_AppCompat_Button = 2131886250;
public static final int Base_Widget_AppCompat_ButtonBar = 2131886256;
public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131886257;
public static final int Base_Widget_AppCompat_Button_Borderless = 2131886251;
public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 2131886252;
public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131886253;
public static final int Base_Widget_AppCompat_Button_Colored = 2131886254;
public static final int Base_Widget_AppCompat_Button_Small = 2131886255;
public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131886258;
public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131886259;
public static final int Base_Widget_AppCompat_CompoundButton_Switch = 2131886260;
public static final int Base_Widget_AppCompat_DrawerArrowToggle = 2131886261;
public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131886262;
public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 2131886263;
public static final int Base_Widget_AppCompat_EditText = 2131886264;
public static final int Base_Widget_AppCompat_ImageButton = 2131886265;
public static final int Base_Widget_AppCompat_Light_ActionBar = 2131886266;
public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131886267;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131886268;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131886269;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131886270;
public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131886271;
public static final int Base_Widget_AppCompat_Light_PopupMenu = 2131886272;
public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131886273;
public static final int Base_Widget_AppCompat_ListMenuView = 2131886274;
public static final int Base_Widget_AppCompat_ListPopupWindow = 2131886275;
public static final int Base_Widget_AppCompat_ListView = 2131886276;
public static final int Base_Widget_AppCompat_ListView_DropDown = 2131886277;
public static final int Base_Widget_AppCompat_ListView_Menu = 2131886278;
public static final int Base_Widget_AppCompat_PopupMenu = 2131886279;
public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 2131886280;
public static final int Base_Widget_AppCompat_PopupWindow = 2131886281;
public static final int Base_Widget_AppCompat_ProgressBar = 2131886282;
public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131886283;
public static final int Base_Widget_AppCompat_RatingBar = 2131886284;
public static final int Base_Widget_AppCompat_RatingBar_Indicator = 2131886285;
public static final int Base_Widget_AppCompat_RatingBar_Small = 2131886286;
public static final int Base_Widget_AppCompat_SearchView = 2131886287;
public static final int Base_Widget_AppCompat_SearchView_ActionBar = 2131886288;
public static final int Base_Widget_AppCompat_SeekBar = 2131886289;
public static final int Base_Widget_AppCompat_SeekBar_Discrete = 2131886290;
public static final int Base_Widget_AppCompat_Spinner = 2131886291;
public static final int Base_Widget_AppCompat_Spinner_Underlined = 2131886292;
public static final int Base_Widget_AppCompat_TextView = 2131886293;
public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 2131886294;
public static final int Base_Widget_AppCompat_Toolbar = 2131886295;
public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131886296;
public static final int Base_Widget_Design_TabLayout = 2131886297;
public static final int Base_Widget_MaterialComponents_AutoCompleteTextView = 2131886298;
public static final int Base_Widget_MaterialComponents_CheckedTextView = 2131886299;
public static final int Base_Widget_MaterialComponents_Chip = 2131886300;
public static final int Base_Widget_MaterialComponents_PopupMenu = 2131886301;
public static final int Base_Widget_MaterialComponents_PopupMenu_ContextMenu = 2131886302;
public static final int Base_Widget_MaterialComponents_PopupMenu_ListPopupWindow = 2131886303;
public static final int Base_Widget_MaterialComponents_PopupMenu_Overflow = 2131886304;
public static final int Base_Widget_MaterialComponents_Slider = 2131886305;
public static final int Base_Widget_MaterialComponents_TextInputEditText = 2131886306;
public static final int Base_Widget_MaterialComponents_TextInputLayout = 2131886307;
public static final int Base_Widget_MaterialComponents_TextView = 2131886308;
public static final int CardView = 2131886309;
public static final int CardView_Dark = 2131886310;
public static final int CardView_Light = 2131886311;
public static final int EmptyTheme = 2131886312;
public static final int MaterialAlertDialog_MaterialComponents = 2131886313;
public static final int MaterialAlertDialog_MaterialComponents_Body_Text = 2131886314;
public static final int MaterialAlertDialog_MaterialComponents_Picker_Date_Calendar = 2131886315;
public static final int MaterialAlertDialog_MaterialComponents_Picker_Date_Spinner = 2131886316;
public static final int MaterialAlertDialog_MaterialComponents_Title_Icon = 2131886317;
public static final int MaterialAlertDialog_MaterialComponents_Title_Icon_CenterStacked = 2131886318;
public static final int MaterialAlertDialog_MaterialComponents_Title_Panel = 2131886319;
public static final int MaterialAlertDialog_MaterialComponents_Title_Panel_CenterStacked = 2131886320;
public static final int MaterialAlertDialog_MaterialComponents_Title_Text = 2131886321;
public static final int MaterialAlertDialog_MaterialComponents_Title_Text_CenterStacked = 2131886322;
public static final int Platform_AppCompat = 2131886323;
public static final int Platform_AppCompat_Light = 2131886324;
public static final int Platform_MaterialComponents = 2131886325;
public static final int Platform_MaterialComponents_Dialog = 2131886326;
public static final int Platform_MaterialComponents_Light = 2131886327;
public static final int Platform_MaterialComponents_Light_Dialog = 2131886328;
public static final int Platform_ThemeOverlay_AppCompat = 2131886329;
public static final int Platform_ThemeOverlay_AppCompat_Dark = 2131886330;
public static final int Platform_ThemeOverlay_AppCompat_Light = 2131886331;
public static final int Platform_V21_AppCompat = 2131886332;
public static final int Platform_V21_AppCompat_Light = 2131886333;
public static final int Platform_V25_AppCompat = 2131886334;
public static final int Platform_V25_AppCompat_Light = 2131886335;
public static final int Platform_Widget_AppCompat_Spinner = 2131886336;
public static final int RtlOverlay_DialogWindowTitle_AppCompat = 2131886337;
public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131886338;
public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131886339;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131886340;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131886341;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 2131886342;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 2131886343;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131886344;
public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 2131886345;
public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131886351;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131886346;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131886347;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131886348;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131886349;
public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131886350;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 2131886352;
public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131886353;
public static final int ShapeAppearanceOverlay = 2131886360;
public static final int ShapeAppearanceOverlay_BottomLeftDifferentCornerSize = 2131886361;
public static final int ShapeAppearanceOverlay_BottomRightCut = 2131886362;
public static final int ShapeAppearanceOverlay_Cut = 2131886363;
public static final int ShapeAppearanceOverlay_DifferentCornerSize = 2131886364;
public static final int ShapeAppearanceOverlay_MaterialComponents_BottomSheet = 2131886365;
public static final int ShapeAppearanceOverlay_MaterialComponents_Chip = 2131886366;
public static final int ShapeAppearanceOverlay_MaterialComponents_ExtendedFloatingActionButton = 2131886367;
public static final int ShapeAppearanceOverlay_MaterialComponents_FloatingActionButton = 2131886368;
public static final int ShapeAppearanceOverlay_MaterialComponents_MaterialCalendar_Day = 2131886369;
public static final int ShapeAppearanceOverlay_MaterialComponents_MaterialCalendar_Window_Fullscreen = 2131886370;
public static final int ShapeAppearanceOverlay_MaterialComponents_MaterialCalendar_Year = 2131886371;
public static final int ShapeAppearanceOverlay_MaterialComponents_TextInputLayout_FilledBox = 2131886372;
public static final int ShapeAppearanceOverlay_TopLeftCut = 2131886373;
public static final int ShapeAppearanceOverlay_TopRightDifferentCornerSize = 2131886374;
public static final int ShapeAppearance_MaterialComponents = 2131886354;
public static final int ShapeAppearance_MaterialComponents_LargeComponent = 2131886355;
public static final int ShapeAppearance_MaterialComponents_MediumComponent = 2131886356;
public static final int ShapeAppearance_MaterialComponents_SmallComponent = 2131886357;
public static final int ShapeAppearance_MaterialComponents_Test = 2131886358;
public static final int ShapeAppearance_MaterialComponents_Tooltip = 2131886359;
public static final int TestStyleWithLineHeight = 2131886380;
public static final int TestStyleWithLineHeightAppearance = 2131886381;
public static final int TestStyleWithThemeLineHeightAttribute = 2131886382;
public static final int TestStyleWithoutLineHeight = 2131886383;
public static final int TestThemeWithLineHeight = 2131886384;
public static final int TestThemeWithLineHeightDisabled = 2131886385;
public static final int Test_ShapeAppearanceOverlay_MaterialComponents_MaterialCalendar_Day = 2131886375;
public static final int Test_Theme_MaterialComponents_MaterialCalendar = 2131886376;
public static final int Test_Widget_MaterialComponents_MaterialCalendar = 2131886377;
public static final int Test_Widget_MaterialComponents_MaterialCalendar_Day = 2131886378;
public static final int Test_Widget_MaterialComponents_MaterialCalendar_Day_Selected = 2131886379;
public static final int TextAppearance_AppCompat = 2131886386;
public static final int TextAppearance_AppCompat_Body1 = 2131886387;
public static final int TextAppearance_AppCompat_Body2 = 2131886388;
public static final int TextAppearance_AppCompat_Button = 2131886389;
public static final int TextAppearance_AppCompat_Caption = 2131886390;
public static final int TextAppearance_AppCompat_Display1 = 2131886391;
public static final int TextAppearance_AppCompat_Display2 = 2131886392;
public static final int TextAppearance_AppCompat_Display3 = 2131886393;
public static final int TextAppearance_AppCompat_Display4 = 2131886394;
public static final int TextAppearance_AppCompat_Headline = 2131886395;
public static final int TextAppearance_AppCompat_Inverse = 2131886396;
public static final int TextAppearance_AppCompat_Large = 2131886397;
public static final int TextAppearance_AppCompat_Large_Inverse = 2131886398;
public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131886399;
public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 2131886400;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131886401;
public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131886402;
public static final int TextAppearance_AppCompat_Medium = 2131886403;
public static final int TextAppearance_AppCompat_Medium_Inverse = 2131886404;
public static final int TextAppearance_AppCompat_Menu = 2131886405;
public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 2131886406;
public static final int TextAppearance_AppCompat_SearchResult_Title = 2131886407;
public static final int TextAppearance_AppCompat_Small = 2131886408;
public static final int TextAppearance_AppCompat_Small_Inverse = 2131886409;
public static final int TextAppearance_AppCompat_Subhead = 2131886410;
public static final int TextAppearance_AppCompat_Subhead_Inverse = 2131886411;
public static final int TextAppearance_AppCompat_Title = 2131886412;
public static final int TextAppearance_AppCompat_Title_Inverse = 2131886413;
public static final int TextAppearance_AppCompat_Tooltip = 2131886414;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131886415;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131886416;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131886417;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131886418;
public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131886419;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131886420;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131886421;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131886422;
public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131886423;
public static final int TextAppearance_AppCompat_Widget_Button = 2131886424;
public static final int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131886425;
public static final int TextAppearance_AppCompat_Widget_Button_Colored = 2131886426;
public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 2131886427;
public static final int TextAppearance_AppCompat_Widget_DropDownItem = 2131886428;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131886429;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131886430;
public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131886431;
public static final int TextAppearance_AppCompat_Widget_Switch = 2131886432;
public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131886433;
public static final int TextAppearance_Compat_Notification = 2131886434;
public static final int TextAppearance_Compat_Notification_Info = 2131886435;
public static final int TextAppearance_Compat_Notification_Info_Media = 2131886436;
public static final int TextAppearance_Compat_Notification_Line2 = 2131886437;
public static final int TextAppearance_Compat_Notification_Line2_Media = 2131886438;
public static final int TextAppearance_Compat_Notification_Media = 2131886439;
public static final int TextAppearance_Compat_Notification_Time = 2131886440;
public static final int TextAppearance_Compat_Notification_Time_Media = 2131886441;
public static final int TextAppearance_Compat_Notification_Title = 2131886442;
public static final int TextAppearance_Compat_Notification_Title_Media = 2131886443;
public static final int TextAppearance_Design_CollapsingToolbar_Expanded = 2131886444;
public static final int TextAppearance_Design_Counter = 2131886445;
public static final int TextAppearance_Design_Counter_Overflow = 2131886446;
public static final int TextAppearance_Design_Error = 2131886447;
public static final int TextAppearance_Design_HelperText = 2131886448;
public static final int TextAppearance_Design_Hint = 2131886449;
public static final int TextAppearance_Design_Placeholder = 2131886450;
public static final int TextAppearance_Design_Prefix = 2131886451;
public static final int TextAppearance_Design_Snackbar_Message = 2131886452;
public static final int TextAppearance_Design_Suffix = 2131886453;
public static final int TextAppearance_Design_Tab = 2131886454;
public static final int TextAppearance_MaterialComponents_Badge = 2131886455;
public static final int TextAppearance_MaterialComponents_Body1 = 2131886456;
public static final int TextAppearance_MaterialComponents_Body2 = 2131886457;
public static final int TextAppearance_MaterialComponents_Button = 2131886458;
public static final int TextAppearance_MaterialComponents_Caption = 2131886459;
public static final int TextAppearance_MaterialComponents_Chip = 2131886460;
public static final int TextAppearance_MaterialComponents_Headline1 = 2131886461;
public static final int TextAppearance_MaterialComponents_Headline2 = 2131886462;
public static final int TextAppearance_MaterialComponents_Headline3 = 2131886463;
public static final int TextAppearance_MaterialComponents_Headline4 = 2131886464;
public static final int TextAppearance_MaterialComponents_Headline5 = 2131886465;
public static final int TextAppearance_MaterialComponents_Headline6 = 2131886466;
public static final int TextAppearance_MaterialComponents_Overline = 2131886467;
public static final int TextAppearance_MaterialComponents_Subtitle1 = 2131886468;
public static final int TextAppearance_MaterialComponents_Subtitle2 = 2131886469;
public static final int TextAppearance_MaterialComponents_Tooltip = 2131886470;
public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131886471;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131886472;
public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131886473;
public static final int ThemeOverlayColorAccentRed = 2131886598;
public static final int ThemeOverlay_AppCompat = 2131886551;
public static final int ThemeOverlay_AppCompat_ActionBar = 2131886552;
public static final int ThemeOverlay_AppCompat_Dark = 2131886553;
public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 2131886554;
public static final int ThemeOverlay_AppCompat_DayNight = 2131886555;
public static final int ThemeOverlay_AppCompat_DayNight_ActionBar = 2131886556;
public static final int ThemeOverlay_AppCompat_Dialog = 2131886557;
public static final int ThemeOverlay_AppCompat_Dialog_Alert = 2131886558;
public static final int ThemeOverlay_AppCompat_Light = 2131886559;
public static final int ThemeOverlay_Design_TextInputEditText = 2131886560;
public static final int ThemeOverlay_MaterialComponents = 2131886561;
public static final int ThemeOverlay_MaterialComponents_ActionBar = 2131886562;
public static final int ThemeOverlay_MaterialComponents_ActionBar_Primary = 2131886563;
public static final int ThemeOverlay_MaterialComponents_ActionBar_Surface = 2131886564;
public static final int ThemeOverlay_MaterialComponents_AutoCompleteTextView = 2131886565;
public static final int ThemeOverlay_MaterialComponents_AutoCompleteTextView_FilledBox = 2131886566;
public static final int ThemeOverlay_MaterialComponents_AutoCompleteTextView_FilledBox_Dense = 2131886567;
public static final int ThemeOverlay_MaterialComponents_AutoCompleteTextView_OutlinedBox = 2131886568;
public static final int ThemeOverlay_MaterialComponents_AutoCompleteTextView_OutlinedBox_Dense = 2131886569;
public static final int ThemeOverlay_MaterialComponents_BottomAppBar_Primary = 2131886570;
public static final int ThemeOverlay_MaterialComponents_BottomAppBar_Surface = 2131886571;
public static final int ThemeOverlay_MaterialComponents_BottomSheetDialog = 2131886572;
public static final int ThemeOverlay_MaterialComponents_Dark = 2131886573;
public static final int ThemeOverlay_MaterialComponents_Dark_ActionBar = 2131886574;
public static final int ThemeOverlay_MaterialComponents_DayNight_BottomSheetDialog = 2131886575;
public static final int ThemeOverlay_MaterialComponents_Dialog = 2131886576;
public static final int ThemeOverlay_MaterialComponents_Dialog_Alert = 2131886577;
public static final int ThemeOverlay_MaterialComponents_Dialog_Alert_Framework = 2131886578;
public static final int ThemeOverlay_MaterialComponents_Light = 2131886579;
public static final int ThemeOverlay_MaterialComponents_Light_BottomSheetDialog = 2131886580;
public static final int ThemeOverlay_MaterialComponents_Light_Dialog_Alert_Framework = 2131886581;
public static final int ThemeOverlay_MaterialComponents_MaterialAlertDialog = 2131886582;
public static final int ThemeOverlay_MaterialComponents_MaterialAlertDialog_Centered = 2131886583;
public static final int ThemeOverlay_MaterialComponents_MaterialAlertDialog_Picker_Date = 2131886584;
public static final int ThemeOverlay_MaterialComponents_MaterialAlertDialog_Picker_Date_Calendar = 2131886585;
public static final int ThemeOverlay_MaterialComponents_MaterialAlertDialog_Picker_Date_Header_Text = 2131886586;
public static final int ThemeOverlay_MaterialComponents_MaterialAlertDialog_Picker_Date_Header_Text_Day = 2131886587;
public static final int ThemeOverlay_MaterialComponents_MaterialAlertDialog_Picker_Date_Spinner = 2131886588;
public static final int ThemeOverlay_MaterialComponents_MaterialCalendar = 2131886589;
public static final int ThemeOverlay_MaterialComponents_MaterialCalendar_Fullscreen = 2131886590;
public static final int ThemeOverlay_MaterialComponents_TextInputEditText = 2131886591;
public static final int ThemeOverlay_MaterialComponents_TextInputEditText_FilledBox = 2131886592;
public static final int ThemeOverlay_MaterialComponents_TextInputEditText_FilledBox_Dense = 2131886593;
public static final int ThemeOverlay_MaterialComponents_TextInputEditText_OutlinedBox = 2131886594;
public static final int ThemeOverlay_MaterialComponents_TextInputEditText_OutlinedBox_Dense = 2131886595;
public static final int ThemeOverlay_MaterialComponents_Toolbar_Primary = 2131886596;
public static final int ThemeOverlay_MaterialComponents_Toolbar_Surface = 2131886597;
public static final int Theme_AppCompat = 2131886474;
public static final int Theme_AppCompat_CompactMenu = 2131886475;
public static final int Theme_AppCompat_DayNight = 2131886476;
public static final int Theme_AppCompat_DayNight_DarkActionBar = 2131886477;
public static final int Theme_AppCompat_DayNight_Dialog = 2131886478;
public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 2131886481;
public static final int Theme_AppCompat_DayNight_Dialog_Alert = 2131886479;
public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131886480;
public static final int Theme_AppCompat_DayNight_NoActionBar = 2131886482;
public static final int Theme_AppCompat_Dialog = 2131886483;
public static final int Theme_AppCompat_DialogWhenLarge = 2131886486;
public static final int Theme_AppCompat_Dialog_Alert = 2131886484;
public static final int Theme_AppCompat_Dialog_MinWidth = 2131886485;
public static final int Theme_AppCompat_Empty = 2131886487;
public static final int Theme_AppCompat_Light = 2131886488;
public static final int Theme_AppCompat_Light_DarkActionBar = 2131886489;
public static final int Theme_AppCompat_Light_Dialog = 2131886490;
public static final int Theme_AppCompat_Light_DialogWhenLarge = 2131886493;
public static final int Theme_AppCompat_Light_Dialog_Alert = 2131886491;
public static final int Theme_AppCompat_Light_Dialog_MinWidth = 2131886492;
public static final int Theme_AppCompat_Light_NoActionBar = 2131886494;
public static final int Theme_AppCompat_NoActionBar = 2131886495;
public static final int Theme_Design = 2131886496;
public static final int Theme_Design_BottomSheetDialog = 2131886497;
public static final int Theme_Design_Light = 2131886498;
public static final int Theme_Design_Light_BottomSheetDialog = 2131886499;
public static final int Theme_Design_Light_NoActionBar = 2131886500;
public static final int Theme_Design_NoActionBar = 2131886501;
public static final int Theme_MaterialComponents = 2131886502;
public static final int Theme_MaterialComponents_BottomSheetDialog = 2131886503;
public static final int Theme_MaterialComponents_Bridge = 2131886504;
public static final int Theme_MaterialComponents_CompactMenu = 2131886505;
public static final int Theme_MaterialComponents_DayNight = 2131886506;
public static final int Theme_MaterialComponents_DayNight_BottomSheetDialog = 2131886507;
public static final int Theme_MaterialComponents_DayNight_Bridge = 2131886508;
public static final int Theme_MaterialComponents_DayNight_DarkActionBar = 2131886509;
public static final int Theme_MaterialComponents_DayNight_DarkActionBar_Bridge = 2131886510;
public static final int Theme_MaterialComponents_DayNight_Dialog = 2131886511;
public static final int Theme_MaterialComponents_DayNight_DialogWhenLarge = 2131886519;
public static final int Theme_MaterialComponents_DayNight_Dialog_Alert = 2131886512;
public static final int Theme_MaterialComponents_DayNight_Dialog_Alert_Bridge = 2131886513;
public static final int Theme_MaterialComponents_DayNight_Dialog_Bridge = 2131886514;
public static final int Theme_MaterialComponents_DayNight_Dialog_FixedSize = 2131886515;
public static final int Theme_MaterialComponents_DayNight_Dialog_FixedSize_Bridge = 2131886516;
public static final int Theme_MaterialComponents_DayNight_Dialog_MinWidth = 2131886517;
public static final int Theme_MaterialComponents_DayNight_Dialog_MinWidth_Bridge = 2131886518;
public static final int Theme_MaterialComponents_DayNight_NoActionBar = 2131886520;
public static final int Theme_MaterialComponents_DayNight_NoActionBar_Bridge = 2131886521;
public static final int Theme_MaterialComponents_Dialog = 2131886522;
public static final int Theme_MaterialComponents_DialogWhenLarge = 2131886530;
public static final int Theme_MaterialComponents_Dialog_Alert = 2131886523;
public static final int Theme_MaterialComponents_Dialog_Alert_Bridge = 2131886524;
public static final int Theme_MaterialComponents_Dialog_Bridge = 2131886525;
public static final int Theme_MaterialComponents_Dialog_FixedSize = 2131886526;
public static final int Theme_MaterialComponents_Dialog_FixedSize_Bridge = 2131886527;
public static final int Theme_MaterialComponents_Dialog_MinWidth = 2131886528;
public static final int Theme_MaterialComponents_Dialog_MinWidth_Bridge = 2131886529;
public static final int Theme_MaterialComponents_Light = 2131886531;
public static final int Theme_MaterialComponents_Light_BarSize = 2131886532;
public static final int Theme_MaterialComponents_Light_BottomSheetDialog = 2131886533;
public static final int Theme_MaterialComponents_Light_Bridge = 2131886534;
public static final int Theme_MaterialComponents_Light_DarkActionBar = 2131886535;
public static final int Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131886536;
public static final int Theme_MaterialComponents_Light_Dialog = 2131886537;
public static final int Theme_MaterialComponents_Light_DialogWhenLarge = 2131886545;
public static final int Theme_MaterialComponents_Light_Dialog_Alert = 2131886538;
public static final int Theme_MaterialComponents_Light_Dialog_Alert_Bridge = 2131886539;
public static final int Theme_MaterialComponents_Light_Dialog_Bridge = 2131886540;
public static final int Theme_MaterialComponents_Light_Dialog_FixedSize = 2131886541;
public static final int Theme_MaterialComponents_Light_Dialog_FixedSize_Bridge = 2131886542;
public static final int Theme_MaterialComponents_Light_Dialog_MinWidth = 2131886543;
public static final int Theme_MaterialComponents_Light_Dialog_MinWidth_Bridge = 2131886544;
public static final int Theme_MaterialComponents_Light_LargeTouch = 2131886546;
public static final int Theme_MaterialComponents_Light_NoActionBar = 2131886547;
public static final int Theme_MaterialComponents_Light_NoActionBar_Bridge = 2131886548;
public static final int Theme_MaterialComponents_NoActionBar = 2131886549;
public static final int Theme_MaterialComponents_NoActionBar_Bridge = 2131886550;
public static final int Widget_AppCompat_ActionBar = 2131886599;
public static final int Widget_AppCompat_ActionBar_Solid = 2131886600;
public static final int Widget_AppCompat_ActionBar_TabBar = 2131886601;
public static final int Widget_AppCompat_ActionBar_TabText = 2131886602;
public static final int Widget_AppCompat_ActionBar_TabView = 2131886603;
public static final int Widget_AppCompat_ActionButton = 2131886604;
public static final int Widget_AppCompat_ActionButton_CloseMode = 2131886605;
public static final int Widget_AppCompat_ActionButton_Overflow = 2131886606;
public static final int Widget_AppCompat_ActionMode = 2131886607;
public static final int Widget_AppCompat_ActivityChooserView = 2131886608;
public static final int Widget_AppCompat_AutoCompleteTextView = 2131886609;
public static final int Widget_AppCompat_Button = 2131886610;
public static final int Widget_AppCompat_ButtonBar = 2131886616;
public static final int Widget_AppCompat_ButtonBar_AlertDialog = 2131886617;
public static final int Widget_AppCompat_Button_Borderless = 2131886611;
public static final int Widget_AppCompat_Button_Borderless_Colored = 2131886612;
public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131886613;
public static final int Widget_AppCompat_Button_Colored = 2131886614;
public static final int Widget_AppCompat_Button_Small = 2131886615;
public static final int Widget_AppCompat_CompoundButton_CheckBox = 2131886618;
public static final int Widget_AppCompat_CompoundButton_RadioButton = 2131886619;
public static final int Widget_AppCompat_CompoundButton_Switch = 2131886620;
public static final int Widget_AppCompat_DrawerArrowToggle = 2131886621;
public static final int Widget_AppCompat_DropDownItem_Spinner = 2131886622;
public static final int Widget_AppCompat_EditText = 2131886623;
public static final int Widget_AppCompat_ImageButton = 2131886624;
public static final int Widget_AppCompat_Light_ActionBar = 2131886625;
public static final int Widget_AppCompat_Light_ActionBar_Solid = 2131886626;
public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131886627;
public static final int Widget_AppCompat_Light_ActionBar_TabBar = 2131886628;
public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131886629;
public static final int Widget_AppCompat_Light_ActionBar_TabText = 2131886630;
public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131886631;
public static final int Widget_AppCompat_Light_ActionBar_TabView = 2131886632;
public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131886633;
public static final int Widget_AppCompat_Light_ActionButton = 2131886634;
public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 2131886635;
public static final int Widget_AppCompat_Light_ActionButton_Overflow = 2131886636;
public static final int Widget_AppCompat_Light_ActionMode_Inverse = 2131886637;
public static final int Widget_AppCompat_Light_ActivityChooserView = 2131886638;
public static final int Widget_AppCompat_Light_AutoCompleteTextView = 2131886639;
public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 2131886640;
public static final int Widget_AppCompat_Light_ListPopupWindow = 2131886641;
public static final int Widget_AppCompat_Light_ListView_DropDown = 2131886642;
public static final int Widget_AppCompat_Light_PopupMenu = 2131886643;
public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 2131886644;
public static final int Widget_AppCompat_Light_SearchView = 2131886645;
public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131886646;
public static final int Widget_AppCompat_ListMenuView = 2131886647;
public static final int Widget_AppCompat_ListPopupWindow = 2131886648;
public static final int Widget_AppCompat_ListView = 2131886649;
public static final int Widget_AppCompat_ListView_DropDown = 2131886650;
public static final int Widget_AppCompat_ListView_Menu = 2131886651;
public static final int Widget_AppCompat_PopupMenu = 2131886652;
public static final int Widget_AppCompat_PopupMenu_Overflow = 2131886653;
public static final int Widget_AppCompat_PopupWindow = 2131886654;
public static final int Widget_AppCompat_ProgressBar = 2131886655;
public static final int Widget_AppCompat_ProgressBar_Horizontal = 2131886656;
public static final int Widget_AppCompat_RatingBar = 2131886657;
public static final int Widget_AppCompat_RatingBar_Indicator = 2131886658;
public static final int Widget_AppCompat_RatingBar_Small = 2131886659;
public static final int Widget_AppCompat_SearchView = 2131886660;
public static final int Widget_AppCompat_SearchView_ActionBar = 2131886661;
public static final int Widget_AppCompat_SeekBar = 2131886662;
public static final int Widget_AppCompat_SeekBar_Discrete = 2131886663;
public static final int Widget_AppCompat_Spinner = 2131886664;
public static final int Widget_AppCompat_Spinner_DropDown = 2131886665;
public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131886666;
public static final int Widget_AppCompat_Spinner_Underlined = 2131886667;
public static final int Widget_AppCompat_TextView = 2131886668;
public static final int Widget_AppCompat_TextView_SpinnerItem = 2131886669;
public static final int Widget_AppCompat_Toolbar = 2131886670;
public static final int Widget_AppCompat_Toolbar_Button_Navigation = 2131886671;
public static final int Widget_Compat_NotificationActionContainer = 2131886672;
public static final int Widget_Compat_NotificationActionText = 2131886673;
public static final int Widget_Design_AppBarLayout = 2131886674;
public static final int Widget_Design_BottomNavigationView = 2131886675;
public static final int Widget_Design_BottomSheet_Modal = 2131886676;
public static final int Widget_Design_CollapsingToolbar = 2131886677;
public static final int Widget_Design_FloatingActionButton = 2131886678;
public static final int Widget_Design_NavigationView = 2131886679;
public static final int Widget_Design_ScrimInsetsFrameLayout = 2131886680;
public static final int Widget_Design_Snackbar = 2131886681;
public static final int Widget_Design_TabLayout = 2131886682;
public static final int Widget_Design_TextInputEditText = 2131886683;
public static final int Widget_Design_TextInputLayout = 2131886684;
public static final int Widget_MaterialComponents_ActionBar_Primary = 2131886685;
public static final int Widget_MaterialComponents_ActionBar_PrimarySurface = 2131886686;
public static final int Widget_MaterialComponents_ActionBar_Solid = 2131886687;
public static final int Widget_MaterialComponents_ActionBar_Surface = 2131886688;
public static final int Widget_MaterialComponents_AppBarLayout_Primary = 2131886689;
public static final int Widget_MaterialComponents_AppBarLayout_PrimarySurface = 2131886690;
public static final int Widget_MaterialComponents_AppBarLayout_Surface = 2131886691;
public static final int Widget_MaterialComponents_AutoCompleteTextView_FilledBox = 2131886692;
public static final int Widget_MaterialComponents_AutoCompleteTextView_FilledBox_Dense = 2131886693;
public static final int Widget_MaterialComponents_AutoCompleteTextView_OutlinedBox = 2131886694;
public static final int Widget_MaterialComponents_AutoCompleteTextView_OutlinedBox_Dense = 2131886695;
public static final int Widget_MaterialComponents_Badge = 2131886696;
public static final int Widget_MaterialComponents_BottomAppBar = 2131886697;
public static final int Widget_MaterialComponents_BottomAppBar_Colored = 2131886698;
public static final int Widget_MaterialComponents_BottomAppBar_PrimarySurface = 2131886699;
public static final int Widget_MaterialComponents_BottomNavigationView = 2131886700;
public static final int Widget_MaterialComponents_BottomNavigationView_Colored = 2131886701;
public static final int Widget_MaterialComponents_BottomNavigationView_PrimarySurface = 2131886702;
public static final int Widget_MaterialComponents_BottomSheet = 2131886703;
public static final int Widget_MaterialComponents_BottomSheet_Modal = 2131886704;
public static final int Widget_MaterialComponents_Button = 2131886705;
public static final int Widget_MaterialComponents_Button_Icon = 2131886706;
public static final int Widget_MaterialComponents_Button_OutlinedButton = 2131886707;
public static final int Widget_MaterialComponents_Button_OutlinedButton_Icon = 2131886708;
public static final int Widget_MaterialComponents_Button_TextButton = 2131886709;
public static final int Widget_MaterialComponents_Button_TextButton_Dialog = 2131886710;
public static final int Widget_MaterialComponents_Button_TextButton_Dialog_Flush = 2131886711;
public static final int Widget_MaterialComponents_Button_TextButton_Dialog_Icon = 2131886712;
public static final int Widget_MaterialComponents_Button_TextButton_Icon = 2131886713;
public static final int Widget_MaterialComponents_Button_TextButton_Snackbar = 2131886714;
public static final int Widget_MaterialComponents_Button_UnelevatedButton = 2131886715;
public static final int Widget_MaterialComponents_Button_UnelevatedButton_Icon = 2131886716;
public static final int Widget_MaterialComponents_CardView = 2131886717;
public static final int Widget_MaterialComponents_CheckedTextView = 2131886718;
public static final int Widget_MaterialComponents_ChipGroup = 2131886723;
public static final int Widget_MaterialComponents_Chip_Action = 2131886719;
public static final int Widget_MaterialComponents_Chip_Choice = 2131886720;
public static final int Widget_MaterialComponents_Chip_Entry = 2131886721;
public static final int Widget_MaterialComponents_Chip_Filter = 2131886722;
public static final int Widget_MaterialComponents_CompoundButton_CheckBox = 2131886724;
public static final int Widget_MaterialComponents_CompoundButton_RadioButton = 2131886725;
public static final int Widget_MaterialComponents_CompoundButton_Switch = 2131886726;
public static final int Widget_MaterialComponents_ExtendedFloatingActionButton = 2131886727;
public static final int Widget_MaterialComponents_ExtendedFloatingActionButton_Icon = 2131886728;
public static final int Widget_MaterialComponents_FloatingActionButton = 2131886729;
public static final int Widget_MaterialComponents_Light_ActionBar_Solid = 2131886730;
public static final int Widget_MaterialComponents_MaterialButtonToggleGroup = 2131886731;
public static final int Widget_MaterialComponents_MaterialCalendar = 2131886732;
public static final int Widget_MaterialComponents_MaterialCalendar_Day = 2131886733;
public static final int Widget_MaterialComponents_MaterialCalendar_DayTextView = 2131886737;
public static final int Widget_MaterialComponents_MaterialCalendar_Day_Invalid = 2131886734;
public static final int Widget_MaterialComponents_MaterialCalendar_Day_Selected = 2131886735;
public static final int Widget_MaterialComponents_MaterialCalendar_Day_Today = 2131886736;
public static final int Widget_MaterialComponents_MaterialCalendar_Fullscreen = 2131886738;
public static final int Widget_MaterialComponents_MaterialCalendar_HeaderConfirmButton = 2131886739;
public static final int Widget_MaterialComponents_MaterialCalendar_HeaderDivider = 2131886740;
public static final int Widget_MaterialComponents_MaterialCalendar_HeaderLayout = 2131886741;
public static final int Widget_MaterialComponents_MaterialCalendar_HeaderSelection = 2131886742;
public static final int Widget_MaterialComponents_MaterialCalendar_HeaderSelection_Fullscreen = 2131886743;
public static final int Widget_MaterialComponents_MaterialCalendar_HeaderTitle = 2131886744;
public static final int Widget_MaterialComponents_MaterialCalendar_HeaderToggleButton = 2131886745;
public static final int Widget_MaterialComponents_MaterialCalendar_Item = 2131886746;
public static final int Widget_MaterialComponents_MaterialCalendar_Year = 2131886747;
public static final int Widget_MaterialComponents_MaterialCalendar_Year_Selected = 2131886748;
public static final int Widget_MaterialComponents_MaterialCalendar_Year_Today = 2131886749;
public static final int Widget_MaterialComponents_NavigationView = 2131886750;
public static final int Widget_MaterialComponents_PopupMenu = 2131886751;
public static final int Widget_MaterialComponents_PopupMenu_ContextMenu = 2131886752;
public static final int Widget_MaterialComponents_PopupMenu_ListPopupWindow = 2131886753;
public static final int Widget_MaterialComponents_PopupMenu_Overflow = 2131886754;
public static final int Widget_MaterialComponents_ShapeableImageView = 2131886755;
public static final int Widget_MaterialComponents_Slider = 2131886756;
public static final int Widget_MaterialComponents_Snackbar = 2131886757;
public static final int Widget_MaterialComponents_Snackbar_FullWidth = 2131886758;
public static final int Widget_MaterialComponents_Snackbar_TextView = 2131886759;
public static final int Widget_MaterialComponents_TabLayout = 2131886760;
public static final int Widget_MaterialComponents_TabLayout_Colored = 2131886761;
public static final int Widget_MaterialComponents_TabLayout_PrimarySurface = 2131886762;
public static final int Widget_MaterialComponents_TextInputEditText_FilledBox = 2131886763;
public static final int Widget_MaterialComponents_TextInputEditText_FilledBox_Dense = 2131886764;
public static final int Widget_MaterialComponents_TextInputEditText_OutlinedBox = 2131886765;
public static final int Widget_MaterialComponents_TextInputEditText_OutlinedBox_Dense = 2131886766;
public static final int Widget_MaterialComponents_TextInputLayout_FilledBox = 2131886767;
public static final int Widget_MaterialComponents_TextInputLayout_FilledBox_Dense = 2131886768;
public static final int Widget_MaterialComponents_TextInputLayout_FilledBox_Dense_ExposedDropdownMenu = 2131886769;
public static final int Widget_MaterialComponents_TextInputLayout_FilledBox_ExposedDropdownMenu = 2131886770;
public static final int Widget_MaterialComponents_TextInputLayout_OutlinedBox = 2131886771;
public static final int Widget_MaterialComponents_TextInputLayout_OutlinedBox_Dense = 2131886772;
public static final int Widget_MaterialComponents_TextInputLayout_OutlinedBox_Dense_ExposedDropdownMenu = 2131886773;
public static final int Widget_MaterialComponents_TextInputLayout_OutlinedBox_ExposedDropdownMenu = 2131886774;
public static final int Widget_MaterialComponents_TextView = 2131886775;
public static final int Widget_MaterialComponents_Toolbar = 2131886776;
public static final int Widget_MaterialComponents_Toolbar_Primary = 2131886777;
public static final int Widget_MaterialComponents_Toolbar_PrimarySurface = 2131886778;
public static final int Widget_MaterialComponents_Toolbar_Surface = 2131886779;
public static final int Widget_MaterialComponents_Tooltip = 2131886780;
public static final int Widget_Support_CoordinatorLayout = 2131886781;
public static final int navigationTheme = 2131886782;
public static final int nobar = 2131886783;
public static final int themezoo = 2131886784;
private style() {
}
}
public static final class styleable {
public static final int[] ActionBar = {R.attr.background, R.attr.backgroundSplit, R.attr.backgroundStacked, R.attr.contentInsetEnd, R.attr.contentInsetEndWithActions, R.attr.contentInsetLeft, R.attr.contentInsetRight, R.attr.contentInsetStart, R.attr.contentInsetStartWithNavigation, R.attr.customNavigationLayout, R.attr.displayOptions, R.attr.divider, R.attr.elevation, R.attr.height, R.attr.hideOnContentScroll, R.attr.homeAsUpIndicator, R.attr.homeLayout, R.attr.icon, R.attr.indeterminateProgressStyle, R.attr.itemPadding, R.attr.logo, R.attr.navigationMode, R.attr.popupTheme, R.attr.progressBarPadding, R.attr.progressBarStyle, R.attr.subtitle, R.attr.subtitleTextStyle, R.attr.title, R.attr.titleTextStyle};
public static final int[] ActionBarLayout = {16842931};
public static final int ActionBarLayout_android_layout_gravity = 0;
public static final int ActionBar_background = 0;
public static final int ActionBar_backgroundSplit = 1;
public static final int ActionBar_backgroundStacked = 2;
public static final int ActionBar_contentInsetEnd = 3;
public static final int ActionBar_contentInsetEndWithActions = 4;
public static final int ActionBar_contentInsetLeft = 5;
public static final int ActionBar_contentInsetRight = 6;
public static final int ActionBar_contentInsetStart = 7;
public static final int ActionBar_contentInsetStartWithNavigation = 8;
public static final int ActionBar_customNavigationLayout = 9;
public static final int ActionBar_displayOptions = 10;
public static final int ActionBar_divider = 11;
public static final int ActionBar_elevation = 12;
public static final int ActionBar_height = 13;
public static final int ActionBar_hideOnContentScroll = 14;
public static final int ActionBar_homeAsUpIndicator = 15;
public static final int ActionBar_homeLayout = 16;
public static final int ActionBar_icon = 17;
public static final int ActionBar_indeterminateProgressStyle = 18;
public static final int ActionBar_itemPadding = 19;
public static final int ActionBar_logo = 20;
public static final int ActionBar_navigationMode = 21;
public static final int ActionBar_popupTheme = 22;
public static final int ActionBar_progressBarPadding = 23;
public static final int ActionBar_progressBarStyle = 24;
public static final int ActionBar_subtitle = 25;
public static final int ActionBar_subtitleTextStyle = 26;
public static final int ActionBar_title = 27;
public static final int ActionBar_titleTextStyle = 28;
public static final int[] ActionMenuItemView = {16843071};
public static final int ActionMenuItemView_android_minWidth = 0;
public static final int[] ActionMenuView = new int[0];
public static final int[] ActionMode = {R.attr.background, R.attr.backgroundSplit, R.attr.closeItemLayout, R.attr.height, R.attr.subtitleTextStyle, R.attr.titleTextStyle};
public static final int ActionMode_background = 0;
public static final int ActionMode_backgroundSplit = 1;
public static final int ActionMode_closeItemLayout = 2;
public static final int ActionMode_height = 3;
public static final int ActionMode_subtitleTextStyle = 4;
public static final int ActionMode_titleTextStyle = 5;
public static final int[] ActivityChooserView = {R.attr.expandActivityOverflowButtonDrawable, R.attr.initialActivityCount};
public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
public static final int ActivityChooserView_initialActivityCount = 1;
public static final int[] AlertDialog = {16842994, R.attr.buttonIconDimen, R.attr.buttonPanelSideLayout, R.attr.listItemLayout, R.attr.listLayout, R.attr.multiChoiceItemLayout, R.attr.showTitle, R.attr.singleChoiceItemLayout};
public static final int AlertDialog_android_layout = 0;
public static final int AlertDialog_buttonIconDimen = 1;
public static final int AlertDialog_buttonPanelSideLayout = 2;
public static final int AlertDialog_listItemLayout = 3;
public static final int AlertDialog_listLayout = 4;
public static final int AlertDialog_multiChoiceItemLayout = 5;
public static final int AlertDialog_showTitle = 6;
public static final int AlertDialog_singleChoiceItemLayout = 7;
public static final int[] AnimatedStateListDrawableCompat = {16843036, 16843156, 16843157, 16843158, 16843532, 16843533};
public static final int AnimatedStateListDrawableCompat_android_constantSize = 3;
public static final int AnimatedStateListDrawableCompat_android_dither = 0;
public static final int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4;
public static final int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5;
public static final int AnimatedStateListDrawableCompat_android_variablePadding = 2;
public static final int AnimatedStateListDrawableCompat_android_visible = 1;
public static final int[] AnimatedStateListDrawableItem = {16842960, 16843161};
public static final int AnimatedStateListDrawableItem_android_drawable = 1;
public static final int AnimatedStateListDrawableItem_android_id = 0;
public static final int[] AnimatedStateListDrawableTransition = {16843161, 16843849, 16843850, 16843851};
public static final int AnimatedStateListDrawableTransition_android_drawable = 0;
public static final int AnimatedStateListDrawableTransition_android_fromId = 2;
public static final int AnimatedStateListDrawableTransition_android_reversible = 3;
public static final int AnimatedStateListDrawableTransition_android_toId = 1;
public static final int[] AppBarLayout = {16842964, 16843919, 16844096, R.attr.elevation, R.attr.expanded, R.attr.liftOnScroll, R.attr.liftOnScrollTargetViewId, R.attr.statusBarForeground};
public static final int[] AppBarLayoutStates = {R.attr.state_collapsed, R.attr.state_collapsible, R.attr.state_liftable, R.attr.state_lifted};
public static final int AppBarLayoutStates_state_collapsed = 0;
public static final int AppBarLayoutStates_state_collapsible = 1;
public static final int AppBarLayoutStates_state_liftable = 2;
public static final int AppBarLayoutStates_state_lifted = 3;
public static final int[] AppBarLayout_Layout = {R.attr.layout_scrollFlags, R.attr.layout_scrollInterpolator};
public static final int AppBarLayout_Layout_layout_scrollFlags = 0;
public static final int AppBarLayout_Layout_layout_scrollInterpolator = 1;
public static final int AppBarLayout_android_background = 0;
public static final int AppBarLayout_android_keyboardNavigationCluster = 2;
public static final int AppBarLayout_android_touchscreenBlocksFocus = 1;
public static final int AppBarLayout_elevation = 3;
public static final int AppBarLayout_expanded = 4;
public static final int AppBarLayout_liftOnScroll = 5;
public static final int AppBarLayout_liftOnScrollTargetViewId = 6;
public static final int AppBarLayout_statusBarForeground = 7;
public static final int[] AppCompatImageView = {16843033, R.attr.srcCompat, R.attr.tint, R.attr.tintMode};
public static final int AppCompatImageView_android_src = 0;
public static final int AppCompatImageView_srcCompat = 1;
public static final int AppCompatImageView_tint = 2;
public static final int AppCompatImageView_tintMode = 3;
public static final int[] AppCompatSeekBar = {16843074, R.attr.tickMark, R.attr.tickMarkTint, R.attr.tickMarkTintMode};
public static final int AppCompatSeekBar_android_thumb = 0;
public static final int AppCompatSeekBar_tickMark = 1;
public static final int AppCompatSeekBar_tickMarkTint = 2;
public static final int AppCompatSeekBar_tickMarkTintMode = 3;
public static final int[] AppCompatTextHelper = {16842804, 16843117, 16843118, 16843119, 16843120, 16843666, 16843667};
public static final int AppCompatTextHelper_android_drawableBottom = 2;
public static final int AppCompatTextHelper_android_drawableEnd = 6;
public static final int AppCompatTextHelper_android_drawableLeft = 3;
public static final int AppCompatTextHelper_android_drawableRight = 4;
public static final int AppCompatTextHelper_android_drawableStart = 5;
public static final int AppCompatTextHelper_android_drawableTop = 1;
public static final int AppCompatTextHelper_android_textAppearance = 0;
public static final int[] AppCompatTextView = {16842804, R.attr.autoSizeMaxTextSize, R.attr.autoSizeMinTextSize, R.attr.autoSizePresetSizes, R.attr.autoSizeStepGranularity, R.attr.autoSizeTextType, R.attr.drawableBottomCompat, R.attr.drawableEndCompat, R.attr.drawableLeftCompat, R.attr.drawableRightCompat, R.attr.drawableStartCompat, R.attr.drawableTint, R.attr.drawableTintMode, R.attr.drawableTopCompat, R.attr.firstBaselineToTopHeight, R.attr.fontFamily, R.attr.fontVariationSettings, R.attr.lastBaselineToBottomHeight, R.attr.lineHeight, R.attr.textAllCaps, R.attr.textLocale};
public static final int AppCompatTextView_android_textAppearance = 0;
public static final int AppCompatTextView_autoSizeMaxTextSize = 1;
public static final int AppCompatTextView_autoSizeMinTextSize = 2;
public static final int AppCompatTextView_autoSizePresetSizes = 3;
public static final int AppCompatTextView_autoSizeStepGranularity = 4;
public static final int AppCompatTextView_autoSizeTextType = 5;
public static final int AppCompatTextView_drawableBottomCompat = 6;
public static final int AppCompatTextView_drawableEndCompat = 7;
public static final int AppCompatTextView_drawableLeftCompat = 8;
public static final int AppCompatTextView_drawableRightCompat = 9;
public static final int AppCompatTextView_drawableStartCompat = 10;
public static final int AppCompatTextView_drawableTint = 11;
public static final int AppCompatTextView_drawableTintMode = 12;
public static final int AppCompatTextView_drawableTopCompat = 13;
public static final int AppCompatTextView_firstBaselineToTopHeight = 14;
public static final int AppCompatTextView_fontFamily = 15;
public static final int AppCompatTextView_fontVariationSettings = 16;
public static final int AppCompatTextView_lastBaselineToBottomHeight = 17;
public static final int AppCompatTextView_lineHeight = 18;
public static final int AppCompatTextView_textAllCaps = 19;
public static final int AppCompatTextView_textLocale = 20;
public static final int[] AppCompatTheme = {16842839, 16842926, R.attr.actionBarDivider, R.attr.actionBarItemBackground, R.attr.actionBarPopupTheme, R.attr.actionBarSize, R.attr.actionBarSplitStyle, R.attr.actionBarStyle, R.attr.actionBarTabBarStyle, R.attr.actionBarTabStyle, R.attr.actionBarTabTextStyle, R.attr.actionBarTheme, R.attr.actionBarWidgetTheme, R.attr.actionButtonStyle, R.attr.actionDropDownStyle, R.attr.actionMenuTextAppearance, R.attr.actionMenuTextColor, R.attr.actionModeBackground, R.attr.actionModeCloseButtonStyle, R.attr.actionModeCloseDrawable, R.attr.actionModeCopyDrawable, R.attr.actionModeCutDrawable, R.attr.actionModeFindDrawable, R.attr.actionModePasteDrawable, R.attr.actionModePopupWindowStyle, R.attr.actionModeSelectAllDrawable, R.attr.actionModeShareDrawable, R.attr.actionModeSplitBackground, R.attr.actionModeStyle, R.attr.actionModeWebSearchDrawable, R.attr.actionOverflowButtonStyle, R.attr.actionOverflowMenuStyle, R.attr.activityChooserViewStyle, R.attr.alertDialogButtonGroupStyle, R.attr.alertDialogCenterButtons, R.attr.alertDialogStyle, R.attr.alertDialogTheme, R.attr.autoCompleteTextViewStyle, R.attr.borderlessButtonStyle, R.attr.buttonBarButtonStyle, R.attr.buttonBarNegativeButtonStyle, R.attr.buttonBarNeutralButtonStyle, R.attr.buttonBarPositiveButtonStyle, R.attr.buttonBarStyle, R.attr.buttonStyle, R.attr.buttonStyleSmall, R.attr.checkboxStyle, R.attr.checkedTextViewStyle, R.attr.colorAccent, R.attr.colorBackgroundFloating, R.attr.colorButtonNormal, R.attr.colorControlActivated, R.attr.colorControlHighlight, R.attr.colorControlNormal, R.attr.colorError, R.attr.colorPrimary, R.attr.colorPrimaryDark, R.attr.colorSwitchThumbNormal, R.attr.controlBackground, R.attr.dialogCornerRadius, R.attr.dialogPreferredPadding, R.attr.dialogTheme, R.attr.dividerHorizontal, R.attr.dividerVertical, R.attr.dropDownListViewStyle, R.attr.dropdownListPreferredItemHeight, R.attr.editTextBackground, R.attr.editTextColor, R.attr.editTextStyle, R.attr.homeAsUpIndicator, R.attr.imageButtonStyle, R.attr.listChoiceBackgroundIndicator, R.attr.listChoiceIndicatorMultipleAnimated, R.attr.listChoiceIndicatorSingleAnimated, R.attr.listDividerAlertDialog, R.attr.listMenuViewStyle, R.attr.listPopupWindowStyle, R.attr.listPreferredItemHeight, R.attr.listPreferredItemHeightLarge, R.attr.listPreferredItemHeightSmall, R.attr.listPreferredItemPaddingEnd, R.attr.listPreferredItemPaddingLeft, R.attr.listPreferredItemPaddingRight, R.attr.listPreferredItemPaddingStart, R.attr.panelBackground, R.attr.panelMenuListTheme, R.attr.panelMenuListWidth, R.attr.popupMenuStyle, R.attr.popupWindowStyle, R.attr.radioButtonStyle, R.attr.ratingBarStyle, R.attr.ratingBarStyleIndicator, R.attr.ratingBarStyleSmall, R.attr.searchViewStyle, R.attr.seekBarStyle, R.attr.selectableItemBackground, R.attr.selectableItemBackgroundBorderless, R.attr.spinnerDropDownItemStyle, R.attr.spinnerStyle, R.attr.switchStyle, R.attr.textAppearanceLargePopupMenu, R.attr.textAppearanceListItem, R.attr.textAppearanceListItemSecondary, R.attr.textAppearanceListItemSmall, R.attr.textAppearancePopupMenuHeader, R.attr.textAppearanceSearchResultSubtitle, R.attr.textAppearanceSearchResultTitle, R.attr.textAppearanceSmallPopupMenu, R.attr.textColorAlertDialogListItem, R.attr.textColorSearchUrl, R.attr.toolbarNavigationButtonStyle, R.attr.toolbarStyle, R.attr.tooltipForegroundColor, R.attr.tooltipFrameBackground, R.attr.viewInflaterClass, R.attr.windowActionBar, R.attr.windowActionBarOverlay, R.attr.windowActionModeOverlay, R.attr.windowFixedHeightMajor, R.attr.windowFixedHeightMinor, R.attr.windowFixedWidthMajor, R.attr.windowFixedWidthMinor, R.attr.windowMinWidthMajor, R.attr.windowMinWidthMinor, R.attr.windowNoTitle};
public static final int AppCompatTheme_actionBarDivider = 2;
public static final int AppCompatTheme_actionBarItemBackground = 3;
public static final int AppCompatTheme_actionBarPopupTheme = 4;
public static final int AppCompatTheme_actionBarSize = 5;
public static final int AppCompatTheme_actionBarSplitStyle = 6;
public static final int AppCompatTheme_actionBarStyle = 7;
public static final int AppCompatTheme_actionBarTabBarStyle = 8;
public static final int AppCompatTheme_actionBarTabStyle = 9;
public static final int AppCompatTheme_actionBarTabTextStyle = 10;
public static final int AppCompatTheme_actionBarTheme = 11;
public static final int AppCompatTheme_actionBarWidgetTheme = 12;
public static final int AppCompatTheme_actionButtonStyle = 13;
public static final int AppCompatTheme_actionDropDownStyle = 14;
public static final int AppCompatTheme_actionMenuTextAppearance = 15;
public static final int AppCompatTheme_actionMenuTextColor = 16;
public static final int AppCompatTheme_actionModeBackground = 17;
public static final int AppCompatTheme_actionModeCloseButtonStyle = 18;
public static final int AppCompatTheme_actionModeCloseDrawable = 19;
public static final int AppCompatTheme_actionModeCopyDrawable = 20;
public static final int AppCompatTheme_actionModeCutDrawable = 21;
public static final int AppCompatTheme_actionModeFindDrawable = 22;
public static final int AppCompatTheme_actionModePasteDrawable = 23;
public static final int AppCompatTheme_actionModePopupWindowStyle = 24;
public static final int AppCompatTheme_actionModeSelectAllDrawable = 25;
public static final int AppCompatTheme_actionModeShareDrawable = 26;
public static final int AppCompatTheme_actionModeSplitBackground = 27;
public static final int AppCompatTheme_actionModeStyle = 28;
public static final int AppCompatTheme_actionModeWebSearchDrawable = 29;
public static final int AppCompatTheme_actionOverflowButtonStyle = 30;
public static final int AppCompatTheme_actionOverflowMenuStyle = 31;
public static final int AppCompatTheme_activityChooserViewStyle = 32;
public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33;
public static final int AppCompatTheme_alertDialogCenterButtons = 34;
public static final int AppCompatTheme_alertDialogStyle = 35;
public static final int AppCompatTheme_alertDialogTheme = 36;
public static final int AppCompatTheme_android_windowAnimationStyle = 1;
public static final int AppCompatTheme_android_windowIsFloating = 0;
public static final int AppCompatTheme_autoCompleteTextViewStyle = 37;
public static final int AppCompatTheme_borderlessButtonStyle = 38;
public static final int AppCompatTheme_buttonBarButtonStyle = 39;
public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40;
public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41;
public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42;
public static final int AppCompatTheme_buttonBarStyle = 43;
public static final int AppCompatTheme_buttonStyle = 44;
public static final int AppCompatTheme_buttonStyleSmall = 45;
public static final int AppCompatTheme_checkboxStyle = 46;
public static final int AppCompatTheme_checkedTextViewStyle = 47;
public static final int AppCompatTheme_colorAccent = 48;
public static final int AppCompatTheme_colorBackgroundFloating = 49;
public static final int AppCompatTheme_colorButtonNormal = 50;
public static final int AppCompatTheme_colorControlActivated = 51;
public static final int AppCompatTheme_colorControlHighlight = 52;
public static final int AppCompatTheme_colorControlNormal = 53;
public static final int AppCompatTheme_colorError = 54;
public static final int AppCompatTheme_colorPrimary = 55;
public static final int AppCompatTheme_colorPrimaryDark = 56;
public static final int AppCompatTheme_colorSwitchThumbNormal = 57;
public static final int AppCompatTheme_controlBackground = 58;
public static final int AppCompatTheme_dialogCornerRadius = 59;
public static final int AppCompatTheme_dialogPreferredPadding = 60;
public static final int AppCompatTheme_dialogTheme = 61;
public static final int AppCompatTheme_dividerHorizontal = 62;
public static final int AppCompatTheme_dividerVertical = 63;
public static final int AppCompatTheme_dropDownListViewStyle = 64;
public static final int AppCompatTheme_dropdownListPreferredItemHeight = 65;
public static final int AppCompatTheme_editTextBackground = 66;
public static final int AppCompatTheme_editTextColor = 67;
public static final int AppCompatTheme_editTextStyle = 68;
public static final int AppCompatTheme_homeAsUpIndicator = 69;
public static final int AppCompatTheme_imageButtonStyle = 70;
public static final int AppCompatTheme_listChoiceBackgroundIndicator = 71;
public static final int AppCompatTheme_listChoiceIndicatorMultipleAnimated = 72;
public static final int AppCompatTheme_listChoiceIndicatorSingleAnimated = 73;
public static final int AppCompatTheme_listDividerAlertDialog = 74;
public static final int AppCompatTheme_listMenuViewStyle = 75;
public static final int AppCompatTheme_listPopupWindowStyle = 76;
public static final int AppCompatTheme_listPreferredItemHeight = 77;
public static final int AppCompatTheme_listPreferredItemHeightLarge = 78;
public static final int AppCompatTheme_listPreferredItemHeightSmall = 79;
public static final int AppCompatTheme_listPreferredItemPaddingEnd = 80;
public static final int AppCompatTheme_listPreferredItemPaddingLeft = 81;
public static final int AppCompatTheme_listPreferredItemPaddingRight = 82;
public static final int AppCompatTheme_listPreferredItemPaddingStart = 83;
public static final int AppCompatTheme_panelBackground = 84;
public static final int AppCompatTheme_panelMenuListTheme = 85;
public static final int AppCompatTheme_panelMenuListWidth = 86;
public static final int AppCompatTheme_popupMenuStyle = 87;
public static final int AppCompatTheme_popupWindowStyle = 88;
public static final int AppCompatTheme_radioButtonStyle = 89;
public static final int AppCompatTheme_ratingBarStyle = 90;
public static final int AppCompatTheme_ratingBarStyleIndicator = 91;
public static final int AppCompatTheme_ratingBarStyleSmall = 92;
public static final int AppCompatTheme_searchViewStyle = 93;
public static final int AppCompatTheme_seekBarStyle = 94;
public static final int AppCompatTheme_selectableItemBackground = 95;
public static final int AppCompatTheme_selectableItemBackgroundBorderless = 96;
public static final int AppCompatTheme_spinnerDropDownItemStyle = 97;
public static final int AppCompatTheme_spinnerStyle = 98;
public static final int AppCompatTheme_switchStyle = 99;
public static final int AppCompatTheme_textAppearanceLargePopupMenu = 100;
public static final int AppCompatTheme_textAppearanceListItem = 101;
public static final int AppCompatTheme_textAppearanceListItemSecondary = 102;
public static final int AppCompatTheme_textAppearanceListItemSmall = 103;
public static final int AppCompatTheme_textAppearancePopupMenuHeader = 104;
public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 105;
public static final int AppCompatTheme_textAppearanceSearchResultTitle = 106;
public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 107;
public static final int AppCompatTheme_textColorAlertDialogListItem = 108;
public static final int AppCompatTheme_textColorSearchUrl = 109;
public static final int AppCompatTheme_toolbarNavigationButtonStyle = 110;
public static final int AppCompatTheme_toolbarStyle = 111;
public static final int AppCompatTheme_tooltipForegroundColor = 112;
public static final int AppCompatTheme_tooltipFrameBackground = 113;
public static final int AppCompatTheme_viewInflaterClass = 114;
public static final int AppCompatTheme_windowActionBar = 115;
public static final int AppCompatTheme_windowActionBarOverlay = 116;
public static final int AppCompatTheme_windowActionModeOverlay = 117;
public static final int AppCompatTheme_windowFixedHeightMajor = 118;
public static final int AppCompatTheme_windowFixedHeightMinor = 119;
public static final int AppCompatTheme_windowFixedWidthMajor = 120;
public static final int AppCompatTheme_windowFixedWidthMinor = 121;
public static final int AppCompatTheme_windowMinWidthMajor = 122;
public static final int AppCompatTheme_windowMinWidthMinor = 123;
public static final int AppCompatTheme_windowNoTitle = 124;
public static final int[] Badge = {R.attr.backgroundColor, R.attr.badgeGravity, R.attr.badgeTextColor, R.attr.horizontalOffset, R.attr.maxCharacterCount, R.attr.number, R.attr.verticalOffset};
public static final int Badge_backgroundColor = 0;
public static final int Badge_badgeGravity = 1;
public static final int Badge_badgeTextColor = 2;
public static final int Badge_horizontalOffset = 3;
public static final int Badge_maxCharacterCount = 4;
public static final int Badge_number = 5;
public static final int Badge_verticalOffset = 6;
public static final int[] BottomAppBar = {R.attr.backgroundTint, R.attr.elevation, R.attr.fabAlignmentMode, R.attr.fabAnimationMode, R.attr.fabCradleMargin, R.attr.fabCradleRoundedCornerRadius, R.attr.fabCradleVerticalOffset, R.attr.hideOnScroll, R.attr.paddingBottomSystemWindowInsets, R.attr.paddingLeftSystemWindowInsets, R.attr.paddingRightSystemWindowInsets};
public static final int BottomAppBar_backgroundTint = 0;
public static final int BottomAppBar_elevation = 1;
public static final int BottomAppBar_fabAlignmentMode = 2;
public static final int BottomAppBar_fabAnimationMode = 3;
public static final int BottomAppBar_fabCradleMargin = 4;
public static final int BottomAppBar_fabCradleRoundedCornerRadius = 5;
public static final int BottomAppBar_fabCradleVerticalOffset = 6;
public static final int BottomAppBar_hideOnScroll = 7;
public static final int BottomAppBar_paddingBottomSystemWindowInsets = 8;
public static final int BottomAppBar_paddingLeftSystemWindowInsets = 9;
public static final int BottomAppBar_paddingRightSystemWindowInsets = 10;
public static final int[] BottomNavigationView = {R.attr.backgroundTint, R.attr.elevation, R.attr.itemBackground, R.attr.itemHorizontalTranslationEnabled, R.attr.itemIconSize, R.attr.itemIconTint, R.attr.itemRippleColor, R.attr.itemTextAppearanceActive, R.attr.itemTextAppearanceInactive, R.attr.itemTextColor, R.attr.labelVisibilityMode, R.attr.menu};
public static final int BottomNavigationView_backgroundTint = 0;
public static final int BottomNavigationView_elevation = 1;
public static final int BottomNavigationView_itemBackground = 2;
public static final int BottomNavigationView_itemHorizontalTranslationEnabled = 3;
public static final int BottomNavigationView_itemIconSize = 4;
public static final int BottomNavigationView_itemIconTint = 5;
public static final int BottomNavigationView_itemRippleColor = 6;
public static final int BottomNavigationView_itemTextAppearanceActive = 7;
public static final int BottomNavigationView_itemTextAppearanceInactive = 8;
public static final int BottomNavigationView_itemTextColor = 9;
public static final int BottomNavigationView_labelVisibilityMode = 10;
public static final int BottomNavigationView_menu = 11;
public static final int[] BottomSheetBehavior_Layout = {16843840, R.attr.backgroundTint, R.attr.behavior_draggable, R.attr.behavior_expandedOffset, R.attr.behavior_fitToContents, R.attr.behavior_halfExpandedRatio, R.attr.behavior_hideable, R.attr.behavior_peekHeight, R.attr.behavior_saveFlags, R.attr.behavior_skipCollapsed, R.attr.gestureInsetBottomIgnored, R.attr.shapeAppearance, R.attr.shapeAppearanceOverlay};
public static final int BottomSheetBehavior_Layout_android_elevation = 0;
public static final int BottomSheetBehavior_Layout_backgroundTint = 1;
public static final int BottomSheetBehavior_Layout_behavior_draggable = 2;
public static final int BottomSheetBehavior_Layout_behavior_expandedOffset = 3;
public static final int BottomSheetBehavior_Layout_behavior_fitToContents = 4;
public static final int BottomSheetBehavior_Layout_behavior_halfExpandedRatio = 5;
public static final int BottomSheetBehavior_Layout_behavior_hideable = 6;
public static final int BottomSheetBehavior_Layout_behavior_peekHeight = 7;
public static final int BottomSheetBehavior_Layout_behavior_saveFlags = 8;
public static final int BottomSheetBehavior_Layout_behavior_skipCollapsed = 9;
public static final int BottomSheetBehavior_Layout_gestureInsetBottomIgnored = 10;
public static final int BottomSheetBehavior_Layout_shapeAppearance = 11;
public static final int BottomSheetBehavior_Layout_shapeAppearanceOverlay = 12;
public static final int[] ButtonBarLayout = {R.attr.allowStacking};
public static final int ButtonBarLayout_allowStacking = 0;
public static final int[] CardView = {16843071, 16843072, R.attr.cardBackgroundColor, R.attr.cardCornerRadius, R.attr.cardElevation, R.attr.cardMaxElevation, R.attr.cardPreventCornerOverlap, R.attr.cardUseCompatPadding, R.attr.contentPadding, R.attr.contentPaddingBottom, R.attr.contentPaddingLeft, R.attr.contentPaddingRight, R.attr.contentPaddingTop};
public static final int CardView_android_minHeight = 1;
public static final int CardView_android_minWidth = 0;
public static final int CardView_cardBackgroundColor = 2;
public static final int CardView_cardCornerRadius = 3;
public static final int CardView_cardElevation = 4;
public static final int CardView_cardMaxElevation = 5;
public static final int CardView_cardPreventCornerOverlap = 6;
public static final int CardView_cardUseCompatPadding = 7;
public static final int CardView_contentPadding = 8;
public static final int CardView_contentPaddingBottom = 9;
public static final int CardView_contentPaddingLeft = 10;
public static final int CardView_contentPaddingRight = 11;
public static final int CardView_contentPaddingTop = 12;
public static final int[] Chip = {16842804, 16842904, 16842923, 16843039, 16843087, 16843237, R.attr.checkedIcon, R.attr.checkedIconEnabled, R.attr.checkedIconTint, R.attr.checkedIconVisible, R.attr.chipBackgroundColor, R.attr.chipCornerRadius, R.attr.chipEndPadding, R.attr.chipIcon, R.attr.chipIconEnabled, R.attr.chipIconSize, R.attr.chipIconTint, R.attr.chipIconVisible, R.attr.chipMinHeight, R.attr.chipMinTouchTargetSize, R.attr.chipStartPadding, R.attr.chipStrokeColor, R.attr.chipStrokeWidth, R.attr.chipSurfaceColor, R.attr.closeIcon, R.attr.closeIconEnabled, R.attr.closeIconEndPadding, R.attr.closeIconSize, R.attr.closeIconStartPadding, R.attr.closeIconTint, R.attr.closeIconVisible, R.attr.ensureMinTouchTargetSize, R.attr.hideMotionSpec, R.attr.iconEndPadding, R.attr.iconStartPadding, R.attr.rippleColor, R.attr.shapeAppearance, R.attr.shapeAppearanceOverlay, R.attr.showMotionSpec, R.attr.textEndPadding, R.attr.textStartPadding};
public static final int[] ChipGroup = {R.attr.checkedChip, R.attr.chipSpacing, R.attr.chipSpacingHorizontal, R.attr.chipSpacingVertical, R.attr.selectionRequired, R.attr.singleLine, R.attr.singleSelection};
public static final int ChipGroup_checkedChip = 0;
public static final int ChipGroup_chipSpacing = 1;
public static final int ChipGroup_chipSpacingHorizontal = 2;
public static final int ChipGroup_chipSpacingVertical = 3;
public static final int ChipGroup_selectionRequired = 4;
public static final int ChipGroup_singleLine = 5;
public static final int ChipGroup_singleSelection = 6;
public static final int Chip_android_checkable = 5;
public static final int Chip_android_ellipsize = 2;
public static final int Chip_android_maxWidth = 3;
public static final int Chip_android_text = 4;
public static final int Chip_android_textAppearance = 0;
public static final int Chip_android_textColor = 1;
public static final int Chip_checkedIcon = 6;
public static final int Chip_checkedIconEnabled = 7;
public static final int Chip_checkedIconTint = 8;
public static final int Chip_checkedIconVisible = 9;
public static final int Chip_chipBackgroundColor = 10;
public static final int Chip_chipCornerRadius = 11;
public static final int Chip_chipEndPadding = 12;
public static final int Chip_chipIcon = 13;
public static final int Chip_chipIconEnabled = 14;
public static final int Chip_chipIconSize = 15;
public static final int Chip_chipIconTint = 16;
public static final int Chip_chipIconVisible = 17;
public static final int Chip_chipMinHeight = 18;
public static final int Chip_chipMinTouchTargetSize = 19;
public static final int Chip_chipStartPadding = 20;
public static final int Chip_chipStrokeColor = 21;
public static final int Chip_chipStrokeWidth = 22;
public static final int Chip_chipSurfaceColor = 23;
public static final int Chip_closeIcon = 24;
public static final int Chip_closeIconEnabled = 25;
public static final int Chip_closeIconEndPadding = 26;
public static final int Chip_closeIconSize = 27;
public static final int Chip_closeIconStartPadding = 28;
public static final int Chip_closeIconTint = 29;
public static final int Chip_closeIconVisible = 30;
public static final int Chip_ensureMinTouchTargetSize = 31;
public static final int Chip_hideMotionSpec = 32;
public static final int Chip_iconEndPadding = 33;
public static final int Chip_iconStartPadding = 34;
public static final int Chip_rippleColor = 35;
public static final int Chip_shapeAppearance = 36;
public static final int Chip_shapeAppearanceOverlay = 37;
public static final int Chip_showMotionSpec = 38;
public static final int Chip_textEndPadding = 39;
public static final int Chip_textStartPadding = 40;
public static final int[] CircularImageView = {R.attr.civ_border, R.attr.civ_border_color, R.attr.civ_border_color_direction, R.attr.civ_border_color_end, R.attr.civ_border_color_start, R.attr.civ_border_width, R.attr.civ_circle_color, R.attr.civ_circle_color_direction, R.attr.civ_circle_color_end, R.attr.civ_circle_color_start, R.attr.civ_shadow, R.attr.civ_shadow_color, R.attr.civ_shadow_gravity, R.attr.civ_shadow_radius};
public static final int CircularImageView_civ_border = 0;
public static final int CircularImageView_civ_border_color = 1;
public static final int CircularImageView_civ_border_color_direction = 2;
public static final int CircularImageView_civ_border_color_end = 3;
public static final int CircularImageView_civ_border_color_start = 4;
public static final int CircularImageView_civ_border_width = 5;
public static final int CircularImageView_civ_circle_color = 6;
public static final int CircularImageView_civ_circle_color_direction = 7;
public static final int CircularImageView_civ_circle_color_end = 8;
public static final int CircularImageView_civ_circle_color_start = 9;
public static final int CircularImageView_civ_shadow = 10;
public static final int CircularImageView_civ_shadow_color = 11;
public static final int CircularImageView_civ_shadow_gravity = 12;
public static final int CircularImageView_civ_shadow_radius = 13;
public static final int[] CollapsingToolbarLayout = {R.attr.collapsedTitleGravity, R.attr.collapsedTitleTextAppearance, R.attr.contentScrim, R.attr.expandedTitleGravity, R.attr.expandedTitleMargin, R.attr.expandedTitleMarginBottom, R.attr.expandedTitleMarginEnd, R.attr.expandedTitleMarginStart, R.attr.expandedTitleMarginTop, R.attr.expandedTitleTextAppearance, R.attr.maxLines, R.attr.scrimAnimationDuration, R.attr.scrimVisibleHeightTrigger, R.attr.statusBarScrim, R.attr.title, R.attr.titleEnabled, R.attr.toolbarId};
public static final int[] CollapsingToolbarLayout_Layout = {R.attr.layout_collapseMode, R.attr.layout_collapseParallaxMultiplier};
public static final int CollapsingToolbarLayout_Layout_layout_collapseMode = 0;
public static final int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1;
public static final int CollapsingToolbarLayout_collapsedTitleGravity = 0;
public static final int CollapsingToolbarLayout_collapsedTitleTextAppearance = 1;
public static final int CollapsingToolbarLayout_contentScrim = 2;
public static final int CollapsingToolbarLayout_expandedTitleGravity = 3;
public static final int CollapsingToolbarLayout_expandedTitleMargin = 4;
public static final int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
public static final int CollapsingToolbarLayout_expandedTitleMarginEnd = 6;
public static final int CollapsingToolbarLayout_expandedTitleMarginStart = 7;
public static final int CollapsingToolbarLayout_expandedTitleMarginTop = 8;
public static final int CollapsingToolbarLayout_expandedTitleTextAppearance = 9;
public static final int CollapsingToolbarLayout_maxLines = 10;
public static final int CollapsingToolbarLayout_scrimAnimationDuration = 11;
public static final int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 12;
public static final int CollapsingToolbarLayout_statusBarScrim = 13;
public static final int CollapsingToolbarLayout_title = 14;
public static final int CollapsingToolbarLayout_titleEnabled = 15;
public static final int CollapsingToolbarLayout_toolbarId = 16;
public static final int[] ColorStateListItem = {16843173, 16843551, R.attr.alpha};
public static final int ColorStateListItem_alpha = 2;
public static final int ColorStateListItem_android_alpha = 1;
public static final int ColorStateListItem_android_color = 0;
public static final int[] CompoundButton = {16843015, R.attr.buttonCompat, R.attr.buttonTint, R.attr.buttonTintMode};
public static final int CompoundButton_android_button = 0;
public static final int CompoundButton_buttonCompat = 1;
public static final int CompoundButton_buttonTint = 2;
public static final int CompoundButton_buttonTintMode = 3;
public static final int[] ConstraintLayout_Layout = {16842948, 16843039, 16843040, 16843071, 16843072, R.attr.barrierAllowsGoneWidgets, R.attr.barrierDirection, R.attr.chainUseRtl, R.attr.constraintSet, R.attr.constraint_referenced_ids, R.attr.layout_constrainedHeight, R.attr.layout_constrainedWidth, R.attr.layout_constraintBaseline_creator, R.attr.layout_constraintBaseline_toBaselineOf, R.attr.layout_constraintBottom_creator, R.attr.layout_constraintBottom_toBottomOf, R.attr.layout_constraintBottom_toTopOf, R.attr.layout_constraintCircle, R.attr.layout_constraintCircleAngle, R.attr.layout_constraintCircleRadius, R.attr.layout_constraintDimensionRatio, R.attr.layout_constraintEnd_toEndOf, R.attr.layout_constraintEnd_toStartOf, R.attr.layout_constraintGuide_begin, R.attr.layout_constraintGuide_end, R.attr.layout_constraintGuide_percent, R.attr.layout_constraintHeight_default, R.attr.layout_constraintHeight_max, R.attr.layout_constraintHeight_min, R.attr.layout_constraintHeight_percent, R.attr.layout_constraintHorizontal_bias, R.attr.layout_constraintHorizontal_chainStyle, R.attr.layout_constraintHorizontal_weight, R.attr.layout_constraintLeft_creator, R.attr.layout_constraintLeft_toLeftOf, R.attr.layout_constraintLeft_toRightOf, R.attr.layout_constraintRight_creator, R.attr.layout_constraintRight_toLeftOf, R.attr.layout_constraintRight_toRightOf, R.attr.layout_constraintStart_toEndOf, R.attr.layout_constraintStart_toStartOf, R.attr.layout_constraintTop_creator, R.attr.layout_constraintTop_toBottomOf, R.attr.layout_constraintTop_toTopOf, R.attr.layout_constraintVertical_bias, R.attr.layout_constraintVertical_chainStyle, R.attr.layout_constraintVertical_weight, R.attr.layout_constraintWidth_default, R.attr.layout_constraintWidth_max, R.attr.layout_constraintWidth_min, R.attr.layout_constraintWidth_percent, R.attr.layout_editor_absoluteX, R.attr.layout_editor_absoluteY, R.attr.layout_goneMarginBottom, R.attr.layout_goneMarginEnd, R.attr.layout_goneMarginLeft, R.attr.layout_goneMarginRight, R.attr.layout_goneMarginStart, R.attr.layout_goneMarginTop, R.attr.layout_optimizationLevel};
public static final int ConstraintLayout_Layout_android_maxHeight = 2;
public static final int ConstraintLayout_Layout_android_maxWidth = 1;
public static final int ConstraintLayout_Layout_android_minHeight = 4;
public static final int ConstraintLayout_Layout_android_minWidth = 3;
public static final int ConstraintLayout_Layout_android_orientation = 0;
public static final int ConstraintLayout_Layout_barrierAllowsGoneWidgets = 5;
public static final int ConstraintLayout_Layout_barrierDirection = 6;
public static final int ConstraintLayout_Layout_chainUseRtl = 7;
public static final int ConstraintLayout_Layout_constraintSet = 8;
public static final int ConstraintLayout_Layout_constraint_referenced_ids = 9;
public static final int ConstraintLayout_Layout_layout_constrainedHeight = 10;
public static final int ConstraintLayout_Layout_layout_constrainedWidth = 11;
public static final int ConstraintLayout_Layout_layout_constraintBaseline_creator = 12;
public static final int ConstraintLayout_Layout_layout_constraintBaseline_toBaselineOf = 13;
public static final int ConstraintLayout_Layout_layout_constraintBottom_creator = 14;
public static final int ConstraintLayout_Layout_layout_constraintBottom_toBottomOf = 15;
public static final int ConstraintLayout_Layout_layout_constraintBottom_toTopOf = 16;
public static final int ConstraintLayout_Layout_layout_constraintCircle = 17;
public static final int ConstraintLayout_Layout_layout_constraintCircleAngle = 18;
public static final int ConstraintLayout_Layout_layout_constraintCircleRadius = 19;
public static final int ConstraintLayout_Layout_layout_constraintDimensionRatio = 20;
public static final int ConstraintLayout_Layout_layout_constraintEnd_toEndOf = 21;
public static final int ConstraintLayout_Layout_layout_constraintEnd_toStartOf = 22;
public static final int ConstraintLayout_Layout_layout_constraintGuide_begin = 23;
public static final int ConstraintLayout_Layout_layout_constraintGuide_end = 24;
public static final int ConstraintLayout_Layout_layout_constraintGuide_percent = 25;
public static final int ConstraintLayout_Layout_layout_constraintHeight_default = 26;
public static final int ConstraintLayout_Layout_layout_constraintHeight_max = 27;
public static final int ConstraintLayout_Layout_layout_constraintHeight_min = 28;
public static final int ConstraintLayout_Layout_layout_constraintHeight_percent = 29;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_bias = 30;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_chainStyle = 31;
public static final int ConstraintLayout_Layout_layout_constraintHorizontal_weight = 32;
public static final int ConstraintLayout_Layout_layout_constraintLeft_creator = 33;
public static final int ConstraintLayout_Layout_layout_constraintLeft_toLeftOf = 34;
public static final int ConstraintLayout_Layout_layout_constraintLeft_toRightOf = 35;
public static final int ConstraintLayout_Layout_layout_constraintRight_creator = 36;
public static final int ConstraintLayout_Layout_layout_constraintRight_toLeftOf = 37;
public static final int ConstraintLayout_Layout_layout_constraintRight_toRightOf = 38;
public static final int ConstraintLayout_Layout_layout_constraintStart_toEndOf = 39;
public static final int ConstraintLayout_Layout_layout_constraintStart_toStartOf = 40;
public static final int ConstraintLayout_Layout_layout_constraintTop_creator = 41;
public static final int ConstraintLayout_Layout_layout_constraintTop_toBottomOf = 42;
public static final int ConstraintLayout_Layout_layout_constraintTop_toTopOf = 43;
public static final int ConstraintLayout_Layout_layout_constraintVertical_bias = 44;
public static final int ConstraintLayout_Layout_layout_constraintVertical_chainStyle = 45;
public static final int ConstraintLayout_Layout_layout_constraintVertical_weight = 46;
public static final int ConstraintLayout_Layout_layout_constraintWidth_default = 47;
public static final int ConstraintLayout_Layout_layout_constraintWidth_max = 48;
public static final int ConstraintLayout_Layout_layout_constraintWidth_min = 49;
public static final int ConstraintLayout_Layout_layout_constraintWidth_percent = 50;
public static final int ConstraintLayout_Layout_layout_editor_absoluteX = 51;
public static final int ConstraintLayout_Layout_layout_editor_absoluteY = 52;
public static final int ConstraintLayout_Layout_layout_goneMarginBottom = 53;
public static final int ConstraintLayout_Layout_layout_goneMarginEnd = 54;
public static final int ConstraintLayout_Layout_layout_goneMarginLeft = 55;
public static final int ConstraintLayout_Layout_layout_goneMarginRight = 56;
public static final int ConstraintLayout_Layout_layout_goneMarginStart = 57;
public static final int ConstraintLayout_Layout_layout_goneMarginTop = 58;
public static final int ConstraintLayout_Layout_layout_optimizationLevel = 59;
public static final int[] ConstraintLayout_placeholder = {R.attr.content, R.attr.emptyVisibility};
public static final int ConstraintLayout_placeholder_content = 0;
public static final int ConstraintLayout_placeholder_emptyVisibility = 1;
public static final int[] ConstraintSet = {16842948, 16842960, 16842972, 16842996, 16842997, 16842999, 16843000, 16843001, 16843002, 16843039, 16843040, 16843071, 16843072, 16843551, 16843552, 16843553, 16843554, 16843555, 16843556, 16843557, 16843558, 16843559, 16843560, 16843701, 16843702, 16843770, 16843840, R.attr.barrierAllowsGoneWidgets, R.attr.barrierDirection, R.attr.chainUseRtl, R.attr.constraint_referenced_ids, R.attr.layout_constrainedHeight, R.attr.layout_constrainedWidth, R.attr.layout_constraintBaseline_creator, R.attr.layout_constraintBaseline_toBaselineOf, R.attr.layout_constraintBottom_creator, R.attr.layout_constraintBottom_toBottomOf, R.attr.layout_constraintBottom_toTopOf, R.attr.layout_constraintCircle, R.attr.layout_constraintCircleAngle, R.attr.layout_constraintCircleRadius, R.attr.layout_constraintDimensionRatio, R.attr.layout_constraintEnd_toEndOf, R.attr.layout_constraintEnd_toStartOf, R.attr.layout_constraintGuide_begin, R.attr.layout_constraintGuide_end, R.attr.layout_constraintGuide_percent, R.attr.layout_constraintHeight_default, R.attr.layout_constraintHeight_max, R.attr.layout_constraintHeight_min, R.attr.layout_constraintHeight_percent, R.attr.layout_constraintHorizontal_bias, R.attr.layout_constraintHorizontal_chainStyle, R.attr.layout_constraintHorizontal_weight, R.attr.layout_constraintLeft_creator, R.attr.layout_constraintLeft_toLeftOf, R.attr.layout_constraintLeft_toRightOf, R.attr.layout_constraintRight_creator, R.attr.layout_constraintRight_toLeftOf, R.attr.layout_constraintRight_toRightOf, R.attr.layout_constraintStart_toEndOf, R.attr.layout_constraintStart_toStartOf, R.attr.layout_constraintTop_creator, R.attr.layout_constraintTop_toBottomOf, R.attr.layout_constraintTop_toTopOf, R.attr.layout_constraintVertical_bias, R.attr.layout_constraintVertical_chainStyle, R.attr.layout_constraintVertical_weight, R.attr.layout_constraintWidth_default, R.attr.layout_constraintWidth_max, R.attr.layout_constraintWidth_min, R.attr.layout_constraintWidth_percent, R.attr.layout_editor_absoluteX, R.attr.layout_editor_absoluteY, R.attr.layout_goneMarginBottom, R.attr.layout_goneMarginEnd, R.attr.layout_goneMarginLeft, R.attr.layout_goneMarginRight, R.attr.layout_goneMarginStart, R.attr.layout_goneMarginTop};
public static final int ConstraintSet_android_alpha = 13;
public static final int ConstraintSet_android_elevation = 26;
public static final int ConstraintSet_android_id = 1;
public static final int ConstraintSet_android_layout_height = 4;
public static final int ConstraintSet_android_layout_marginBottom = 8;
public static final int ConstraintSet_android_layout_marginEnd = 24;
public static final int ConstraintSet_android_layout_marginLeft = 5;
public static final int ConstraintSet_android_layout_marginRight = 7;
public static final int ConstraintSet_android_layout_marginStart = 23;
public static final int ConstraintSet_android_layout_marginTop = 6;
public static final int ConstraintSet_android_layout_width = 3;
public static final int ConstraintSet_android_maxHeight = 10;
public static final int ConstraintSet_android_maxWidth = 9;
public static final int ConstraintSet_android_minHeight = 12;
public static final int ConstraintSet_android_minWidth = 11;
public static final int ConstraintSet_android_orientation = 0;
public static final int ConstraintSet_android_rotation = 20;
public static final int ConstraintSet_android_rotationX = 21;
public static final int ConstraintSet_android_rotationY = 22;
public static final int ConstraintSet_android_scaleX = 18;
public static final int ConstraintSet_android_scaleY = 19;
public static final int ConstraintSet_android_transformPivotX = 14;
public static final int ConstraintSet_android_transformPivotY = 15;
public static final int ConstraintSet_android_translationX = 16;
public static final int ConstraintSet_android_translationY = 17;
public static final int ConstraintSet_android_translationZ = 25;
public static final int ConstraintSet_android_visibility = 2;
public static final int ConstraintSet_barrierAllowsGoneWidgets = 27;
public static final int ConstraintSet_barrierDirection = 28;
public static final int ConstraintSet_chainUseRtl = 29;
public static final int ConstraintSet_constraint_referenced_ids = 30;
public static final int ConstraintSet_layout_constrainedHeight = 31;
public static final int ConstraintSet_layout_constrainedWidth = 32;
public static final int ConstraintSet_layout_constraintBaseline_creator = 33;
public static final int ConstraintSet_layout_constraintBaseline_toBaselineOf = 34;
public static final int ConstraintSet_layout_constraintBottom_creator = 35;
public static final int ConstraintSet_layout_constraintBottom_toBottomOf = 36;
public static final int ConstraintSet_layout_constraintBottom_toTopOf = 37;
public static final int ConstraintSet_layout_constraintCircle = 38;
public static final int ConstraintSet_layout_constraintCircleAngle = 39;
public static final int ConstraintSet_layout_constraintCircleRadius = 40;
public static final int ConstraintSet_layout_constraintDimensionRatio = 41;
public static final int ConstraintSet_layout_constraintEnd_toEndOf = 42;
public static final int ConstraintSet_layout_constraintEnd_toStartOf = 43;
public static final int ConstraintSet_layout_constraintGuide_begin = 44;
public static final int ConstraintSet_layout_constraintGuide_end = 45;
public static final int ConstraintSet_layout_constraintGuide_percent = 46;
public static final int ConstraintSet_layout_constraintHeight_default = 47;
public static final int ConstraintSet_layout_constraintHeight_max = 48;
public static final int ConstraintSet_layout_constraintHeight_min = 49;
public static final int ConstraintSet_layout_constraintHeight_percent = 50;
public static final int ConstraintSet_layout_constraintHorizontal_bias = 51;
public static final int ConstraintSet_layout_constraintHorizontal_chainStyle = 52;
public static final int ConstraintSet_layout_constraintHorizontal_weight = 53;
public static final int ConstraintSet_layout_constraintLeft_creator = 54;
public static final int ConstraintSet_layout_constraintLeft_toLeftOf = 55;
public static final int ConstraintSet_layout_constraintLeft_toRightOf = 56;
public static final int ConstraintSet_layout_constraintRight_creator = 57;
public static final int ConstraintSet_layout_constraintRight_toLeftOf = 58;
public static final int ConstraintSet_layout_constraintRight_toRightOf = 59;
public static final int ConstraintSet_layout_constraintStart_toEndOf = 60;
public static final int ConstraintSet_layout_constraintStart_toStartOf = 61;
public static final int ConstraintSet_layout_constraintTop_creator = 62;
public static final int ConstraintSet_layout_constraintTop_toBottomOf = 63;
public static final int ConstraintSet_layout_constraintTop_toTopOf = 64;
public static final int ConstraintSet_layout_constraintVertical_bias = 65;
public static final int ConstraintSet_layout_constraintVertical_chainStyle = 66;
public static final int ConstraintSet_layout_constraintVertical_weight = 67;
public static final int ConstraintSet_layout_constraintWidth_default = 68;
public static final int ConstraintSet_layout_constraintWidth_max = 69;
public static final int ConstraintSet_layout_constraintWidth_min = 70;
public static final int ConstraintSet_layout_constraintWidth_percent = 71;
public static final int ConstraintSet_layout_editor_absoluteX = 72;
public static final int ConstraintSet_layout_editor_absoluteY = 73;
public static final int ConstraintSet_layout_goneMarginBottom = 74;
public static final int ConstraintSet_layout_goneMarginEnd = 75;
public static final int ConstraintSet_layout_goneMarginLeft = 76;
public static final int ConstraintSet_layout_goneMarginRight = 77;
public static final int ConstraintSet_layout_goneMarginStart = 78;
public static final int ConstraintSet_layout_goneMarginTop = 79;
public static final int[] CoordinatorLayout = {R.attr.keylines, R.attr.statusBarBackground};
public static final int[] CoordinatorLayout_Layout = {16842931, R.attr.layout_anchor, R.attr.layout_anchorGravity, R.attr.layout_behavior, R.attr.layout_dodgeInsetEdges, R.attr.layout_insetEdge, R.attr.layout_keyline};
public static final int CoordinatorLayout_Layout_android_layout_gravity = 0;
public static final int CoordinatorLayout_Layout_layout_anchor = 1;
public static final int CoordinatorLayout_Layout_layout_anchorGravity = 2;
public static final int CoordinatorLayout_Layout_layout_behavior = 3;
public static final int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
public static final int CoordinatorLayout_Layout_layout_insetEdge = 5;
public static final int CoordinatorLayout_Layout_layout_keyline = 6;
public static final int CoordinatorLayout_keylines = 0;
public static final int CoordinatorLayout_statusBarBackground = 1;
public static final int[] DrawerArrowToggle = {R.attr.arrowHeadLength, R.attr.arrowShaftLength, R.attr.barLength, R.attr.color, R.attr.drawableSize, R.attr.gapBetweenBars, R.attr.spinBars, R.attr.thickness};
public static final int DrawerArrowToggle_arrowHeadLength = 0;
public static final int DrawerArrowToggle_arrowShaftLength = 1;
public static final int DrawerArrowToggle_barLength = 2;
public static final int DrawerArrowToggle_color = 3;
public static final int DrawerArrowToggle_drawableSize = 4;
public static final int DrawerArrowToggle_gapBetweenBars = 5;
public static final int DrawerArrowToggle_spinBars = 6;
public static final int DrawerArrowToggle_thickness = 7;
public static final int[] ExtendedFloatingActionButton = {R.attr.elevation, R.attr.extendMotionSpec, R.attr.hideMotionSpec, R.attr.showMotionSpec, R.attr.shrinkMotionSpec};
public static final int[] ExtendedFloatingActionButton_Behavior_Layout = {R.attr.behavior_autoHide, R.attr.behavior_autoShrink};
public static final int ExtendedFloatingActionButton_Behavior_Layout_behavior_autoHide = 0;
public static final int ExtendedFloatingActionButton_Behavior_Layout_behavior_autoShrink = 1;
public static final int ExtendedFloatingActionButton_elevation = 0;
public static final int ExtendedFloatingActionButton_extendMotionSpec = 1;
public static final int ExtendedFloatingActionButton_hideMotionSpec = 2;
public static final int ExtendedFloatingActionButton_showMotionSpec = 3;
public static final int ExtendedFloatingActionButton_shrinkMotionSpec = 4;
public static final int[] FloatingActionButton = {16842766, R.attr.backgroundTint, R.attr.backgroundTintMode, R.attr.borderWidth, R.attr.elevation, R.attr.ensureMinTouchTargetSize, R.attr.fabCustomSize, R.attr.fabSize, R.attr.hideMotionSpec, R.attr.hoveredFocusedTranslationZ, R.attr.maxImageSize, R.attr.pressedTranslationZ, R.attr.rippleColor, R.attr.shapeAppearance, R.attr.shapeAppearanceOverlay, R.attr.showMotionSpec, R.attr.useCompatPadding};
public static final int[] FloatingActionButton_Behavior_Layout = {R.attr.behavior_autoHide};
public static final int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0;
public static final int FloatingActionButton_android_enabled = 0;
public static final int FloatingActionButton_backgroundTint = 1;
public static final int FloatingActionButton_backgroundTintMode = 2;
public static final int FloatingActionButton_borderWidth = 3;
public static final int FloatingActionButton_elevation = 4;
public static final int FloatingActionButton_ensureMinTouchTargetSize = 5;
public static final int FloatingActionButton_fabCustomSize = 6;
public static final int FloatingActionButton_fabSize = 7;
public static final int FloatingActionButton_hideMotionSpec = 8;
public static final int FloatingActionButton_hoveredFocusedTranslationZ = 9;
public static final int FloatingActionButton_maxImageSize = 10;
public static final int FloatingActionButton_pressedTranslationZ = 11;
public static final int FloatingActionButton_rippleColor = 12;
public static final int FloatingActionButton_shapeAppearance = 13;
public static final int FloatingActionButton_shapeAppearanceOverlay = 14;
public static final int FloatingActionButton_showMotionSpec = 15;
public static final int FloatingActionButton_useCompatPadding = 16;
public static final int[] FlowLayout = {R.attr.itemSpacing, R.attr.lineSpacing};
public static final int FlowLayout_itemSpacing = 0;
public static final int FlowLayout_lineSpacing = 1;
public static final int[] FontFamily = {R.attr.fontProviderAuthority, R.attr.fontProviderCerts, R.attr.fontProviderFetchStrategy, R.attr.fontProviderFetchTimeout, R.attr.fontProviderPackage, R.attr.fontProviderQuery};
public static final int[] FontFamilyFont = {16844082, 16844083, 16844095, 16844143, 16844144, R.attr.font, R.attr.fontStyle, R.attr.fontVariationSettings, R.attr.fontWeight, R.attr.ttcIndex};
public static final int FontFamilyFont_android_font = 0;
public static final int FontFamilyFont_android_fontStyle = 2;
public static final int FontFamilyFont_android_fontVariationSettings = 4;
public static final int FontFamilyFont_android_fontWeight = 1;
public static final int FontFamilyFont_android_ttcIndex = 3;
public static final int FontFamilyFont_font = 5;
public static final int FontFamilyFont_fontStyle = 6;
public static final int FontFamilyFont_fontVariationSettings = 7;
public static final int FontFamilyFont_fontWeight = 8;
public static final int FontFamilyFont_ttcIndex = 9;
public static final int FontFamily_fontProviderAuthority = 0;
public static final int FontFamily_fontProviderCerts = 1;
public static final int FontFamily_fontProviderFetchStrategy = 2;
public static final int FontFamily_fontProviderFetchTimeout = 3;
public static final int FontFamily_fontProviderPackage = 4;
public static final int FontFamily_fontProviderQuery = 5;
public static final int[] ForegroundLinearLayout = {16843017, 16843264, R.attr.foregroundInsidePadding};
public static final int ForegroundLinearLayout_android_foreground = 0;
public static final int ForegroundLinearLayout_android_foregroundGravity = 1;
public static final int ForegroundLinearLayout_foregroundInsidePadding = 2;
public static final int[] Fragment = {16842755, 16842960, 16842961};
public static final int[] FragmentContainerView = {16842755, 16842961};
public static final int FragmentContainerView_android_name = 0;
public static final int FragmentContainerView_android_tag = 1;
public static final int Fragment_android_id = 1;
public static final int Fragment_android_name = 0;
public static final int Fragment_android_tag = 2;
public static final int[] GradientColor = {16843165, 16843166, 16843169, 16843170, 16843171, 16843172, 16843265, 16843275, 16844048, 16844049, 16844050, 16844051};
public static final int[] GradientColorItem = {16843173, 16844052};
public static final int GradientColorItem_android_color = 0;
public static final int GradientColorItem_android_offset = 1;
public static final int GradientColor_android_centerColor = 7;
public static final int GradientColor_android_centerX = 3;
public static final int GradientColor_android_centerY = 4;
public static final int GradientColor_android_endColor = 1;
public static final int GradientColor_android_endX = 10;
public static final int GradientColor_android_endY = 11;
public static final int GradientColor_android_gradientRadius = 5;
public static final int GradientColor_android_startColor = 0;
public static final int GradientColor_android_startX = 8;
public static final int GradientColor_android_startY = 9;
public static final int GradientColor_android_tileMode = 6;
public static final int GradientColor_android_type = 2;
public static final int[] Insets = {R.attr.paddingBottomSystemWindowInsets, R.attr.paddingLeftSystemWindowInsets, R.attr.paddingRightSystemWindowInsets};
public static final int Insets_paddingBottomSystemWindowInsets = 0;
public static final int Insets_paddingLeftSystemWindowInsets = 1;
public static final int Insets_paddingRightSystemWindowInsets = 2;
public static final int[] LinearConstraintLayout = {16842948};
public static final int LinearConstraintLayout_android_orientation = 0;
public static final int[] LinearLayoutCompat = {16842927, 16842948, 16843046, 16843047, 16843048, R.attr.divider, R.attr.dividerPadding, R.attr.measureWithLargestChild, R.attr.showDividers};
public static final int[] LinearLayoutCompat_Layout = {16842931, 16842996, 16842997, 16843137};
public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0;
public static final int LinearLayoutCompat_Layout_android_layout_height = 2;
public static final int LinearLayoutCompat_Layout_android_layout_weight = 3;
public static final int LinearLayoutCompat_Layout_android_layout_width = 1;
public static final int LinearLayoutCompat_android_baselineAligned = 2;
public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
public static final int LinearLayoutCompat_android_gravity = 0;
public static final int LinearLayoutCompat_android_orientation = 1;
public static final int LinearLayoutCompat_android_weightSum = 4;
public static final int LinearLayoutCompat_divider = 5;
public static final int LinearLayoutCompat_dividerPadding = 6;
public static final int LinearLayoutCompat_measureWithLargestChild = 7;
public static final int LinearLayoutCompat_showDividers = 8;
public static final int[] ListPopupWindow = {16843436, 16843437};
public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0;
public static final int ListPopupWindow_android_dropDownVerticalOffset = 1;
public static final int[] LoadingImageView = {R.attr.circleCrop, R.attr.imageAspectRatio, R.attr.imageAspectRatioAdjust};
public static final int LoadingImageView_circleCrop = 0;
public static final int LoadingImageView_imageAspectRatio = 1;
public static final int LoadingImageView_imageAspectRatioAdjust = 2;
public static final int[] MaterialAlertDialog = {R.attr.backgroundInsetBottom, R.attr.backgroundInsetEnd, R.attr.backgroundInsetStart, R.attr.backgroundInsetTop};
public static final int[] MaterialAlertDialogTheme = {R.attr.materialAlertDialogBodyTextStyle, R.attr.materialAlertDialogTheme, R.attr.materialAlertDialogTitleIconStyle, R.attr.materialAlertDialogTitlePanelStyle, R.attr.materialAlertDialogTitleTextStyle};
public static final int MaterialAlertDialogTheme_materialAlertDialogBodyTextStyle = 0;
public static final int MaterialAlertDialogTheme_materialAlertDialogTheme = 1;
public static final int MaterialAlertDialogTheme_materialAlertDialogTitleIconStyle = 2;
public static final int MaterialAlertDialogTheme_materialAlertDialogTitlePanelStyle = 3;
public static final int MaterialAlertDialogTheme_materialAlertDialogTitleTextStyle = 4;
public static final int MaterialAlertDialog_backgroundInsetBottom = 0;
public static final int MaterialAlertDialog_backgroundInsetEnd = 1;
public static final int MaterialAlertDialog_backgroundInsetStart = 2;
public static final int MaterialAlertDialog_backgroundInsetTop = 3;
public static final int[] MaterialAutoCompleteTextView = {16843296};
public static final int MaterialAutoCompleteTextView_android_inputType = 0;
public static final int[] MaterialButton = {16842964, 16843191, 16843192, 16843193, 16843194, 16843237, R.attr.backgroundTint, R.attr.backgroundTintMode, R.attr.cornerRadius, R.attr.elevation, R.attr.icon, R.attr.iconGravity, R.attr.iconPadding, R.attr.iconSize, R.attr.iconTint, R.attr.iconTintMode, R.attr.rippleColor, R.attr.shapeAppearance, R.attr.shapeAppearanceOverlay, R.attr.strokeColor, R.attr.strokeWidth};
public static final int[] MaterialButtonToggleGroup = {R.attr.checkedButton, R.attr.selectionRequired, R.attr.singleSelection};
public static final int MaterialButtonToggleGroup_checkedButton = 0;
public static final int MaterialButtonToggleGroup_selectionRequired = 1;
public static final int MaterialButtonToggleGroup_singleSelection = 2;
public static final int MaterialButton_android_background = 0;
public static final int MaterialButton_android_checkable = 5;
public static final int MaterialButton_android_insetBottom = 4;
public static final int MaterialButton_android_insetLeft = 1;
public static final int MaterialButton_android_insetRight = 2;
public static final int MaterialButton_android_insetTop = 3;
public static final int MaterialButton_backgroundTint = 6;
public static final int MaterialButton_backgroundTintMode = 7;
public static final int MaterialButton_cornerRadius = 8;
public static final int MaterialButton_elevation = 9;
public static final int MaterialButton_icon = 10;
public static final int MaterialButton_iconGravity = 11;
public static final int MaterialButton_iconPadding = 12;
public static final int MaterialButton_iconSize = 13;
public static final int MaterialButton_iconTint = 14;
public static final int MaterialButton_iconTintMode = 15;
public static final int MaterialButton_rippleColor = 16;
public static final int MaterialButton_shapeAppearance = 17;
public static final int MaterialButton_shapeAppearanceOverlay = 18;
public static final int MaterialButton_strokeColor = 19;
public static final int MaterialButton_strokeWidth = 20;
public static final int[] MaterialCalendar = {16843277, R.attr.dayInvalidStyle, R.attr.daySelectedStyle, R.attr.dayStyle, R.attr.dayTodayStyle, R.attr.rangeFillColor, R.attr.yearSelectedStyle, R.attr.yearStyle, R.attr.yearTodayStyle};
public static final int[] MaterialCalendarItem = {16843191, 16843192, 16843193, 16843194, R.attr.itemFillColor, R.attr.itemShapeAppearance, R.attr.itemShapeAppearanceOverlay, R.attr.itemStrokeColor, R.attr.itemStrokeWidth, R.attr.itemTextColor};
public static final int MaterialCalendarItem_android_insetBottom = 3;
public static final int MaterialCalendarItem_android_insetLeft = 0;
public static final int MaterialCalendarItem_android_insetRight = 1;
public static final int MaterialCalendarItem_android_insetTop = 2;
public static final int MaterialCalendarItem_itemFillColor = 4;
public static final int MaterialCalendarItem_itemShapeAppearance = 5;
public static final int MaterialCalendarItem_itemShapeAppearanceOverlay = 6;
public static final int MaterialCalendarItem_itemStrokeColor = 7;
public static final int MaterialCalendarItem_itemStrokeWidth = 8;
public static final int MaterialCalendarItem_itemTextColor = 9;
public static final int MaterialCalendar_android_windowFullscreen = 0;
public static final int MaterialCalendar_dayInvalidStyle = 1;
public static final int MaterialCalendar_daySelectedStyle = 2;
public static final int MaterialCalendar_dayStyle = 3;
public static final int MaterialCalendar_dayTodayStyle = 4;
public static final int MaterialCalendar_rangeFillColor = 5;
public static final int MaterialCalendar_yearSelectedStyle = 6;
public static final int MaterialCalendar_yearStyle = 7;
public static final int MaterialCalendar_yearTodayStyle = 8;
public static final int[] MaterialCardView = {16843237, R.attr.cardForegroundColor, R.attr.checkedIcon, R.attr.checkedIconTint, R.attr.rippleColor, R.attr.shapeAppearance, R.attr.shapeAppearanceOverlay, R.attr.state_dragged, R.attr.strokeColor, R.attr.strokeWidth};
public static final int MaterialCardView_android_checkable = 0;
public static final int MaterialCardView_cardForegroundColor = 1;
public static final int MaterialCardView_checkedIcon = 2;
public static final int MaterialCardView_checkedIconTint = 3;
public static final int MaterialCardView_rippleColor = 4;
public static final int MaterialCardView_shapeAppearance = 5;
public static final int MaterialCardView_shapeAppearanceOverlay = 6;
public static final int MaterialCardView_state_dragged = 7;
public static final int MaterialCardView_strokeColor = 8;
public static final int MaterialCardView_strokeWidth = 9;
public static final int[] MaterialCheckBox = {R.attr.buttonTint, R.attr.useMaterialThemeColors};
public static final int MaterialCheckBox_buttonTint = 0;
public static final int MaterialCheckBox_useMaterialThemeColors = 1;
public static final int[] MaterialRadioButton = {R.attr.buttonTint, R.attr.useMaterialThemeColors};
public static final int MaterialRadioButton_buttonTint = 0;
public static final int MaterialRadioButton_useMaterialThemeColors = 1;
public static final int[] MaterialShape = {R.attr.shapeAppearance, R.attr.shapeAppearanceOverlay};
public static final int MaterialShape_shapeAppearance = 0;
public static final int MaterialShape_shapeAppearanceOverlay = 1;
public static final int[] MaterialTextAppearance = {16844159, R.attr.lineHeight};
public static final int MaterialTextAppearance_android_lineHeight = 0;
public static final int MaterialTextAppearance_lineHeight = 1;
public static final int[] MaterialTextView = {16842804, 16844159, R.attr.lineHeight};
public static final int MaterialTextView_android_lineHeight = 1;
public static final int MaterialTextView_android_textAppearance = 0;
public static final int MaterialTextView_lineHeight = 2;
public static final int[] MenuGroup = {16842766, 16842960, 16843156, 16843230, 16843231, 16843232};
public static final int MenuGroup_android_checkableBehavior = 5;
public static final int MenuGroup_android_enabled = 0;
public static final int MenuGroup_android_id = 1;
public static final int MenuGroup_android_menuCategory = 3;
public static final int MenuGroup_android_orderInCategory = 4;
public static final int MenuGroup_android_visible = 2;
public static final int[] MenuItem = {16842754, 16842766, 16842960, 16843014, 16843156, 16843230, 16843231, 16843233, 16843234, 16843235, 16843236, 16843237, 16843375, R.attr.actionLayout, R.attr.actionProviderClass, R.attr.actionViewClass, R.attr.alphabeticModifiers, R.attr.contentDescription, R.attr.iconTint, R.attr.iconTintMode, R.attr.numericModifiers, R.attr.showAsAction, R.attr.tooltipText};
public static final int MenuItem_actionLayout = 13;
public static final int MenuItem_actionProviderClass = 14;
public static final int MenuItem_actionViewClass = 15;
public static final int MenuItem_alphabeticModifiers = 16;
public static final int MenuItem_android_alphabeticShortcut = 9;
public static final int MenuItem_android_checkable = 11;
public static final int MenuItem_android_checked = 3;
public static final int MenuItem_android_enabled = 1;
public static final int MenuItem_android_icon = 0;
public static final int MenuItem_android_id = 2;
public static final int MenuItem_android_menuCategory = 5;
public static final int MenuItem_android_numericShortcut = 10;
public static final int MenuItem_android_onClick = 12;
public static final int MenuItem_android_orderInCategory = 6;
public static final int MenuItem_android_title = 7;
public static final int MenuItem_android_titleCondensed = 8;
public static final int MenuItem_android_visible = 4;
public static final int MenuItem_contentDescription = 17;
public static final int MenuItem_iconTint = 18;
public static final int MenuItem_iconTintMode = 19;
public static final int MenuItem_numericModifiers = 20;
public static final int MenuItem_showAsAction = 21;
public static final int MenuItem_tooltipText = 22;
public static final int[] MenuView = {16842926, 16843052, 16843053, 16843054, 16843055, 16843056, 16843057, R.attr.preserveIconSpacing, R.attr.subMenuArrow};
public static final int MenuView_android_headerBackground = 4;
public static final int MenuView_android_horizontalDivider = 2;
public static final int MenuView_android_itemBackground = 5;
public static final int MenuView_android_itemIconDisabledAlpha = 6;
public static final int MenuView_android_itemTextAppearance = 1;
public static final int MenuView_android_verticalDivider = 3;
public static final int MenuView_android_windowAnimationStyle = 0;
public static final int MenuView_preserveIconSpacing = 7;
public static final int MenuView_subMenuArrow = 8;
public static final int[] NavigationView = {16842964, 16842973, 16843039, R.attr.elevation, R.attr.headerLayout, R.attr.itemBackground, R.attr.itemHorizontalPadding, R.attr.itemIconPadding, R.attr.itemIconSize, R.attr.itemIconTint, R.attr.itemMaxLines, R.attr.itemShapeAppearance, R.attr.itemShapeAppearanceOverlay, R.attr.itemShapeFillColor, R.attr.itemShapeInsetBottom, R.attr.itemShapeInsetEnd, R.attr.itemShapeInsetStart, R.attr.itemShapeInsetTop, R.attr.itemTextAppearance, R.attr.itemTextColor, R.attr.menu};
public static final int NavigationView_android_background = 0;
public static final int NavigationView_android_fitsSystemWindows = 1;
public static final int NavigationView_android_maxWidth = 2;
public static final int NavigationView_elevation = 3;
public static final int NavigationView_headerLayout = 4;
public static final int NavigationView_itemBackground = 5;
public static final int NavigationView_itemHorizontalPadding = 6;
public static final int NavigationView_itemIconPadding = 7;
public static final int NavigationView_itemIconSize = 8;
public static final int NavigationView_itemIconTint = 9;
public static final int NavigationView_itemMaxLines = 10;
public static final int NavigationView_itemShapeAppearance = 11;
public static final int NavigationView_itemShapeAppearanceOverlay = 12;
public static final int NavigationView_itemShapeFillColor = 13;
public static final int NavigationView_itemShapeInsetBottom = 14;
public static final int NavigationView_itemShapeInsetEnd = 15;
public static final int NavigationView_itemShapeInsetStart = 16;
public static final int NavigationView_itemShapeInsetTop = 17;
public static final int NavigationView_itemTextAppearance = 18;
public static final int NavigationView_itemTextColor = 19;
public static final int NavigationView_menu = 20;
public static final int[] PageIndicatorView = {R.attr.piv_animationDuration, R.attr.piv_animationType, R.attr.piv_autoVisibility, R.attr.piv_count, R.attr.piv_dynamicCount, R.attr.piv_interactiveAnimation, R.attr.piv_orientation, R.attr.piv_padding, R.attr.piv_radius, R.attr.piv_rtl_mode, R.attr.piv_scaleFactor, R.attr.piv_select, R.attr.piv_selectedColor, R.attr.piv_strokeWidth, R.attr.piv_unselectedColor, R.attr.piv_viewPager};
public static final int PageIndicatorView_piv_animationDuration = 0;
public static final int PageIndicatorView_piv_animationType = 1;
public static final int PageIndicatorView_piv_autoVisibility = 2;
public static final int PageIndicatorView_piv_count = 3;
public static final int PageIndicatorView_piv_dynamicCount = 4;
public static final int PageIndicatorView_piv_interactiveAnimation = 5;
public static final int PageIndicatorView_piv_orientation = 6;
public static final int PageIndicatorView_piv_padding = 7;
public static final int PageIndicatorView_piv_radius = 8;
public static final int PageIndicatorView_piv_rtl_mode = 9;
public static final int PageIndicatorView_piv_scaleFactor = 10;
public static final int PageIndicatorView_piv_select = 11;
public static final int PageIndicatorView_piv_selectedColor = 12;
public static final int PageIndicatorView_piv_strokeWidth = 13;
public static final int PageIndicatorView_piv_unselectedColor = 14;
public static final int PageIndicatorView_piv_viewPager = 15;
public static final int[] PopupWindow = {16843126, 16843465, R.attr.overlapAnchor};
public static final int[] PopupWindowBackgroundState = {R.attr.state_above_anchor};
public static final int PopupWindowBackgroundState_state_above_anchor = 0;
public static final int PopupWindow_android_popupAnimationStyle = 1;
public static final int PopupWindow_android_popupBackground = 0;
public static final int PopupWindow_overlapAnchor = 2;
public static final int[] RangeSlider = {R.attr.values};
public static final int RangeSlider_values = 0;
public static final int[] RecycleListView = {R.attr.paddingBottomNoButtons, R.attr.paddingTopNoTitle};
public static final int RecycleListView_paddingBottomNoButtons = 0;
public static final int RecycleListView_paddingTopNoTitle = 1;
public static final int[] RecyclerView = {16842948, 16842987, 16842993, R.attr.fastScrollEnabled, R.attr.fastScrollHorizontalThumbDrawable, R.attr.fastScrollHorizontalTrackDrawable, R.attr.fastScrollVerticalThumbDrawable, R.attr.fastScrollVerticalTrackDrawable, R.attr.layoutManager, R.attr.reverseLayout, R.attr.spanCount, R.attr.stackFromEnd};
public static final int RecyclerView_android_clipToPadding = 1;
public static final int RecyclerView_android_descendantFocusability = 2;
public static final int RecyclerView_android_orientation = 0;
public static final int RecyclerView_fastScrollEnabled = 3;
public static final int RecyclerView_fastScrollHorizontalThumbDrawable = 4;
public static final int RecyclerView_fastScrollHorizontalTrackDrawable = 5;
public static final int RecyclerView_fastScrollVerticalThumbDrawable = 6;
public static final int RecyclerView_fastScrollVerticalTrackDrawable = 7;
public static final int RecyclerView_layoutManager = 8;
public static final int RecyclerView_reverseLayout = 9;
public static final int RecyclerView_spanCount = 10;
public static final int RecyclerView_stackFromEnd = 11;
public static final int[] ScrimInsetsFrameLayout = {R.attr.insetForeground};
public static final int ScrimInsetsFrameLayout_insetForeground = 0;
public static final int[] ScrollingViewBehavior_Layout = {R.attr.behavior_overlapTop};
public static final int ScrollingViewBehavior_Layout_behavior_overlapTop = 0;
public static final int[] SearchView = {16842970, 16843039, 16843296, 16843364, R.attr.closeIcon, R.attr.commitIcon, R.attr.defaultQueryHint, R.attr.goIcon, R.attr.iconifiedByDefault, R.attr.layout, R.attr.queryBackground, R.attr.queryHint, R.attr.searchHintIcon, R.attr.searchIcon, R.attr.submitBackground, R.attr.suggestionRowLayout, R.attr.voiceIcon};
public static final int SearchView_android_focusable = 0;
public static final int SearchView_android_imeOptions = 3;
public static final int SearchView_android_inputType = 2;
public static final int SearchView_android_maxWidth = 1;
public static final int SearchView_closeIcon = 4;
public static final int SearchView_commitIcon = 5;
public static final int SearchView_defaultQueryHint = 6;
public static final int SearchView_goIcon = 7;
public static final int SearchView_iconifiedByDefault = 8;
public static final int SearchView_layout = 9;
public static final int SearchView_queryBackground = 10;
public static final int SearchView_queryHint = 11;
public static final int SearchView_searchHintIcon = 12;
public static final int SearchView_searchIcon = 13;
public static final int SearchView_submitBackground = 14;
public static final int SearchView_suggestionRowLayout = 15;
public static final int SearchView_voiceIcon = 16;
public static final int[] ShapeAppearance = {R.attr.cornerFamily, R.attr.cornerFamilyBottomLeft, R.attr.cornerFamilyBottomRight, R.attr.cornerFamilyTopLeft, R.attr.cornerFamilyTopRight, R.attr.cornerSize, R.attr.cornerSizeBottomLeft, R.attr.cornerSizeBottomRight, R.attr.cornerSizeTopLeft, R.attr.cornerSizeTopRight};
public static final int ShapeAppearance_cornerFamily = 0;
public static final int ShapeAppearance_cornerFamilyBottomLeft = 1;
public static final int ShapeAppearance_cornerFamilyBottomRight = 2;
public static final int ShapeAppearance_cornerFamilyTopLeft = 3;
public static final int ShapeAppearance_cornerFamilyTopRight = 4;
public static final int ShapeAppearance_cornerSize = 5;
public static final int ShapeAppearance_cornerSizeBottomLeft = 6;
public static final int ShapeAppearance_cornerSizeBottomRight = 7;
public static final int ShapeAppearance_cornerSizeTopLeft = 8;
public static final int ShapeAppearance_cornerSizeTopRight = 9;
public static final int[] ShapeableImageView = {R.attr.shapeAppearance, R.attr.shapeAppearanceOverlay, R.attr.strokeColor, R.attr.strokeWidth};
public static final int ShapeableImageView_shapeAppearance = 0;
public static final int ShapeableImageView_shapeAppearanceOverlay = 1;
public static final int ShapeableImageView_strokeColor = 2;
public static final int ShapeableImageView_strokeWidth = 3;
public static final int[] SignInButton = {R.attr.buttonSize, R.attr.colorScheme, R.attr.scopeUris};
public static final int SignInButton_buttonSize = 0;
public static final int SignInButton_colorScheme = 1;
public static final int SignInButton_scopeUris = 2;
public static final int[] Slider = {16842788, 16843078, 16843486, 16843487, R.attr.haloColor, R.attr.haloRadius, R.attr.labelBehavior, R.attr.labelStyle, R.attr.thumbColor, R.attr.thumbElevation, R.attr.thumbRadius, R.attr.tickColor, R.attr.tickColorActive, R.attr.tickColorInactive, R.attr.trackColor, R.attr.trackColorActive, R.attr.trackColorInactive, R.attr.trackHeight};
public static final int Slider_android_stepSize = 1;
public static final int Slider_android_value = 0;
public static final int Slider_android_valueFrom = 2;
public static final int Slider_android_valueTo = 3;
public static final int Slider_haloColor = 4;
public static final int Slider_haloRadius = 5;
public static final int Slider_labelBehavior = 6;
public static final int Slider_labelStyle = 7;
public static final int Slider_thumbColor = 8;
public static final int Slider_thumbElevation = 9;
public static final int Slider_thumbRadius = 10;
public static final int Slider_tickColor = 11;
public static final int Slider_tickColorActive = 12;
public static final int Slider_tickColorInactive = 13;
public static final int Slider_trackColor = 14;
public static final int Slider_trackColorActive = 15;
public static final int Slider_trackColorInactive = 16;
public static final int Slider_trackHeight = 17;
public static final int[] Snackbar = {R.attr.snackbarButtonStyle, R.attr.snackbarStyle, R.attr.snackbarTextViewStyle};
public static final int[] SnackbarLayout = {16843039, R.attr.actionTextColorAlpha, R.attr.animationMode, R.attr.backgroundOverlayColorAlpha, R.attr.backgroundTint, R.attr.backgroundTintMode, R.attr.elevation, R.attr.maxActionInlineWidth};
public static final int SnackbarLayout_actionTextColorAlpha = 1;
public static final int SnackbarLayout_android_maxWidth = 0;
public static final int SnackbarLayout_animationMode = 2;
public static final int SnackbarLayout_backgroundOverlayColorAlpha = 3;
public static final int SnackbarLayout_backgroundTint = 4;
public static final int SnackbarLayout_backgroundTintMode = 5;
public static final int SnackbarLayout_elevation = 6;
public static final int SnackbarLayout_maxActionInlineWidth = 7;
public static final int Snackbar_snackbarButtonStyle = 0;
public static final int Snackbar_snackbarStyle = 1;
public static final int Snackbar_snackbarTextViewStyle = 2;
public static final int[] Spinner = {16842930, 16843126, 16843131, 16843362, R.attr.popupTheme};
public static final int Spinner_android_dropDownWidth = 3;
public static final int Spinner_android_entries = 0;
public static final int Spinner_android_popupBackground = 1;
public static final int Spinner_android_prompt = 2;
public static final int Spinner_popupTheme = 4;
public static final int[] StateListDrawable = {16843036, 16843156, 16843157, 16843158, 16843532, 16843533};
public static final int[] StateListDrawableItem = {16843161};
public static final int StateListDrawableItem_android_drawable = 0;
public static final int StateListDrawable_android_constantSize = 3;
public static final int StateListDrawable_android_dither = 0;
public static final int StateListDrawable_android_enterFadeDuration = 4;
public static final int StateListDrawable_android_exitFadeDuration = 5;
public static final int StateListDrawable_android_variablePadding = 2;
public static final int StateListDrawable_android_visible = 1;
public static final int[] SubsamplingScaleImageView = {R.attr.assetName, R.attr.panEnabled, R.attr.quickScaleEnabled, R.attr.src, R.attr.tileBackgroundColor, R.attr.zoomEnabled};
public static final int SubsamplingScaleImageView_assetName = 0;
public static final int SubsamplingScaleImageView_panEnabled = 1;
public static final int SubsamplingScaleImageView_quickScaleEnabled = 2;
public static final int SubsamplingScaleImageView_src = 3;
public static final int SubsamplingScaleImageView_tileBackgroundColor = 4;
public static final int SubsamplingScaleImageView_zoomEnabled = 5;
public static final int[] SwitchCompat = {16843044, 16843045, 16843074, R.attr.showText, R.attr.splitTrack, R.attr.switchMinWidth, R.attr.switchPadding, R.attr.switchTextAppearance, R.attr.thumbTextPadding, R.attr.thumbTint, R.attr.thumbTintMode, R.attr.track, R.attr.trackTint, R.attr.trackTintMode};
public static final int SwitchCompat_android_textOff = 1;
public static final int SwitchCompat_android_textOn = 0;
public static final int SwitchCompat_android_thumb = 2;
public static final int SwitchCompat_showText = 3;
public static final int SwitchCompat_splitTrack = 4;
public static final int SwitchCompat_switchMinWidth = 5;
public static final int SwitchCompat_switchPadding = 6;
public static final int SwitchCompat_switchTextAppearance = 7;
public static final int SwitchCompat_thumbTextPadding = 8;
public static final int SwitchCompat_thumbTint = 9;
public static final int SwitchCompat_thumbTintMode = 10;
public static final int SwitchCompat_track = 11;
public static final int SwitchCompat_trackTint = 12;
public static final int SwitchCompat_trackTintMode = 13;
public static final int[] SwitchMaterial = {R.attr.useMaterialThemeColors};
public static final int SwitchMaterial_useMaterialThemeColors = 0;
public static final int[] TabItem = {16842754, 16842994, 16843087};
public static final int TabItem_android_icon = 0;
public static final int TabItem_android_layout = 1;
public static final int TabItem_android_text = 2;
public static final int[] TabLayout = {R.attr.tabBackground, R.attr.tabContentStart, R.attr.tabGravity, R.attr.tabIconTint, R.attr.tabIconTintMode, R.attr.tabIndicator, R.attr.tabIndicatorAnimationDuration, R.attr.tabIndicatorColor, R.attr.tabIndicatorFullWidth, R.attr.tabIndicatorGravity, R.attr.tabIndicatorHeight, R.attr.tabInlineLabel, R.attr.tabMaxWidth, R.attr.tabMinWidth, R.attr.tabMode, R.attr.tabPadding, R.attr.tabPaddingBottom, R.attr.tabPaddingEnd, R.attr.tabPaddingStart, R.attr.tabPaddingTop, R.attr.tabRippleColor, R.attr.tabSelectedTextColor, R.attr.tabTextAppearance, R.attr.tabTextColor, R.attr.tabUnboundedRipple};
public static final int TabLayout_tabBackground = 0;
public static final int TabLayout_tabContentStart = 1;
public static final int TabLayout_tabGravity = 2;
public static final int TabLayout_tabIconTint = 3;
public static final int TabLayout_tabIconTintMode = 4;
public static final int TabLayout_tabIndicator = 5;
public static final int TabLayout_tabIndicatorAnimationDuration = 6;
public static final int TabLayout_tabIndicatorColor = 7;
public static final int TabLayout_tabIndicatorFullWidth = 8;
public static final int TabLayout_tabIndicatorGravity = 9;
public static final int TabLayout_tabIndicatorHeight = 10;
public static final int TabLayout_tabInlineLabel = 11;
public static final int TabLayout_tabMaxWidth = 12;
public static final int TabLayout_tabMinWidth = 13;
public static final int TabLayout_tabMode = 14;
public static final int TabLayout_tabPadding = 15;
public static final int TabLayout_tabPaddingBottom = 16;
public static final int TabLayout_tabPaddingEnd = 17;
public static final int TabLayout_tabPaddingStart = 18;
public static final int TabLayout_tabPaddingTop = 19;
public static final int TabLayout_tabRippleColor = 20;
public static final int TabLayout_tabSelectedTextColor = 21;
public static final int TabLayout_tabTextAppearance = 22;
public static final int TabLayout_tabTextColor = 23;
public static final int TabLayout_tabUnboundedRipple = 24;
public static final int[] TextAppearance = {16842901, 16842902, 16842903, 16842904, 16842906, 16842907, 16843105, 16843106, 16843107, 16843108, 16843692, 16844165, R.attr.fontFamily, R.attr.fontVariationSettings, R.attr.textAllCaps, R.attr.textLocale};
public static final int TextAppearance_android_fontFamily = 10;
public static final int TextAppearance_android_shadowColor = 6;
public static final int TextAppearance_android_shadowDx = 7;
public static final int TextAppearance_android_shadowDy = 8;
public static final int TextAppearance_android_shadowRadius = 9;
public static final int TextAppearance_android_textColor = 3;
public static final int TextAppearance_android_textColorHint = 4;
public static final int TextAppearance_android_textColorLink = 5;
public static final int TextAppearance_android_textFontWeight = 11;
public static final int TextAppearance_android_textSize = 0;
public static final int TextAppearance_android_textStyle = 2;
public static final int TextAppearance_android_typeface = 1;
public static final int TextAppearance_fontFamily = 12;
public static final int TextAppearance_fontVariationSettings = 13;
public static final int TextAppearance_textAllCaps = 14;
public static final int TextAppearance_textLocale = 15;
public static final int[] TextInputEditText = {R.attr.textInputLayoutFocusedRectEnabled};
public static final int TextInputEditText_textInputLayoutFocusedRectEnabled = 0;
public static final int[] TextInputLayout = {16842766, 16842906, 16843088, R.attr.boxBackgroundColor, R.attr.boxBackgroundMode, R.attr.boxCollapsedPaddingTop, R.attr.boxCornerRadiusBottomEnd, R.attr.boxCornerRadiusBottomStart, R.attr.boxCornerRadiusTopEnd, R.attr.boxCornerRadiusTopStart, R.attr.boxStrokeColor, R.attr.boxStrokeErrorColor, R.attr.boxStrokeWidth, R.attr.boxStrokeWidthFocused, R.attr.counterEnabled, R.attr.counterMaxLength, R.attr.counterOverflowTextAppearance, R.attr.counterOverflowTextColor, R.attr.counterTextAppearance, R.attr.counterTextColor, R.attr.endIconCheckable, R.attr.endIconContentDescription, R.attr.endIconDrawable, R.attr.endIconMode, R.attr.endIconTint, R.attr.endIconTintMode, R.attr.errorContentDescription, R.attr.errorEnabled, R.attr.errorIconDrawable, R.attr.errorIconTint, R.attr.errorIconTintMode, R.attr.errorTextAppearance, R.attr.errorTextColor, R.attr.helperText, R.attr.helperTextEnabled, R.attr.helperTextTextAppearance, R.attr.helperTextTextColor, R.attr.hintAnimationEnabled, R.attr.hintEnabled, R.attr.hintTextAppearance, R.attr.hintTextColor, R.attr.passwordToggleContentDescription, R.attr.passwordToggleDrawable, R.attr.passwordToggleEnabled, R.attr.passwordToggleTint, R.attr.passwordToggleTintMode, R.attr.placeholderText, R.attr.placeholderTextAppearance, R.attr.placeholderTextColor, R.attr.prefixText, R.attr.prefixTextAppearance, R.attr.prefixTextColor, R.attr.shapeAppearance, R.attr.shapeAppearanceOverlay, R.attr.startIconCheckable, R.attr.startIconContentDescription, R.attr.startIconDrawable, R.attr.startIconTint, R.attr.startIconTintMode, R.attr.suffixText, R.attr.suffixTextAppearance, R.attr.suffixTextColor};
public static final int TextInputLayout_android_enabled = 0;
public static final int TextInputLayout_android_hint = 2;
public static final int TextInputLayout_android_textColorHint = 1;
public static final int TextInputLayout_boxBackgroundColor = 3;
public static final int TextInputLayout_boxBackgroundMode = 4;
public static final int TextInputLayout_boxCollapsedPaddingTop = 5;
public static final int TextInputLayout_boxCornerRadiusBottomEnd = 6;
public static final int TextInputLayout_boxCornerRadiusBottomStart = 7;
public static final int TextInputLayout_boxCornerRadiusTopEnd = 8;
public static final int TextInputLayout_boxCornerRadiusTopStart = 9;
public static final int TextInputLayout_boxStrokeColor = 10;
public static final int TextInputLayout_boxStrokeErrorColor = 11;
public static final int TextInputLayout_boxStrokeWidth = 12;
public static final int TextInputLayout_boxStrokeWidthFocused = 13;
public static final int TextInputLayout_counterEnabled = 14;
public static final int TextInputLayout_counterMaxLength = 15;
public static final int TextInputLayout_counterOverflowTextAppearance = 16;
public static final int TextInputLayout_counterOverflowTextColor = 17;
public static final int TextInputLayout_counterTextAppearance = 18;
public static final int TextInputLayout_counterTextColor = 19;
public static final int TextInputLayout_endIconCheckable = 20;
public static final int TextInputLayout_endIconContentDescription = 21;
public static final int TextInputLayout_endIconDrawable = 22;
public static final int TextInputLayout_endIconMode = 23;
public static final int TextInputLayout_endIconTint = 24;
public static final int TextInputLayout_endIconTintMode = 25;
public static final int TextInputLayout_errorContentDescription = 26;
public static final int TextInputLayout_errorEnabled = 27;
public static final int TextInputLayout_errorIconDrawable = 28;
public static final int TextInputLayout_errorIconTint = 29;
public static final int TextInputLayout_errorIconTintMode = 30;
public static final int TextInputLayout_errorTextAppearance = 31;
public static final int TextInputLayout_errorTextColor = 32;
public static final int TextInputLayout_helperText = 33;
public static final int TextInputLayout_helperTextEnabled = 34;
public static final int TextInputLayout_helperTextTextAppearance = 35;
public static final int TextInputLayout_helperTextTextColor = 36;
public static final int TextInputLayout_hintAnimationEnabled = 37;
public static final int TextInputLayout_hintEnabled = 38;
public static final int TextInputLayout_hintTextAppearance = 39;
public static final int TextInputLayout_hintTextColor = 40;
public static final int TextInputLayout_passwordToggleContentDescription = 41;
public static final int TextInputLayout_passwordToggleDrawable = 42;
public static final int TextInputLayout_passwordToggleEnabled = 43;
public static final int TextInputLayout_passwordToggleTint = 44;
public static final int TextInputLayout_passwordToggleTintMode = 45;
public static final int TextInputLayout_placeholderText = 46;
public static final int TextInputLayout_placeholderTextAppearance = 47;
public static final int TextInputLayout_placeholderTextColor = 48;
public static final int TextInputLayout_prefixText = 49;
public static final int TextInputLayout_prefixTextAppearance = 50;
public static final int TextInputLayout_prefixTextColor = 51;
public static final int TextInputLayout_shapeAppearance = 52;
public static final int TextInputLayout_shapeAppearanceOverlay = 53;
public static final int TextInputLayout_startIconCheckable = 54;
public static final int TextInputLayout_startIconContentDescription = 55;
public static final int TextInputLayout_startIconDrawable = 56;
public static final int TextInputLayout_startIconTint = 57;
public static final int TextInputLayout_startIconTintMode = 58;
public static final int TextInputLayout_suffixText = 59;
public static final int TextInputLayout_suffixTextAppearance = 60;
public static final int TextInputLayout_suffixTextColor = 61;
public static final int[] ThemeEnforcement = {16842804, R.attr.enforceMaterialTheme, R.attr.enforceTextAppearance};
public static final int ThemeEnforcement_android_textAppearance = 0;
public static final int ThemeEnforcement_enforceMaterialTheme = 1;
public static final int ThemeEnforcement_enforceTextAppearance = 2;
public static final int[] Toolbar = {16842927, 16843072, R.attr.buttonGravity, R.attr.collapseContentDescription, R.attr.collapseIcon, R.attr.contentInsetEnd, R.attr.contentInsetEndWithActions, R.attr.contentInsetLeft, R.attr.contentInsetRight, R.attr.contentInsetStart, R.attr.contentInsetStartWithNavigation, R.attr.logo, R.attr.logoDescription, R.attr.maxButtonHeight, R.attr.menu, R.attr.navigationContentDescription, R.attr.navigationIcon, R.attr.popupTheme, R.attr.subtitle, R.attr.subtitleTextAppearance, R.attr.subtitleTextColor, R.attr.title, R.attr.titleMargin, R.attr.titleMarginBottom, R.attr.titleMarginEnd, R.attr.titleMarginStart, R.attr.titleMarginTop, R.attr.titleMargins, R.attr.titleTextAppearance, R.attr.titleTextColor};
public static final int Toolbar_android_gravity = 0;
public static final int Toolbar_android_minHeight = 1;
public static final int Toolbar_buttonGravity = 2;
public static final int Toolbar_collapseContentDescription = 3;
public static final int Toolbar_collapseIcon = 4;
public static final int Toolbar_contentInsetEnd = 5;
public static final int Toolbar_contentInsetEndWithActions = 6;
public static final int Toolbar_contentInsetLeft = 7;
public static final int Toolbar_contentInsetRight = 8;
public static final int Toolbar_contentInsetStart = 9;
public static final int Toolbar_contentInsetStartWithNavigation = 10;
public static final int Toolbar_logo = 11;
public static final int Toolbar_logoDescription = 12;
public static final int Toolbar_maxButtonHeight = 13;
public static final int Toolbar_menu = 14;
public static final int Toolbar_navigationContentDescription = 15;
public static final int Toolbar_navigationIcon = 16;
public static final int Toolbar_popupTheme = 17;
public static final int Toolbar_subtitle = 18;
public static final int Toolbar_subtitleTextAppearance = 19;
public static final int Toolbar_subtitleTextColor = 20;
public static final int Toolbar_title = 21;
public static final int Toolbar_titleMargin = 22;
public static final int Toolbar_titleMarginBottom = 23;
public static final int Toolbar_titleMarginEnd = 24;
public static final int Toolbar_titleMarginStart = 25;
public static final int Toolbar_titleMarginTop = 26;
public static final int Toolbar_titleMargins = 27;
public static final int Toolbar_titleTextAppearance = 28;
public static final int Toolbar_titleTextColor = 29;
public static final int[] Tooltip = {16842804, 16842965, 16842998, 16843071, 16843072, 16843087, R.attr.backgroundTint};
public static final int Tooltip_android_layout_margin = 2;
public static final int Tooltip_android_minHeight = 4;
public static final int Tooltip_android_minWidth = 3;
public static final int Tooltip_android_padding = 1;
public static final int Tooltip_android_text = 5;
public static final int Tooltip_android_textAppearance = 0;
public static final int Tooltip_backgroundTint = 6;
public static final int[] View = {16842752, 16842970, R.attr.paddingEnd, R.attr.paddingStart, R.attr.theme};
public static final int[] ViewBackgroundHelper = {16842964, R.attr.backgroundTint, R.attr.backgroundTintMode};
public static final int ViewBackgroundHelper_android_background = 0;
public static final int ViewBackgroundHelper_backgroundTint = 1;
public static final int ViewBackgroundHelper_backgroundTintMode = 2;
public static final int[] ViewPager2 = {16842948};
public static final int ViewPager2_android_orientation = 0;
public static final int[] ViewStubCompat = {16842960, 16842994, 16842995};
public static final int ViewStubCompat_android_id = 0;
public static final int ViewStubCompat_android_inflatedId = 2;
public static final int ViewStubCompat_android_layout = 1;
public static final int View_android_focusable = 1;
public static final int View_android_theme = 0;
public static final int View_paddingEnd = 2;
public static final int View_paddingStart = 3;
public static final int View_theme = 4;
private styleable() {
}
}
public static final class xml {
public static final int standalone_badge = 2132017152;
public static final int standalone_badge_gravity_bottom_end = 2132017153;
public static final int standalone_badge_gravity_bottom_start = 2132017154;
public static final int standalone_badge_gravity_top_start = 2132017155;
public static final int standalone_badge_offset = 2132017156;
private xml() {
}
}
private R() {
}
}
| 5l1v3r1/Zoo-App | R.java |
172 | package Edureka;
import java.util.Scanner;
public class PatternA {
// Java program to print alphabet A pattern
void display(int n)
{
// Outer for loop for number of lines
for (int i = 0; i<=n; i++) {
// Inner for loop for logic execution
for (int j = 0; j<= n / 2; j++) {
// prints two column lines
if ((j == 0 || j == n / 2) && i != 0 ||
// print first line of alphabet
i == 0 && j != n / 2 ||
// prints middle line
i == n / 2)
System.out.print("*");
else
System.out.print(" ");
}
System.out.println();
}
}
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
PatternA a = new PatternA();
a.display(7);
}
}
| Abraarkhan/Java_Algorithms | alphabet.java |
174 | import java.util.*;
class Solution
{
public static int differenceOfSum (int m, int n)
{
int sum1 = 0, sum2 = 0;
for (int i = 1; i <= m; i++)
{
if (i % n == 0)
sum1 = sum1 + i;
else
sum2 = sum2 + i;
}
return Math.abs (sum1 - sum2);
}
public static void main (String[]args)
{
Scanner sc = new Scanner (System.in);
int n = sc.nextInt ();
int m = sc.nextInt ();
System.out.println (differenceOfSum (m, n));
}
}
| SAKET-SK/Programming-Aptitude-Interview-Prep | Accenture/Que 5/Solution.java |
175 | /*Write a program to sort frames using appropriate sorting techniques*/
import java.util.*;
public class sort1 {
public static void main(String[] args) {
List<int[]> frame = new ArrayList<>();
System.out.println("Enter no. of frames:");
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
Random random = new Random();
int seqNum = random.nextInt(1000) + 1;
System.out.printf("Enter data for %dth frame>>", i + 1);
int data = sc.nextInt();
frame.add(new int[]{seqNum, data});
}
System.out.println("\n\nBefore Sorting>>");
for (int[] i : frame) {
System.out.printf("seqNum->%d, Data->%d\n", i[0], i[1]);
}
frame = sortFrame(frame);
System.out.println("\n\n After sorting>>");
for (int[] i : frame) {
System.out.printf("seqNum->%d, Data->%d\n", i[0], i[1]);
}
}
public static List<int[]> sortFrame(List<int[]> frame) {
Collections.sort(frame, (a, b) -> Integer.compare(a[0], b[0]));
return frame;
}
}
/*output
Enter no. of frames:
4
Enter data for 1th frame>>342
Enter data for 2th frame>>256
Enter data for 3th frame>>890
Enter data for 4th frame>>356
Before Sorting>>
seqNum->703, Data->342
seqNum->654, Data->256
seqNum->704, Data->890
seqNum->876, Data->356
After sorting>>
seqNum->654, Data->256
seqNum->703, Data->342
seqNum->704, Data->890
seqNum->876, Data->356
*/
| saadhussain01306/computer_net_lab | 1.sort_frames.java |
182 |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.List;
/**
* Write a description of class Arena here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class A extends World
{
/**
* Constructor for objects of class Arena.
*
*/
public A()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(600, 450, 1);
int z = Greenfoot.getRandomNumber(150)+150;
AKorb k1 = new AKorb();
addObject(k1, 555, z);
ABrett br = new ABrett(k1);
addObject(br, 600, z-60);
int bx = Greenfoot.getRandomNumber(250);
int by = Greenfoot.getRandomNumber(225)+100;
ARichtungsanzeige r = new ARichtungsanzeige();
addObject(r, bx, by);
AAnzeige a = new AAnzeige();
addObject(a, 500, 410);
AKraftanzeige kr = new AKraftanzeige();
addObject(kr, 500, 410);
int z1 = Greenfoot.getRandomNumber(6);
ABall b = new ABall(k1, r, kr, br, bx, by, z1);
addObject(b, bx, by);
if(z1==1)
{
setBackground("inf hintergrund - Kopie (3).png");
}
if(z1==2)
{
setBackground("inf hintergrund - Kopie (2).png");
}
if(z1==3)
{
setBackground("inf hintergrund - Kopie.png");
}
}
public void loescheObjekte()
{
List objekte = getObjects(null);
removeObjects(objekte);
World a = new A();
Greenfoot.delay(20);
Greenfoot.setWorld(a);
Greenfoot.start();
}
public void entferneBall(ABall b)
{
removeObject(b);
}
} | THaussler/Projekt | A.java |
184 | //Program to compute the LCM of two given numbers
import java.util.Scanner;
public class LCM2NUM
{
public static void main(String args[])
{
Scanner reader = new Scanner(System.in);
System.out.print("\nEnter the first number: ");
int num1 = reader.nextInt();
System.out.print("\nEnter the second number: ");
int num2 = reader.nextInt();
int lcm = (num1 >num2)?num1:num2;
boolean test = true;
while (test == true)
{
if (lcm%num1 == 0 && lcm % num2 == 0)
{
test = false;
break;
}
lcm++;
}
System.out.print(lcm);
}
}
| SaketJNU/Java-Programs | module1/LCM2NUM.java |
185 | import java.io.*;
public class jj {
public static void main(String[] args) {
int num1 = 5, num2 = 15, sum;
sum = num1 + num2;
System.out.println("Sum of these numbers: "+sum);
}
} | kvdkiran/KVD2 | jj.java |
187 | public class My {
public static void main(String[] args) {
System.out.println("Republic of Korea");
}
public static int sum() {
return 30 + 40;
}
}
| callor/Biz-JavaScript-505-2022-04 | My.java |
189 | // Greatest common divisor of strings
class Solution {
public String gcdOfStrings(String str1, String str2) {
if (!str1.concat(str2).equals(str2.concat(str1)))
return "";
int gcd = gcd(str1.length(), str2.length());
return str1.substring(0, gcd);
}
public int gcd(int a, int b) {
return b == 0 ? a : gcd(b, a % b);
}
}
| Aryan201903/Leetcode75 | 2.java |
190 | /**
Declare a class “point” which contains following-
Data members:
A[][] : double dimensional array
R : integer to store row size
C : integer to store column size
Member functions:
point(int p, int q) : constructor to assign p to R and q to C and create array
of R X C order.
void get_ array() : to input a double dimensional array in the form of
matrix of given rows and columns.
void display_mat() : to print the entered matrix.
int check _pseudo(int a[]) : to check and find whether elements in each row are
pseudo numbers or not and return 1 if numbers in rows are pseudo numbers
else return 0.
void result() : to invoke check_pseudo() to find whether the numbers in each row are pseudo
numbers or not and display the result in given format.
Input matrix
3 5 2 4
2 5 4 9
8 6 8 7
The output
Row 1 -> pseudo numbers
Row 2 -> not pseudo numbers
Row 3 -> not pseudo numbers
For example 3, 6, 4, 2, 5 are pseudo numbers as
3+5=8
6+2=8
4+4=8 [middle number add twice if no of column odd]
And 3x8=24 which is equal to sum all groups so formed.
For example 7, 9, 5, 84, 6 are pseudo numbers as
7+6=13 9+4=13 5+8=13 And 3x13=39 which is equal to sum all groups so formed.
*/
import java.io.*;
class Q8
{
static BufferedReader obj=new BufferedReader(new InputStreamReader(System.in));
public static void main(String args[])throws IOException
{
System.out.println("Enter number of rows and columns");
int r=Integer.parseInt(obj.readLine());
int c=Integer.parseInt(obj.readLine());
point A=new point(r,c);
A.get_array();
A.display_mat();
A.result();
}
}
class point
{
BufferedReader obj=new BufferedReader(new InputStreamReader(System.in));
int A[][];
int R;
int C;
point(int p, int q)
{
R=p;
C=q;
A=new int[R][C];
for(int i=0;i<R;i++)
{
for(int j=0;j<C;j++)
{
A[i][j]=0;
}
}
}
void get_array()throws IOException
{
System.out.println("Enter Array");
for(int i=0;i<R;i++)
{
for(int j=0;j<C;j++)
{
A[i][j]=Integer.parseInt(obj.readLine());
}
}
}
void display_mat()
{
int i=0;
int j=0;
System.out.println("Input Matrix");
for(i=0;i<R;i++)
{
for(j=0;j<C;j++)
{
System.out.print(A[i][j]+"\t");
}
System.out.println();
}
}
int check_pseudo(int a[])
{
int l=a.length;
int i=0;
int c=0;
int sum=a[0]+a[l-1];
int sum1=0;
for(i=1;i<=(l/2);i++)
{
c++;
sum1=a[i]+a[l-i-1];
if(sum!=sum1)
{
return 0;
}
}
return 1;
}
void result()
{
int a[]=new int[C];
int i=0;
int j=0;
int k=0;
System.out.println("The output");
for(i=0;i<R;i++)
{
for(j=0;j<C;j++)
{
a[j]=A[i][j];
}
k=check_pseudo(a);
if(k==1)
{
System.out.println("Row "+(i+1)+" --> Pseudo numbers");
}
else
{
System.out.println("Row "+(i+1)+" --> Not pseudo numbers");
}
}
}
} | sheivin/Computer-Science-Project-Class-XII-ISC-2013-2014 | Q8.java |
193 | public class AC {
public void turnOnAC() {
System.out.println("AC is On");
}
public void turnOffAC() {
System.out.println("AC is Off");
}
}
| PussyCat0700/FSM_Example | AC.java |
194 | class Solution {
public int[] getConcatenation(int[] nums) {
int n = nums.length;
int[] ans = new int[2 * n];
for (int i = 0; i < n; i++) {
ans[i] = nums[i];
ans[i + n] = nums[i];
}
return ans;
}
}
| EshuDhiman/LEETCODE | 2058-concatenation-of-array/concatenation-of-array.java |
200 | /*
* Copyright 2001-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.easymock.EasyMock;
public class A {
public static void main(String[] args) {
System.out.println("Hello World!");
Object o = EasyMock.mock(Object.class);
}
}
| deepin-community/easymock | A.java |
201 | package com.hailei.pojo;
public class Brand {
// id 主键
private Integer id;
// 品牌名称
private String brandName;
// 企业名称
private String companyName;
// 排序字段
private Integer ordered;
// 描述信息
private String description;
// 状态:0:禁用 1:启用
private Integer status;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getBrandName() {
return brandName;
}
public void setBrandName(String brandName) {
this.brandName = brandName;
}
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName = companyName;
}
public Integer getOrdered() {
return ordered;
}
public void setOrdered(Integer ordered) {
this.ordered = ordered;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Integer getStatus() {
return status;
}
//逻辑视图
public String getStatusStr(){
if (status == null){
return "未知";
}
return status == 0 ? "禁用":"启用";
}
public void setStatus(Integer status) {
this.status = status;
}
@Override
public String toString() {
return "Brand{" +
"id=" + id +
", brandName='" + brandName + '\'' +
", companyName='" + companyName + '\'' +
", ordered=" + ordered +
", description='" + description + '\'' +
", status=" + status +
'}';
}
}
| HaiLei-Fly/JavaWeb-brand | src/main/java/com/hailei/pojo/Brand.java |
203 | package uk.co.odeon.androidapp;
public final class R {
public static final class anim {
public static final int fadein = 2130968576;
public static final int fadeout = 2130968577;
public static final int fadeout_fast = 2130968578;
public static final int slide_from_bottom = 2130968579;
public static final int slide_from_right = 2130968580;
public static final int slide_to_bottom = 2130968581;
public static final int slide_to_right = 2130968582;
public static final int slide_to_top = 2130968583;
}
public static final class array {
public static final int cinema_header_call_premium_rate_number_prefixes = 2131361792;
public static final int cinema_header_call_premium_rate_number_prefixes_ire = 2131361793;
public static final int user_titles = 2131361794;
}
public static final class attr {
public static final int barColor = 2130771969;
public static final int circlePadding = 2130771975;
public static final int fadeDelay = 2130771971;
public static final int fadeDuration = 2130771972;
public static final int highlightColor = 2130771970;
public static final int pageWidth = 2130771968;
public static final int roundRectRadius = 2130771973;
public static final int useCircles = 2130771974;
}
public static final class bool {
public static final int ga_autoActivityTracking = 2131099648;
public static final int ga_debug = 2131099650;
public static final int ga_reportUncaughtExceptions = 2131099649;
}
public static final class color {
public static final int button_enabled_disabled = 2131165191;
public static final int film_list_filter_button_color_selector = 2131165192;
public static final int mediacontroller_background = 2131165189;
public static final int opc_background = 2131165184;
public static final int schedule_book_tickets = 2131165185;
public static final int section_name_canvas = 2131165187;
public static final int standard_grey = 2131165190;
public static final int t_and_c_link = 2131165186;
public static final int ticket_amount = 2131165188;
}
public static final class dimen {
public static final int booking_gap_giant = 2131296259;
public static final int booking_gap_large = 2131296260;
public static final int booking_gap_small = 2131296261;
public static final int booking_header_button_width = 2131296262;
public static final int padding_giant = 2131296256;
public static final int padding_large = 2131296257;
public static final int padding_small = 2131296258;
public static final int tickets_selector_elements_size = 2131296264;
public static final int tickets_selector_width = 2131296263;
}
public static final class drawable {
public static final int arrow = 2130837504;
public static final int b5_0a_header_gradient = 2130837505;
public static final int back_button = 2130837506;
public static final int back_button_hilite = 2130837507;
public static final int bbf_image = 2130837508;
public static final int bbf_image_small = 2130837509;
public static final int bg_map = 2130837510;
public static final int bookbtn = 2130837511;
public static final int bt_clear_user_details = 2130837512;
public static final int bt_location_ireland = 2130837513;
public static final int bt_location_ireland_activ = 2130837514;
public static final int bt_location_ireland_passiv = 2130837515;
public static final int bt_location_uk = 2130837516;
public static final int bt_location_uk_activ = 2130837517;
public static final int bt_location_uk_passiv = 2130837518;
public static final int bt_rewards_mycard = 2130837519;
public static final int bt_rewards_myfilms = 2130837520;
public static final int bt_rewards_mytrans = 2130837521;
public static final int bt_rewards_whatcan = 2130837522;
public static final int button_blue_gradient_round_corners = 2130837523;
public static final int button_bottom_arrow = 2130837524;
public static final int button_middle_arrow = 2130837525;
public static final int button_single_arrow = 2130837526;
public static final int button_top_arrow = 2130837527;
public static final int button_top_noarrow = 2130837528;
public static final int category_gradient = 2130837529;
public static final int cert_12 = 2130837530;
public static final int cert_12a = 2130837531;
public static final int cert_15 = 2130837532;
public static final int cert_18 = 2130837533;
public static final int cert_ire_12a = 2130837534;
public static final int cert_ire_15a = 2130837535;
public static final int cert_ire_16 = 2130837536;
public static final int cert_ire_18 = 2130837537;
public static final int cert_ire_g = 2130837538;
public static final int cert_ire_pg = 2130837539;
public static final int cert_ire_tbc = 2130837540;
public static final int cert_ire_tbx = 2130837541;
public static final int cert_pg = 2130837542;
public static final int cert_tbc = 2130837543;
public static final int cert_u = 2130837544;
public static final int cinema_list_btn = 2130837545;
public static final int cinema_list_bubble = 2130837546;
public static final int cinema_list_bubble_orig = 2130837547;
public static final int cinema_list_bubble_small = 2130837548;
public static final int cinema_list_pin = 2130837549;
public static final int cinema_list_pin_large = 2130837550;
public static final int cinema_listing_gradient = 2130837551;
public static final int cinema_listing_location = 2130837552;
public static final int facebook_icon = 2130837553;
public static final int film_info_bg_gradient = 2130837554;
public static final int film_info_noimg = 2130837555;
public static final int film_list_filter_button_selected = 2130837556;
public static final int film_list_filter_button_selector = 2130837557;
public static final int film_listing_gradient = 2130837558;
public static final int film_listing_gradient_selected = 2130837559;
public static final int film_listing_noimg = 2130837560;
public static final int film_listing_trailer_overlay = 2130837561;
public static final int glasses_3d = 2130837562;
public static final int horizgradblackwhite = 2130837563;
public static final int horizgradwhiteblack = 2130837564;
public static final int ic_audio_described = 2130837565;
public static final int ic_close_capture = 2130837566;
public static final int ic_menu_help = 2130837567;
public static final int ic_menu_info = 2130837568;
public static final int ic_menu_settings = 2130837569;
public static final int icon = 2130837570;
public static final int icon_add = 2130837571;
public static final int icon_add_stateful = 2130837572;
public static final int icon_book_now = 2130837573;
public static final int icon_book_now_stateful = 2130837574;
public static final int icon_calendar_add = 2130837575;
public static final int icon_call = 2130837576;
public static final int icon_cinemas = 2130837577;
public static final int icon_delete_row = 2130837578;
public static final int icon_films = 2130837579;
public static final int icon_i = 2130837580;
public static final int icon_my_odeon = 2130837581;
public static final int icon_rate = 2130837582;
public static final int icon_rate_stateful = 2130837583;
public static final int icon_rewards = 2130837584;
public static final int icon_tell_a_friend = 2130837585;
public static final int icon_tell_a_friend_stateful = 2130837586;
public static final int icon_tick = 2130837587;
public static final int icon_view_trailer = 2130837588;
public static final int icon_view_trailer_stateful = 2130837589;
public static final int listing_arrow = 2130837590;
public static final int logo_footer = 2130837591;
public static final int logo_hero = 2130837592;
public static final int nav_bar_bg = 2130837593;
public static final int nav_bar_btn_4_round = 2130837594;
public static final int nav_bar_btn_4_round_hilite = 2130837595;
public static final int nav_bar_btn_4_square = 2130837596;
public static final int nav_bar_btn_4_square_hilite = 2130837597;
public static final int nav_bar_btn_left_square = 2130837598;
public static final int nav_bar_btn_left_square_hilite = 2130837599;
public static final int nav_bar_btn_right_square = 2130837600;
public static final int nav_bar_btn_right_square_hilite = 2130837601;
public static final int navigation_bar_button_back = 2130837602;
public static final int opc_card_back = 2130837603;
public static final int opc_card_front = 2130837604;
public static final int opc_signup = 2130837605;
public static final int ratingbar_big = 2130837606;
public static final int ratingbar_big_empty = 2130837607;
public static final int ratingbar_big_filled = 2130837608;
public static final int ratingbar_small = 2130837609;
public static final int ratingbar_small_empty = 2130837610;
public static final int ratingbar_small_filled = 2130837611;
public static final int reset = 2130837612;
public static final int rewards_my_card_barcode_noimg = 2130837613;
public static final int rewards_my_films_header_gradient = 2130837614;
public static final int round_box_black = 2130837615;
public static final int round_box_grey = 2130837616;
public static final int round_box_white = 2130837617;
public static final int round_box_white_bottom = 2130837618;
public static final int round_box_white_single = 2130837619;
public static final int round_box_white_top = 2130837620;
public static final int schedule_date_header_gradient = 2130837621;
public static final int schedule_showtimes_page_gradient = 2130837622;
public static final int showtimes_arrow_left = 2130837623;
public static final int showtimes_arrow_right = 2130837624;
public static final int signup_hint = 2130837625;
public static final int star0 = 2130837626;
public static final int star1 = 2130837627;
public static final int star_big_off = 2130837628;
public static final int star_big_on = 2130837629;
public static final int tab_bg_selected = 2130837630;
public static final int tab_bg_selector = 2130837631;
public static final int tab_bg_unselected = 2130837632;
public static final int tab_image_cinema_selector = 2130837633;
public static final int tab_image_film_selector = 2130837634;
public static final int tab_image_myodeon_selector = 2130837635;
public static final int tab_image_rewards_selector = 2130837636;
public static final int tab_text_selector = 2130837637;
public static final int twitter_bg = 2130837638;
public static final int twitter_bg_round = 2130837639;
public static final int twitter_paper_clip = 2130837640;
}
public static final class id {
public static final int LinearLayout01 = 2131558562;
public static final int aboutMainLayout = 2131558400;
public static final int aboutMenuItem = 2131558682;
public static final int addressFieldsLayout = 2131558585;
public static final int bookingTicketAmount = 2131558673;
public static final int bookingTicketCount = 2131558671;
public static final int bookingTicketGlasses = 2131558450;
public static final int bookingTicketList = 2131558453;
public static final int bookingTicketListFeeText = 2131558452;
public static final int bookingTicketListItem = 2131558447;
public static final int bookingTicketMinusButton = 2131558672;
public static final int bookingTicketName = 2131558448;
public static final int bookingTicketPlusButton = 2131558670;
public static final int bookingTicketSelector = 2131558451;
public static final int bookingTicketSubscription = 2131558449;
public static final int bookingWebview = 2131558408;
public static final int btnMyCard = 2131558641;
public static final int btnMyFilms = 2131558642;
public static final int btnMyTransactions = 2131558643;
public static final int btnPointsInfo = 2131558644;
public static final int cancelButton = 2131558596;
public static final int checkOrderText = 2131558614;
public static final int chosenPackageText = 2131558615;
public static final int cinemaError = 2131558594;
public static final int cinemaHeaderImage = 2131558454;
public static final int cinemaHeaderInfoAsteriskLayout = 2131558466;
public static final int cinemaHeaderInfoAsteriskText = 2131558467;
public static final int cinemaHeaderInfoCallImage = 2131558460;
public static final int cinemaHeaderInfoCallLabel = 2131558461;
public static final int cinemaHeaderInfoCallLayout = 2131558459;
public static final int cinemaHeaderInfoCallText = 2131558462;
public static final int cinemaHeaderInfoDetailsLayout = 2131558457;
public static final int cinemaHeaderInfoDetailsText = 2131558458;
public static final int cinemaHeaderInfoFavoriteImage = 2131558464;
public static final int cinemaHeaderInfoFavoriteLayout = 2131558463;
public static final int cinemaHeaderInfoFavoriteText = 2131558465;
public static final int cinemaHeaderInfoLayout = 2131558456;
public static final int cinemaHeaderLayout = 2131558533;
public static final int cinemaHeaderText = 2131558455;
public static final int cinemaHelpfulHint = 2131558593;
public static final int cinemaLayout = 2131558592;
public static final int cinemaSpinner = 2131558595;
public static final int cinema_list = 2131558470;
public static final int cinema_list_addr = 2131558477;
public static final int cinema_list_arrow = 2131558478;
public static final int cinema_list_bubble_btn = 2131558472;
public static final int cinema_list_bubble_text = 2131558471;
public static final int cinema_list_distance = 2131558476;
public static final int cinema_list_dummyfocusable = 2131558487;
public static final int cinema_list_infocontainer = 2131558474;
public static final int cinema_list_item = 2131558473;
public static final int cinema_list_location_btn = 2131558486;
public static final int cinema_list_name = 2131558475;
public static final int cinema_list_noloc = 2131558480;
public static final int cinema_list_noloc_blah1 = 2131558482;
public static final int cinema_list_noloc_blah2 = 2131558483;
public static final int cinema_list_noloc_gpsettings_btn = 2131558484;
public static final int cinema_list_noloc_title = 2131558481;
public static final int cinema_list_post_code_search_ed = 2131558488;
public static final int cinema_list_viewswitcher = 2131558469;
public static final int cinema_map_view = 2131558489;
public static final int cityText = 2131558588;
public static final int clearUserDetailsButton = 2131558661;
public static final int confirmEmailText = 2131558427;
public static final int connWaitText = 2131558490;
public static final int contactText = 2131558407;
public static final int continueButton = 2131558429;
public static final int costLabel = 2131558618;
public static final int costRow = 2131558617;
public static final int costText = 2131558619;
public static final int detailsFooter = 2131558631;
public static final int detailsHeader = 2131558613;
public static final int detailsLayout = 2131558612;
public static final int detailsSummaryTable = 2131558616;
public static final int dobButton = 2131558638;
public static final int dobLabel = 2131558637;
public static final int dobLayout = 2131558636;
public static final int emailLabel = 2131558624;
public static final int emailRow = 2131558623;
public static final int emailText = 2131558426;
public static final int emtpty_item_text = 2131558491;
public static final int expiryPointsDate = 2131558651;
public static final int expiryPointsInfo = 2131558653;
public static final int expiryPointsPoints = 2131558652;
public static final int expiryPointsText = 2131558650;
public static final int expiryPointsTitle = 2131558649;
public static final int filmHeaderCertificate = 2131558492;
public static final int filmHeaderLayout = 2131558468;
public static final int filmHeaderTitle = 2131558493;
public static final int filmInfoBBFImage = 2131558504;
public static final int filmInfoCertificate = 2131558501;
public static final int filmInfoConsumerAdvice = 2131558518;
public static final int filmInfoCountry = 2131558516;
public static final int filmInfoDirectedBy = 2131558513;
public static final int filmInfoGenre = 2131558498;
public static final int filmInfoGenreLabel = 2131558497;
public static final int filmInfoImage = 2131558503;
public static final int filmInfoImageLayout = 2131558502;
public static final int filmInfoLanguage = 2131558517;
public static final int filmInfoPlot = 2131558519;
public static final int filmInfoRating = 2131558496;
public static final int filmInfoRatingImage = 2131558525;
public static final int filmInfoRatingLayout = 2131558524;
public static final int filmInfoRatingText = 2131558526;
public static final int filmInfoReleaseDate = 2131558500;
public static final int filmInfoReleaseDateLabel = 2131558499;
public static final int filmInfoReminderImage = 2131558528;
public static final int filmInfoReminderLayout = 2131558527;
public static final int filmInfoReminderText = 2131558529;
public static final int filmInfoRunningTime = 2131558515;
public static final int filmInfoScrollView = 2131558494;
public static final int filmInfoSeeLaterImage = 2131558531;
public static final int filmInfoSeeLaterLayout = 2131558530;
public static final int filmInfoSeeLaterText = 2131558532;
public static final int filmInfoShowtimesImage = 2131558509;
public static final int filmInfoShowtimesLayout = 2131558508;
public static final int filmInfoShowtimesText = 2131558510;
public static final int filmInfoStarring = 2131558514;
public static final int filmInfoTellFriendImage = 2131558522;
public static final int filmInfoTellFriendLayout = 2131558521;
public static final int filmInfoTellFriendText = 2131558523;
public static final int filmInfoTitle = 2131558495;
public static final int filmInfoTrailerImage = 2131558506;
public static final int filmInfoTrailerLayout = 2131558505;
public static final int filmInfoTrailerText = 2131558507;
public static final int filmInfoWhiteBox = 2131558512;
public static final int filmInfoWhiteBoxBottomGradient = 2131558520;
public static final int filmInfoWhiteBoxTopGradient = 2131558511;
public static final int filmListFilter = 2131558534;
public static final int filmListFilterAdvanced = 2131558537;
public static final int filmListFilterCurrent = 2131558535;
public static final int filmListFilterNext = 2131558536;
public static final int filmRatingBar = 2131558553;
public static final int filmRatingBtnCancel = 2131558554;
public static final int film_list = 2131558538;
public static final int film_list_arrow = 2131558550;
public static final int film_list_audio_described = 2131558552;
public static final int film_list_cert = 2131558545;
public static final int film_list_closed_capture = 2131558551;
public static final int film_list_genre = 2131558547;
public static final int film_list_genre_label = 2131558546;
public static final int film_list_image_bbf = 2131558541;
public static final int film_list_image_small = 2131558540;
public static final int film_list_infocontainer = 2131558543;
public static final int film_list_item = 2131558539;
public static final int film_list_rating = 2131558544;
public static final int film_list_reldate = 2131558549;
public static final int film_list_reldate_label = 2131558548;
public static final int film_list_title = 2131558542;
public static final int filmtimesCheckbox = 2131558629;
public static final int filmtimesLabel = 2131558630;
public static final int filmtimesLayout = 2131558628;
public static final int firstnameText = 2131558435;
public static final int footerLayout = 2131558412;
public static final int headerRoot = 2131558575;
public static final int headerSub = 2131558576;
public static final int headerSubButtonBack = 2131558577;
public static final int headerSubButtonExtra = 2131558579;
public static final int headerSubTitle = 2131558578;
public static final int headerSwitcher = 2131558574;
public static final int helpMenuItem = 2131558683;
public static final int houseText = 2131558586;
public static final int infoHeader = 2131558409;
public static final int infoHeaderRow1 = 2131558410;
public static final int infoHeaderRow2 = 2131558411;
public static final int introText = 2131558416;
public static final int introText1 = 2131558403;
public static final int introText2 = 2131558404;
public static final int joinPaymentWebview = 2131558633;
public static final int list_deletable_button = 2131558479;
public static final int list_row_header_text = 2131558567;
public static final int locationHeaderText = 2131558571;
public static final int locationIreButton = 2131558569;
public static final int locationSettingHint = 2131558568;
public static final int locationUkButton = 2131558570;
public static final int loggedInText = 2131558662;
public static final int loginButton = 2131558424;
public static final int loginFieldsLayout = 2131558415;
public static final int loginFieldsTable = 2131558417;
public static final int logoImage = 2131558401;
public static final int mailFieldsLayout = 2131558425;
public static final int myCardHelpText = 2131558646;
public static final int my_odeon_list = 2131558573;
public static final int nameFieldsLayout = 2131558430;
public static final int nameLabel = 2131558621;
public static final int nameRow = 2131558620;
public static final int nameText = 2131558622;
public static final int navigationHeader = 2131558413;
public static final int navigationHeaderCancel = 2131558564;
public static final int navigationHeaderOk = 2131558565;
public static final int navigationHeaderTitle = 2131558566;
public static final int navigatorContent = 2131558580;
public static final int nextButton = 2131558438;
public static final int noLoginButton = 2131558414;
public static final int offerCheckbox = 2131558626;
public static final int offerLabel = 2131558627;
public static final int offerLayout = 2131558625;
public static final int offer_list_description = 2131558584;
public static final int offer_list_image = 2131558582;
public static final int offer_list_item = 2131558581;
public static final int offer_list_title = 2131558583;
public static final int opcCardBarcodeImage = 2131558645;
public static final int opcPackage1Arrow = 2131558598;
public static final int opcPackage1Description = 2131558600;
public static final int opcPackage1Layout = 2131558597;
public static final int opcPackage1Title = 2131558599;
public static final int opcPackage2Arrow = 2131558602;
public static final int opcPackage2Description = 2131558604;
public static final int opcPackage2Layout = 2131558601;
public static final int opcPackage2Title = 2131558603;
public static final int opcPackage3Arrow = 2131558606;
public static final int opcPackage3Description = 2131558608;
public static final int opcPackage3Layout = 2131558605;
public static final int opcPackage3Title = 2131558607;
public static final int opcSignupView = 2131558572;
public static final int passwordHelpfulHint = 2131558635;
public static final int passwordLabel = 2131558422;
public static final int passwordLayout = 2131558634;
public static final int passwordRow = 2131558421;
public static final int passwordText = 2131558423;
public static final int phoneHelpfulHint = 2131558591;
public static final int phoneLayout = 2131558590;
public static final int phoneText = 2131558428;
public static final int policiesText = 2131558406;
public static final int post_code_search_header = 2131558485;
public static final int postcodeText = 2131558589;
public static final int privacyText = 2131558610;
public static final int proceedButton = 2131558632;
public static final int rewardsMyFilmsTitle = 2131558647;
public static final int rewardsTopHello = 2131558639;
public static final int rewardsTopPointsTotal = 2131558640;
public static final int rewardsTransactions = 2131558654;
public static final int rewards_my_films_list = 2131558648;
public static final int rewards_transaction_date_text = 2131558656;
public static final int rewards_transaction_desc_text = 2131558657;
public static final int rewards_transaction_earned_text = 2131558658;
public static final int rewards_transaction_expiry_text = 2131558660;
public static final int rewards_transaction_redeemed_text = 2131558659;
public static final int rewards_transactiontable = 2131558655;
public static final int runningTotalFooterText = 2131558439;
public static final int runningTotalHeaderText = 2131558440;
public static final int runningTotalLayout = 2131558437;
public static final int scheduleDateAttributeBox = 2131558557;
public static final int scheduleDateAttributeText = 2131558556;
public static final int scheduleDateAttributesLayout = 2131558560;
public static final int scheduleDateLayout = 2131558558;
public static final int scheduleDateText = 2131558559;
public static final int scheduleDays = 2131558555;
public static final int seatingPlanView = 2131558444;
public static final int seatingPlanZoom = 2131558445;
public static final int settingsMenuItem = 2131558681;
public static final int statusText = 2131558675;
public static final int streetText = 2131558587;
public static final int subHeaderReset = 2131558443;
public static final int subHeaderSeatLayout = 2131558442;
public static final int subHeaderSectionName = 2131558446;
public static final int subHeaderTitle = 2131558441;
public static final int summaryText = 2131558609;
public static final int surnameText = 2131558436;
public static final int tAndCText = 2131558405;
public static final int tAndcText = 2131558611;
public static final int tabsImage = 2131558664;
public static final int tabsLayout = 2131558663;
public static final int tabsText = 2131558665;
public static final int tellFriendBtnCancel = 2131558669;
public static final int tellFriendBtnEmail = 2131558666;
public static final int tellFriendBtnFacebook = 2131558667;
public static final int tellFriendBtnTwitter = 2131558668;
public static final int timeElementTime = 2131558561;
public static final int titleError = 2131558434;
public static final int titleLabel = 2131558432;
public static final int titleLayout = 2131558431;
public static final int titleSpinner = 2131558433;
public static final int titleText = 2131558679;
public static final int trailerVideoView = 2131558563;
public static final int tweetImage = 2131558677;
public static final int tweetLayout = 2131558676;
public static final int tweetText = 2131558678;
public static final int twitterViewSwitcher = 2131558674;
public static final int usernameLabel = 2131558419;
public static final int usernameRow = 2131558418;
public static final int usernameText = 2131558420;
public static final int versionText = 2131558402;
public static final int webview = 2131558680;
}
public static final class integer {
public static final int dev_cinema_id = 2131230726;
public static final int dev_entry_point = 2131230720;
public static final int dev_entry_point_type_about = 2131230723;
public static final int dev_entry_point_type_booking = 2131230722;
public static final int dev_entry_point_type_booking_confirm = 2131230725;
public static final int dev_entry_point_type_opc = 2131230724;
public static final int dev_entry_point_type_schedule = 2131230721;
public static final int dev_film_id = 2131230727;
public static final int running_total_column_gap = 2131230731;
public static final int running_total_column_large_span = 2131230732;
public static final int running_total_column_small_span = 2131230733;
public static final int running_total_row_gap = 2131230730;
public static final int ticket_selection_alpha_disabled = 2131230729;
public static final int ticket_selection_alpha_enabled = 2131230728;
}
public static final class layout {
public static final int about = 2130903040;
public static final int booking_check_user_details = 2130903041;
public static final int booking_header_sub_info = 2130903042;
public static final int booking_login = 2130903043;
public static final int booking_nologin_mail_details = 2130903044;
public static final int booking_nologin_name_details = 2130903045;
public static final int booking_running_total = 2130903046;
public static final int booking_running_total_footer = 2130903047;
public static final int booking_running_total_header = 2130903048;
public static final int booking_seat_selection = 2130903049;
public static final int booking_section_selection = 2130903050;
public static final int booking_terms_and_conditions = 2130903051;
public static final int booking_ticket_list_item = 2130903052;
public static final int booking_ticket_selection = 2130903053;
public static final int cinema_header_row = 2130903054;
public static final int cinema_list = 2130903055;
public static final int cinema_list_bubble = 2130903056;
public static final int cinema_list_inner_item = 2130903057;
public static final int cinema_list_item = 2130903058;
public static final int cinema_list_item_deletable = 2130903059;
public static final int cinema_list_noloc = 2130903060;
public static final int cinema_list_postcode_header = 2130903061;
public static final int cinema_map = 2130903062;
public static final int connectivity_wait = 2130903063;
public static final int empty_list_item = 2130903064;
public static final int film_header_row = 2130903065;
public static final int film_info = 2130903066;
public static final int film_list = 2130903067;
public static final int film_list_inner_item = 2130903068;
public static final int film_list_item = 2130903069;
public static final int film_list_item_accessible = 2130903070;
public static final int film_list_item_deletable = 2130903071;
public static final int film_rating_dialog = 2130903072;
public static final int film_schedule = 2130903073;
public static final int film_schedule_attribute_element = 2130903074;
public static final int film_schedule_day_element = 2130903075;
public static final int film_schedule_time_element = 2130903076;
public static final int film_trailer = 2130903077;
public static final int header_cancel_ok = 2130903078;
public static final int list_row_header = 2130903079;
public static final int location_choose = 2130903080;
public static final int login = 2130903081;
public static final int logo_footer = 2130903082;
public static final int my_odeon = 2130903083;
public static final int navigation_bar_button = 2130903084;
public static final int navigator_bar = 2130903085;
public static final int offer_list_item = 2130903086;
public static final int opc_address_details = 2130903087;
public static final int opc_choose_package = 2130903088;
public static final int opc_details = 2130903089;
public static final int opc_join_payment = 2130903090;
public static final int opc_name_details = 2130903091;
public static final int rewards = 2130903092;
public static final int rewards_my_card = 2130903093;
public static final int rewards_my_card_help = 2130903094;
public static final int rewards_my_films = 2130903095;
public static final int rewards_my_films_empty_sect = 2130903096;
public static final int rewards_my_transactions = 2130903097;
public static final int rewards_transactions_list_item = 2130903098;
public static final int settings = 2130903099;
public static final int tabs = 2130903100;
public static final int tabs_bg = 2130903101;
public static final int tell_friend_about_film_dialog = 2130903102;
public static final int ticket_selector = 2130903103;
public static final int twitter = 2130903104;
public static final int webview = 2130903105;
}
public static final class menu {
public static final int home = 2131492864;
}
public static final class string {
public static final int about_contact = 2131034264;
public static final int about_delete_prefs_dialog_button_label = 2131034266;
public static final int about_delete_prefs_dialog_msg = 2131034267;
public static final int about_header_title = 2131034258;
public static final int about_intro_1 = 2131034260;
public static final int about_intro_2 = 2131034261;
public static final int about_logged_in_as = 2131034265;
public static final int about_other_policies = 2131034263;
public static final int about_t_and_c = 2131034262;
public static final int about_version = 2131034259;
public static final int app_decimal_format = 2131034122;
public static final int app_init_progress = 2131034120;
public static final int app_init_progress_retry = 2131034121;
public static final int app_name = 2131034119;
public static final int appinit_failed_alert_msg = 2131034139;
public static final int appinit_failed_alert_ok = 2131034140;
public static final int appinit_failed_alert_title = 2131034138;
public static final int booking_addcal_url_param = 2131034378;
public static final int booking_cea_card_message = 2131034310;
public static final int booking_cea_card_title = 2131034309;
public static final int booking_error = 2131034304;
public static final int booking_error_abort_button_label = 2131034307;
public static final int booking_error_button_label = 2131034306;
public static final int booking_error_no_data = 2131034305;
public static final int booking_finished_or_errors_yes = 2131034376;
public static final int booking_finished_url_param = 2131034377;
public static final int booking_header_button_back = 2131034322;
public static final int booking_header_button_booking = 2131034326;
public static final int booking_header_button_cancel = 2131034324;
public static final int booking_header_button_close = 2131034325;
public static final int booking_header_button_ok = 2131034323;
public static final int booking_header_confirmation = 2131034321;
public static final int booking_header_details = 2131034314;
public static final int booking_header_login = 2131034313;
public static final int booking_header_payment = 2131034320;
public static final int booking_header_running_total = 2131034318;
public static final int booking_header_seat_selection = 2131034316;
public static final int booking_header_section_selection = 2131034315;
public static final int booking_header_t_and_c = 2131034319;
public static final int booking_header_ticket_selection = 2131034317;
public static final int booking_login_opc_text = 2131034303;
public static final int booking_no_cea_card_button_label = 2131034311;
public static final int booking_no_login_text = 2131034302;
public static final int booking_progress = 2131034127;
public static final int booking_sub_header_seat = 2131034328;
public static final int booking_sub_header_section = 2131034327;
public static final int booking_sub_header_ticket_without_3d = 2131034329;
public static final int booking_warning_button_label = 2131034308;
public static final int booking_yes_cea_card_button_label = 2131034312;
public static final int calentry_failed_alert_msg = 2131034113;
public static final int calentry_failed_alert_ok = 2131034114;
public static final int calentry_failed_alert_title = 2131034112;
public static final int cinema_header_call_label = 2131034206;
public static final int cinema_header_cost_info = 2131034207;
public static final int cinema_header_cost_info_ire = 2131034208;
public static final int cinema_list_dist_header_more = 2131034160;
public static final int cinema_list_dist_header_more_ire = 2131034161;
public static final int cinema_list_dist_header_within = 2131034158;
public static final int cinema_list_dist_header_within_ire = 2131034159;
public static final int cinema_list_fav_header = 2131034157;
public static final int cinema_list_postcode_failed_msg = 2131034150;
public static final int cinema_list_postcode_failed_msg_ire = 2131034151;
public static final int cinema_list_postcode_failed_ok = 2131034152;
public static final int cinema_list_postcode_failed_title = 2131034149;
public static final int cinema_list_postcode_header_search_hint = 2131034153;
public static final int cinema_list_postcode_header_search_hint_ire = 2131034154;
public static final int cinema_list_postcode_no_loc = 2131034155;
public static final int cinema_list_postcode_no_loc_ire = 2131034156;
public static final int cinema_list_progress_postcode_lookup = 2131034147;
public static final int cinema_list_progress_postcode_lookup_ire = 2131034148;
public static final int cinema_nav_az = 2131034300;
public static final int cinema_nav_closetome = 2131034299;
public static final int cinema_nav_map = 2131034301;
public static final int conncheck_noconn_alert_msg = 2131034134;
public static final int conncheck_noconn_alert_ok = 2131034135;
public static final int conncheck_noconn_alert_title = 2131034133;
public static final int connwait_text_failedconn = 2131034137;
public static final int connwait_text_noconn = 2131034136;
public static final int default_error = 2131034131;
public static final int default_error_button_label = 2131034132;
public static final int default_progress = 2131034123;
public static final int dev_booking_confirm_url = 2131034117;
public static final int dev_performance_id = 2131034116;
public static final int edit_button_done = 2131034383;
public static final int edit_button_edit = 2131034382;
public static final int error_form_invalid = 2131034270;
public static final int error_form_invalid_length = 2131034271;
public static final int error_form_mandantory = 2131034268;
public static final int error_form_match = 2131034269;
public static final int exception_report_url = 2131034118;
public static final int film_info_btn_rate = 2131034181;
public static final int film_info_btn_rate_already_rated = 2131034184;
public static final int film_info_btn_rate_notrateable = 2131034183;
public static final int film_info_btn_reminder = 2131034182;
public static final int film_info_btn_save_favourite_cinema = 2131034204;
public static final int film_info_btn_save_see_later = 2131034185;
public static final int film_info_btn_saved_favourite_cinema = 2131034205;
public static final int film_info_btn_saved_see_later = 2131034186;
public static final int film_info_btn_showtimes = 2131034179;
public static final int film_info_btn_tellfriend = 2131034180;
public static final int film_info_btn_trailer = 2131034178;
public static final int film_info_label_bbfc = 2131034170;
public static final int film_info_label_bbfc_ire = 2131034171;
public static final int film_info_label_country = 2131034175;
public static final int film_info_label_director = 2131034174;
public static final int film_info_label_genre = 2131034167;
public static final int film_info_label_language = 2131034176;
public static final int film_info_label_plot = 2131034177;
public static final int film_info_label_reldate = 2131034168;
public static final int film_info_label_running_time = 2131034172;
public static final int film_info_label_starring = 2131034169;
public static final int film_info_progress = 2131034124;
public static final int film_info_reminder_calendar_title_suffix = 2131034187;
public static final int film_info_running_time_value = 2131034173;
public static final int film_list_filter_label_advanced = 2131034164;
public static final int film_list_filter_label_current = 2131034162;
public static final int film_list_filter_label_next = 2131034163;
public static final int film_list_label_genre = 2131034165;
public static final int film_list_label_release_date = 2131034166;
public static final int film_rating_btn_cancel = 2131034188;
public static final int film_rating_confirm = 2131034191;
public static final int film_rating_confirm_ok = 2131034192;
public static final int film_rating_confirm_title = 2131034190;
public static final int film_rating_store_progress = 2131034189;
public static final int film_schedule_book_label = 2131034209;
public static final int film_schedule_error_button_label = 2131034210;
public static final int film_schedule_progress = 2131034125;
public static final int film_trailer = 2131034126;
public static final int form_button_cancel = 2131034274;
public static final int form_button_continue = 2131034273;
public static final int form_button_login = 2131034272;
public static final int form_field_cinema = 2131034296;
public static final int form_field_cinema_prompt = 2131034297;
public static final int form_field_city = 2131034291;
public static final int form_field_confirm_email = 2131034281;
public static final int form_field_confirm_password = 2131034278;
public static final int form_field_dob = 2131034285;
public static final int form_field_dob_prompt = 2131034286;
public static final int form_field_email = 2131034280;
public static final int form_field_firstname = 2131034287;
public static final int form_field_house = 2131034289;
public static final int form_field_password = 2131034277;
public static final int form_field_password_label = 2131034279;
public static final int form_field_phone = 2131034282;
public static final int form_field_postcode = 2131034292;
public static final int form_field_security_answer = 2131034294;
public static final int form_field_security_answer_label = 2131034295;
public static final int form_field_security_question_label = 2131034293;
public static final int form_field_street = 2131034290;
public static final int form_field_surname = 2131034288;
public static final int form_field_title = 2131034283;
public static final int form_field_title_prompt = 2131034284;
public static final int form_field_twitter_text = 2131034298;
public static final int form_field_username = 2131034275;
public static final int form_field_username_label = 2131034276;
public static final int ga_trackingId = 2131034115;
public static final int google_maps_not_found_msg = 2131034142;
public static final int google_maps_not_found_ok = 2131034143;
public static final int google_maps_not_found_title = 2131034141;
public static final int help_header_title = 2131034393;
public static final int location_ire = 2131034388;
public static final int location_settings_hint = 2131034389;
public static final int location_uk = 2131034387;
public static final int login_text = 2131034130;
public static final int menu_about_label = 2131034385;
public static final int menu_help_label = 2131034386;
public static final int menu_settings_label = 2131034384;
public static final int myodeon_header_title = 2131034254;
public static final int myodeon_list_header_fav_cinemas = 2131034256;
public static final int myodeon_list_header_fav_films = 2131034257;
public static final int myodeon_list_header_offers = 2131034255;
public static final int opc_continue_with_login_url_param = 2131034253;
public static final int opc_details_check_order = 2131034239;
public static final int opc_details_cost_label = 2131034240;
public static final int opc_details_email_label = 2131034242;
public static final int opc_details_filmtimes_label = 2131034244;
public static final int opc_details_footer = 2131034245;
public static final int opc_details_header = 2131034238;
public static final int opc_details_name_label = 2131034241;
public static final int opc_details_offer_label = 2131034243;
public static final int opc_details_privacy_policy = 2131034247;
public static final int opc_details_proceed = 2131034228;
public static final int opc_details_t_and_c = 2131034246;
public static final int opc_header_button_close = 2131034221;
public static final int opc_header_title = 2131034222;
public static final int opc_header_title_webview = 2131034223;
public static final int opc_helpful_hint_button_label = 2131034236;
public static final int opc_helpful_hint_cinema = 2131034251;
public static final int opc_helpful_hint_password = 2131034250;
public static final int opc_helpful_hint_phone = 2131034248;
public static final int opc_helpful_hint_security_question = 2131034249;
public static final int opc_helpful_hint_title = 2131034237;
public static final int opc_package_1_cost = 2131034212;
public static final int opc_package_1_cost_ire = 2131034213;
public static final int opc_package_1_description = 2131034230;
public static final int opc_package_1_name = 2131034214;
public static final int opc_package_1_title = 2131034229;
public static final int opc_package_2_cost = 2131034215;
public static final int opc_package_2_cost_ire = 2131034216;
public static final int opc_package_2_description = 2131034232;
public static final int opc_package_2_name = 2131034217;
public static final int opc_package_2_title = 2131034231;
public static final int opc_package_3_cost = 2131034218;
public static final int opc_package_3_cost_ire = 2131034219;
public static final int opc_package_3_description = 2131034234;
public static final int opc_package_3_description_bold = 2131034235;
public static final int opc_package_3_name = 2131034220;
public static final int opc_package_3_title = 2131034233;
public static final int opc_package_base_name = 2131034211;
public static final int opc_privacy_policy = 2131034225;
public static final int opc_progress = 2131034128;
public static final int opc_show_close_button_yes = 2131034252;
public static final int opc_summary = 2131034224;
public static final int opc_t_and_c = 2131034226;
public static final int opc_t_and_c_long = 2131034227;
public static final int rewards_error_ok = 2131034339;
public static final int rewards_error_text = 2131034338;
public static final int rewards_error_title = 2131034337;
public static final int rewards_header = 2131034330;
public static final int rewards_hello = 2131034331;
public static final int rewards_mycard = 2131034334;
public static final int rewards_mycard_header_title = 2131034346;
public static final int rewards_mycard_help_header_title = 2131034347;
public static final int rewards_myfilms = 2131034333;
public static final int rewards_myfilms_allOtherFilmsRated = 2131034344;
public static final int rewards_myfilms_bookedAndNotRated = 2131034342;
public static final int rewards_myfilms_bookedAndRated = 2131034343;
public static final int rewards_myfilms_header = 2131034340;
public static final int rewards_myfilms_nofilms = 2131034345;
public static final int rewards_myfilms_recommended = 2131034341;
public static final int rewards_mytransactions = 2131034335;
public static final int rewards_mytransactions_expiry_points_date = 2131034355;
public static final int rewards_mytransactions_expiry_points_info = 2131034356;
public static final int rewards_mytransactions_expiry_points_text = 2131034354;
public static final int rewards_mytransactions_expiry_points_title = 2131034353;
public static final int rewards_mytransactions_header_date = 2131034348;
public static final int rewards_mytransactions_header_desc = 2131034349;
public static final int rewards_mytransactions_header_earned = 2131034350;
public static final int rewards_mytransactions_header_expiry = 2131034352;
public static final int rewards_mytransactions_header_redeemed = 2131034351;
public static final int rewards_points = 2131034332;
public static final int rewards_pointsinfo = 2131034336;
public static final int rewards_pointsinfo_text = 2131034357;
public static final int running_total_button_proceed = 2131034372;
public static final int running_total_footer = 2131034374;
public static final int running_total_header = 2131034373;
public static final int running_total_t_and_c = 2131034375;
public static final int seatplan_impossible_seat_selection_message = 2131034365;
public static final int seatplan_impossible_seat_selection_title = 2131034364;
public static final int seatplan_no_seat_selection_message = 2131034363;
public static final int seatplan_no_seat_selection_title = 2131034362;
public static final int seatplan_no_section_selection_message = 2131034361;
public static final int seatplan_no_section_selection_title = 2131034360;
public static final int seatplan_screen = 2131034358;
public static final int seatplan_unreserved_message = 2131034359;
public static final int settings_clear_user_details_label = 2131034391;
public static final int settings_header_title = 2131034390;
public static final int settings_select_location_header = 2131034392;
public static final int tellfriend_btn_cancel = 2131034196;
public static final int tellfriend_btn_email = 2131034193;
public static final int tellfriend_btn_facebook = 2131034194;
public static final int tellfriend_btn_twitter = 2131034195;
public static final int tellfriend_email_err_ok = 2131034201;
public static final int tellfriend_email_err_text = 2131034200;
public static final int tellfriend_email_err_title = 2131034199;
public static final int tellfriend_email_subject = 2131034197;
public static final int tellfriend_email_text = 2131034198;
public static final int tellfriend_fb_error = 2131034202;
public static final int tellfriend_fb_success = 2131034203;
public static final int tickets_count_text = 2131034366;
public static final int tickets_currency = 2131034367;
public static final int tickets_currency_ire = 2131034368;
public static final int tickets_list_header_3d = 2131034371;
public static final int tickets_list_header_normal = 2131034370;
public static final int tickets_no_selection_message = 2131034369;
public static final int twitter_header_title = 2131034379;
public static final int twitter_msg = 2131034145;
public static final int twitter_ok = 2131034146;
public static final int twitter_progress = 2131034129;
public static final int twitter_title = 2131034144;
public static final int twitter_tweed_button = 2131034381;
public static final int twitter_verification_wait = 2131034380;
}
public static final class style {
public static final int AndroidSDKRatingBarSmall = 2131427328;
public static final int bookingSectionNameCanvas = 2131427354;
public static final int bookingTextGiantBold = 2131427343;
public static final int bookingTextGiantBoldWhite = 2131427344;
public static final int bookingTextLargeBold = 2131427345;
public static final int bookingTextLargeBoldWhite = 2131427346;
public static final int bookingTextMedium = 2131427347;
public static final int bookingTextMediumBold = 2131427349;
public static final int bookingTextMediumBoldWhite = 2131427350;
public static final int bookingTextMediumWhite = 2131427348;
public static final int bookingTextSmall = 2131427351;
public static final int bookingTextSmallBold = 2131427352;
public static final int bookingTextSmallBoldWhite = 2131427353;
public static final int buttonBlueGradientRoundCorners = 2131427342;
public static final int dialogSlidingInFromBottom = 2131427355;
public static final int dialogSlidingInFromBottomAnimation = 2131427356;
public static final int odeonRatingBarBig = 2131427330;
public static final int odeonRatingBarSmall = 2131427329;
public static final int textLarge = 2131427331;
public static final int textLargeBold = 2131427332;
public static final int textLargeBoldWhite = 2131427333;
public static final int textMedium = 2131427334;
public static final int textMediumBold = 2131427335;
public static final int textMediumBoldWhite = 2131427337;
public static final int textMediumWhite = 2131427336;
public static final int textSmall = 2131427338;
public static final int textSmallBold = 2131427339;
public static final int textSmallBoldWhite = 2131427341;
public static final int textSmallWhite = 2131427340;
}
public static final class styleable {
public static final int[] ReallySimpleFlowLayout;
public static final int ReallySimpleFlowLayout_android_horizontalSpacing = 0;
public static final int ReallySimpleFlowLayout_android_verticalSpacing = 1;
public static final int[] com_deezapps_widget_HorizontalPager;
public static final int com_deezapps_widget_HorizontalPager_pageWidth = 0;
public static final int[] com_deezapps_widget_PagerControl;
public static final int com_deezapps_widget_PagerControl_barColor = 0;
public static final int com_deezapps_widget_PagerControl_circlePadding = 6;
public static final int com_deezapps_widget_PagerControl_fadeDelay = 2;
public static final int com_deezapps_widget_PagerControl_fadeDuration = 3;
public static final int com_deezapps_widget_PagerControl_highlightColor = 1;
public static final int com_deezapps_widget_PagerControl_roundRectRadius = 4;
public static final int com_deezapps_widget_PagerControl_useCircles = 5;
static {
ReallySimpleFlowLayout = new int[]{16843028, 16843029};
int[] iArr = new int[com_deezapps_widget_PagerControl_highlightColor];
iArr[com_deezapps_widget_PagerControl_barColor] = R.attr.pageWidth;
com_deezapps_widget_HorizontalPager = iArr;
com_deezapps_widget_PagerControl = new int[]{R.attr.barColor, R.attr.highlightColor, R.attr.fadeDelay, R.attr.fadeDuration, R.attr.roundRectRadius, R.attr.useCircles, R.attr.circlePadding};
}
}
}
| ahmetabdi/odeon_apk | R.java |
204 | class GfG
{
//Function to return a tree created from postorder and inoreder traversals.
int postIdx;
Node buildTree(int in[], int post[], int n) {
// Your code here
postIdx =n-1;
return dfs(in, post, 0, n-1);
}
Node dfs(int in[], int post[], int is, int ie){
if(is>ie) return null;
Node root = new Node(post[postIdx--]);
int inIdx = is; //O(n)
for(int i=is; i<=ie; i++){
if(in[i]==root.data){
inIdx=i; break;
}
}
//rec
root.right = dfs(in, post, inIdx+1, ie);
root.left = dfs(in, post, is, inIdx-1);
return root;
}
}
| AkshayAnil1080/DSA | Construct Binary Tree from Inorder and Postorder - GFG/Construct Binary Tree from Inorder and Postorder.java |
205 | /*
javascript4P5 is a port of javascript4me for Processing, by Davide Della Casa
javascript4me is made by Wang Lei ( rockswang@gmail.com ) and is released under GNU Lesser GPL
You can find javascript4me at http://code.google.com/p/javascript4me/
*/
// RC Stands for "Return Constants"
class RC {
// All tokens
static final int TOK_UNKNOWN = 0;
static final int TOK_NUMBER = 1;
static final int TOK_STRING = 2;
static final int TOK_SYMBOL = 3;
static final int TOK_EOL = 10; // \n
static final int TOK_DOT = '.';
static final int TOK_LBK = '[';
static final int TOK_RBK = ']';
static final int TOK_LBR = '{';
static final int TOK_RBR = '}';
static final int TOK_LPR = '(';
static final int TOK_RPR = ')';
static final int TOK_COM = ',';
static final int TOK_COL = ':';
static final int TOK_SEM = ';';
static final int DQUOT = '"';
static final int SQUOT = '\'';
static final int BACKSLASH = '\\'; // line continue
static final int TOK_ASS = '=';
static final int TOK_NOT = '!';
static final int TOK_GRT = '>';
static final int TOK_LES = '<';
static final int TOK_ADD = '+';
static final int TOK_MIN = '-';
static final int TOK_MUL = '*';
static final int TOK_DIV = '/';
static final int TOK_MOD = '%';
static final int TOK_QMK = '?';
static final int TOK_BNO = '~';
static final int TOK_BAN = '&';
static final int TOK_BXO = '^';
static final int TOK_BOR = '|';
static final int ASS_START = 200;
static final int TOK_EQ = TOK_ASS + ASS_START; // ==
static final int TOK_NE = TOK_NOT + ASS_START; // !=
static final int TOK_GE = TOK_GRT + ASS_START; // >=
static final int TOK_LE = TOK_LES + ASS_START; // <=
static final int TOK_ADA = TOK_ADD + ASS_START; // +=
static final int TOK_MIA = TOK_MIN + ASS_START; // -=
static final int TOK_MUA = TOK_MUL + ASS_START; // *=
static final int TOK_DIA = TOK_DIV + ASS_START; // /=
static final int TOK_MOA = TOK_MOD + ASS_START; // %=
static final int TOK_BAA = TOK_BAN + ASS_START; // &=
static final int TOK_BXA = TOK_BXO + ASS_START; // ^=
static final int TOK_BOA = TOK_BOR + ASS_START; // |=
static final int DBL_START = 400;
static final int TOK_POW = TOK_MUL + DBL_START; // **
static final int TOK_INC = TOK_ADD + DBL_START; // ++
static final int TOK_DEC = TOK_MIN + DBL_START; // --
static final int TOK_OR = TOK_BOR + DBL_START; // ||
static final int TOK_AND = TOK_BAN + DBL_START; // &&
static final int TOK_LSH = TOK_LES + DBL_START; // <<
static final int TOK_RSH = TOK_GRT + DBL_START; // >>
static final int TRI_START = 600;
static final int TOK_IDN = TOK_ASS + TRI_START; // ===
static final int TOK_NID = TOK_NOT + TRI_START; // !==
static final int TOK_LSA = TOK_LES + TRI_START; // <<=
static final int TOK_RSA = TOK_GRT + TRI_START; // >>=
static final int TOK_RZA = TOK_RBK + TRI_START; // >>>=
static final int TOK_RSZ = TOK_RPR + TRI_START; // >>>
static final int TOK_IF = 130;
static final int TOK_ELSE = 131;
static final int TOK_FOR = 132;
static final int TOK_WHILE = 133;
static final int TOK_DO = 134;
static final int TOK_BREAK = 135;
static final int TOK_CONTINUE = 136;
static final int TOK_VAR = 137;
static final int TOK_FUNCTION = 138;
static final int TOK_RETURN = 139;
static final int TOK_WITH = 140;
static final int TOK_NEW = 141;
static final int TOK_IN = 142;
static final int TOK_SWITCH = 143;
static final int TOK_CASE = 144;
static final int TOK_DEFAULT = 145;
static final int TOK_TYPEOF = 146;
static final int TOK_DELETE = 147;
static final int TOK_INSTANCEOF = 148;
static final int TOK_THROW = 149;
static final int TOK_TRY = 150;
static final int TOK_CATCH = 151;
static final int TOK_FINALLY = 152;
static final int TOK_EOF = 999;
static final int RPN_START = 1000;
static final int TOK_POS = TOK_ADD + RPN_START;
static final int TOK_NEG = TOK_MIN + RPN_START;
static final int TOK_INVOKE = TOK_LPR + RPN_START;
static final int TOK_INIT = TOK_NEW + RPN_START;
static final int TOK_JSONARR = TOK_LBK + RPN_START;
static final int TOK_POSTINC = TOK_INC + RPN_START;
static final int TOK_POSTDEC = TOK_DEC + RPN_START;
static final int TOK_SEP = TOK_COM + RPN_START;
static final int TOK_JSONCOL = TOK_COL + RPN_START;
static final int TOK_EMPTY = TOK_RPR;
static final String tokensText(Pack tt, int pos, int len) {
StringBuffer buf = new StringBuffer();
for (int i = pos, n = pos + len; i < n; i++) {
if (i > pos) buf.append(',');
int ttype = tt.getInt(i);
buf.append(tokenName(ttype, tt.getObject(i)));
}
return buf.toString();
}
static final String tokenName(int type, Object value) {
int offset = type >> 16;
type &= 0xffff;
if (type == RC.TOK_EOF) {
return "EOF";
} else if (type >= RC.RPN_START) {
switch (type) {
case RC.TOK_POS:
return "'positive'";
case RC.TOK_NEG:
return "'negative'";
case RC.TOK_INVOKE:
return "'invoke'";
case RC.TOK_INIT:
return "'init'";
case RC.TOK_JSONARR:
return "'json_array'";
case RC.TOK_POSTINC:
return "++(p)";
case RC.TOK_POSTDEC:
return "'--(p)'";
case RC.TOK_SEP:
return "'separator'";
case RC.TOK_JSONCOL:
return "'json_colon'";
}
} else if (type >= RC.TRI_START) {
switch (type) {
case TOK_IDN:
return "'==='";
case TOK_NID:
return "'!=='";
case TOK_RSZ:
return "'>>>'";
case TOK_LSA:
return "'<<='";
case TOK_RSA:
return "'>>='";
case TOK_RZA:
return "'>>>='";
}
} else if (type >= RC.DBL_START) {
String soff = offset > 0 ? "+" + offset : "";
char c;
return "'" + (c = (char) (type - RC.DBL_START)) + c + soff + "'";
} else if (type >= RC.ASS_START) {
return "'" + (char) (type - RC.ASS_START) + "='";
} else if (type >= RC.TOK_IF) {
return keywordName(type);
} else {
Object val = null;
if (value != null) {
Object[] oo;
val = value instanceof Rv ? value : (oo = (Object[]) value).length > 1 ? oo[1] : null;
}
switch (type) {
case RC.TOK_NUMBER:
return "[" + val + "]";
case RC.TOK_STRING:
// val = ((String) val).replaceAll("[\\r\\n]+", "\\\\n");
return "\"" + val + "\"";
case RC.TOK_SYMBOL:
return "<" + val + ">";
case RC.TOK_EOL:
return "EOL";
default:
return "'" + (char) type + "'";
}
}
return "[UNKNOWN_TYPE(" + type + ")=" + value + "]";
}
static final Rhash htKeywordNames;
static {
Rhash ht = htKeywordNames = new Rhash(41);
Pack pk = RocksInterpreter.split(RocksInterpreter.KEYWORDS, ",");
Object[] pkar = pk.oArray;
for (int i = pk.oSize; --i >= 0;) {
Rv entry = new Rv();
entry.obj = pkar[i];
ht.putEntry(130 + i, null, entry);
}
}
private static final String keywordName(int index) {
return (String) htKeywordNames.getEntry(index, null).obj;
}
}
| davidedc/javascript4P5 | RC.java |
206 | // Software created by Jack Meng (AKA exoad). Licensed by the included "LICENSE" file. If this file is not found, the project is fully copyrighted.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.HashMap;
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Consumer;
import javax.sound.sampled.*;
final class SfxNoiseGenerator
{
/// ======================= BEGIN CONFIG ======================= ///
// These are startup configs.
private static int SAMPLE_RATE = 44100;
private static NoiseType TYPE = NoiseType.WHITE;
private static int DURATION = -1;
private static double SPEED = 0.4;
private static float VOLUME = 0.4F;
static final int BITS_SAMPLE_SIZE = 16; // internal, you shouldn't have to change this.
/// ======================= END CONFIG ======================= ///
public static void main(String[] args)
throws Exception
{
if (VOLUME < 0F || VOLUME > 1F)
throw new NoiseException(
"\n\nVariable \"VOLUME\" < 0 or is > 1 which is not allowed for setting audio volume!\n\t-Choose a value between 0 and 1 where 1 is loudest and 0 is silence.\n[!] This error was caused by faulty configurations\n");
if (SPEED <= 0)
throw new NoiseException(
"\n\nVariable \"SPEED\" <= 0 which is attributed to audio inconsistencies and division by zero errors!\n\t- Choose a really small number or another positive number.\n[!] This error was caused by faulty configurations\n");
System.out.println(
"""
== SFX NoiseGenerator ==
Copyright (C) Jack Meng (AKA exoad) 2023. All rights reserved.
> Creates a configurable noise generator for personal enjoyment and/or educational purposes. Enjoy!
> What is color of noise? Check it out here: https://en.wikipedia.org/wiki/Colors_of_noise
[ Configuration ]
SAMPLERATE = %d [Hz] (0-INF)
DURATION = %d [s] (-INF-INF)
SPEED = %f [x] (0-1)
VOLUME = %f [dB] (0-1)
NOISE = %s
"""
.formatted(SAMPLE_RATE, DURATION, SPEED, VOLUME, TYPE.name()));
if (DURATION <= Integer.MIN_VALUE + 6900 || DURATION >= Integer.MAX_VALUE - 6900)
System.out.println(
"[!] You can set variable \"DURATION\" to a negative number like such as -1 for the generator to play INFINITELY!");
StringBuilder helpCommandMsg = new StringBuilder(
"Help menu\nType \"help\" to see this message\nUse commands like so: name arguments\n");
registerCommand("help", "Shows this messages", () -> print(helpCommandMsg.toString()));
registerCommand("set_volume", "Sets the volume on a range of 0 to 1 with 1 being MAX and 0 being MUTE.",
new Command() {
@Override public int getParameterCount()
{
return 1;
}
@Override public boolean execute(String[] parameters)
{
try
{
float volume = Float.parseFloat(parameters[0]);
print("Set volume to: " + volume);
volume(volume);
return true;
} catch (NumberFormatException e)
{
print("Invalid volume parameter: " + parameters[0]);
return false;
}
}
});
registerCommand("exit", "Exits the program.", () -> System.exit(0));
registerCommand("start", "Starts/resumes the current audio play", SfxNoiseGenerator::start);
registerCommand("stop", "Stops/pauses the current audio play", SfxNoiseGenerator::stop);
registerCommand("what_state", "Retrieves the state of the current audio pipeline.", SfxNoiseGenerator::state);
registerCommand("sfx_validate",
"Validates the current configuration and resets the audio pipeline with new information.\nThis command should rarely be used.",
() -> {
try
{
validate();
print("Validation complete.");
} catch (Exception e)
{
e.printStackTrace();
}
});
registerCommand("sfx_kill",
"Kills the pipeline by stopping playback ENTIRELY meaning a validation is required.\nThis command should rarely be used.",
SfxNoiseGenerator::kill);
registerCommand("sfx_gc", "Calls the Java Garbage Collector.", () -> {
double currentUsed = (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1000000d;
Runtime.getRuntime().gc();
double now = (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1000000d;
print("GCed. " + currentUsed + " MB => " + now + " MB (" + ((currentUsed - now) / currentUsed) * -100d + "%)");
});
registerCommand("sfx_config", "Prints the current configuration", () -> print(
"""
SAMPLERATE = %d [Hz] (0-INF)
DURATION = %d [s] (-INF-INF)
SPEED = %f [x] (0-1)
VOLUME = %f [dB] (0-1)
NOISE = %s
"""
.formatted(SAMPLE_RATE, DURATION, SPEED, VOLUME, TYPE.name())));
AtomicInteger commands_i = new AtomicInteger(0);
commandsDescription.forEach((key, val) -> {
helpCommandMsg.append("\n").append(commands_i.incrementAndGet())
.append(".\t").append(key).append("\n\t\tParameters: ")
.append(commands.get(key).getParameterCount()).append("\n\t\tDescription: ");
if (val.contains("\n"))
{
StringBuilder sb = new StringBuilder();
for (String line : val.split("\n"))
sb.append("\n\t\t ").append(line);
helpCommandMsg.append(sb.toString());
}
else helpCommandMsg.append("\n\t\t ").append(val);
});
System.out.println("[!] Type \"help\" for a list of commands.");
validate();
/*------------------------------------------------------------------------------------------------------ /
/ Runtime.getRuntime().gc(); // we are done with most of the init stuffs, so suggest the gc to clean up. /
/-------------------------------------------------------------------------------------------------------*/
ioWorker = new Thread(() -> {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
while (true)
{
try
{
String command = reader.readLine();
parseCommand(command);
} catch (IOException e)
{
e.printStackTrace();
}
}
});
ioWorker.start();
}
static Random rng = new Random();
static Thread audioWorker, ioWorker;
static SourceDataLine line;
static HashMap< String, Command > commands = new HashMap<>();
static HashMap< String, String > commandsDescription = new HashMap<>();
static void validate()
throws Exception
{
AudioFormat audioFormat = new AudioFormat(SAMPLE_RATE, BITS_SAMPLE_SIZE, 2, true, true);
DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
line = (SourceDataLine) AudioSystem.getLine(info);
line.open(audioFormat);
volume(VOLUME);
Consumer< ByteBuffer > noiseStuffs = TYPE == NoiseType.WHITE ? SfxNoiseGenerator::generateWhiteNoise
: SfxNoiseGenerator::generateBrownNoise;
if (audioWorker != null)
{
line.close();
audioWorker.interrupt();
}
audioWorker = new Thread(() -> generateAndPlayAudio(noiseStuffs, line));
audioWorker.start();
}
static void generateAndPlayAudio(Consumer< ByteBuffer > noiseStuffs, SourceDataLine line)
{
/*------------- /
/ line.start(); /
/--------------*/
System.out.println("[!] Playing for: " + (DURATION < 0 ? "INF" : DURATION) + "s");
int bufferSize = DURATION >= 0 ? (int) (SAMPLE_RATE * DURATION * 2) : 4096;
ByteBuffer buffer = ByteBuffer.allocate(bufferSize).order(ByteOrder.BIG_ENDIAN);
if (DURATION >= 0)
{
noiseStuffs.accept(buffer);
line.write(buffer.array(), 0, buffer.position());
}
else
{
while (true)
{
buffer.clear();
noiseStuffs.accept(buffer);
line.write(buffer.array(), 0, buffer.position());
}
}
line.drain();
line.stop();
line.close();
}
static void generateWhiteNoise(ByteBuffer buffer)
{
double speedMultiplier = 1.0 / SPEED;
while (buffer.hasRemaining())
{
short randomValue = (short) (speedMultiplier * rng.nextGaussian() * Short.MAX_VALUE);
buffer.putShort(randomValue);
}
}
static void generateBrownNoise(ByteBuffer buffer)
{
double speedMultiplier = 1.0 / SPEED;
double leftValue = 0.0;
double rightValue = 0.0;
while (buffer.hasRemaining())
{
double whiteNoiseLeft = speedMultiplier * (2 * Math.random() - 1);
double whiteNoiseRight = speedMultiplier * (2 * Math.random() - 1);
leftValue += whiteNoiseLeft;
rightValue += whiteNoiseRight;
short leftSample = (short) (leftValue * Short.MAX_VALUE);
short rightSample = (short) (rightValue * Short.MAX_VALUE);
buffer.putShort(leftSample);
buffer.putShort(rightSample);
}
}
static void volume(float volume)
{
if (line != null)
{
if (volume < 0 || volume > 1)
{
print("Volume must be a value between 0 and 1.");
return;
}
FloatControl volumeControl = (FloatControl) line.getControl(FloatControl.Type.MASTER_GAIN);
volumeControl
.setValue(volumeControl.getMinimum() + (volumeControl.getMaximum() - volumeControl.getMinimum()) * volume);
}
}
static void stop()
{
if (line != null)
{
line.stop();
print("Pipeline stopped playback");
}
}
static void start()
{
if (line != null)
{
line.start();
print("Pipeline resumed playback");
}
}
static void kill()
{
if (line != null)
{
line.stop();
line.drain();
line.close();
print("Pipeline killed, validation required for reuse.");
}
}
static void state()
{
if (line != null)
print("Active: " + (line.isActive() ? "YES" : "NO") + "\nPipeline frame pos.: "
+ line.getFramePosition() + "\nBuffer size: " + line.getBufferSize() + "\nBytes reachable: "
+ line.available()
+ "\nAudio Framerate: " + line.getFormat().getFrameRate());
}
static void registerCommand(String commandName, String description, Command command)
{
commands.put(commandName, command);
commandsDescription.put(commandName, description);
}
static void print(String content)
{
String lineChar = "%";
System.out.println(lineChar);
for (String r : content.split("\n"))
System.out.println(lineChar + "\t" + r);
System.out.println(lineChar);
}
static void registerCommand(String commandName, String description, Runnable e) // always implement Runnable (e) with
// a void function that
// takes constant values!
{
registerCommand(commandName, description, new Command() {
@Override public int getParameterCount()
{
return 0;
}
@Override public boolean execute(String[] parameters)
{
e.run();
return true;
}
});
}
static void parseCommand(String commandString)
{
String[] tokens = commandString.split(" ");
String commandName = tokens[0];
Command command = commands.get(commandName);
if (command == null)
{
print("Command not found: " + commandName + "\nUse command \"help\" for a list of commands");
return;
}
if (command.getParameterCount() > 0 && tokens.length - 1 != command.getParameterCount())
{
print(
"Invalid number of parameters for command: " + commandName + " | Expected: " + command.getParameterCount());
return;
}
if (command.getParameterCount() == 0)
{
command.execute((String[]) null);
return;
}
String[] parameters = new String[tokens.length - 1];
System.arraycopy(tokens, 1, parameters, 0, parameters.length);
boolean success = command.execute(parameters);
if (!success)
print("Failed to execute command: " + commandName);
}
abstract interface Command
{
int getParameterCount();
boolean execute(String[] parameters);
}
static class NoiseException extends RuntimeException
{
public NoiseException(String cause)
{
super(cause);
}
}
enum NoiseType {
WHITE, BROWN
}
}
| exoad/noise_gen | H.java |
207 | class Tree {
// Function to serialize a tree and return a list containing nodes of tree.
ArrayList<Integer> al;
public ArrayList<Integer> serialize(Node root) {
// code here
al = new ArrayList<Integer>();
fun(root);
return al;
}
void fun(Node root){
if(root==null){
al.add(-1);
return;
}
al.add(root.data);
fun(root.left);
fun(root.right);
}
// Function to deserialize a list and construct the tree.
int index;
public Node deSerialize(ArrayList<Integer> A) {
// code here
index=0;
return dfs(A);
}
Node dfs(ArrayList<Integer> A){
if(index==A.size()) return null;
int val = A.get(index);
index++;
if(val==-1) return null;
Node root = new Node(val);
root.left = dfs(A);
root.right = dfs(A);
return root;
}
};
| MateChaitanya/GFGPOTD | Serialize and deserialize a binary tree.java |
208 | package com.android.smarttouch.core;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.net.Uri;
import android.os.Handler;
import android.support.v4.content.LocalBroadcastManager;
import android.util.Log;
import android.widget.RemoteViews;
import com.android.open.Interface.EventHandlerInterface;
import com.android.open.event.StatusEvent;
import com.android.open.event.TaskRunEvent;
import com.android.open.preference.PreferenceUtil;
import com.android.open.util.Constants;
import com.android.open.util.DateFormat;
import com.android.open.util.RootUtil;
import com.android.smarttouch.util.STPopTip;
import com.android.open.util.SignalToolClass;
import com.android.open.util.ThreadUtil;
import com.android.smarttouch.R;
import com.android.smarttouch.ctrl.SmartTouch;
import com.android.smarttouch.home.HomeActivity;
import com.android.smarttouch.net.NetMsgRequestDeviceInfo;
import de.greenrobot.event.EventBus;
/**
*
*
* */
public class EventHandler {
private int mScriptRunCnt = 0;
private int mMailID = 0;
private String mMail = null;
private String mMailPasswd = null;
private String mAccount = null;
private String mPassword = null;
private String mScriptName = null;
private String mVecode = null;
private String mVecodeType = null;
private String mResolution = null;
private String mDexPath = null;
private StringBuffer mRandAccount;
private StringBuffer mRandChar;
private Service mService;
private LocalBroadcastManager mLocalBroadcastManager;
private BroadcastReceiver mBroadcastReceiver;
private ClipboardManager mClipboard = null;
private Notification mNotification;
private int mRunCnt;
private SmartTouch smarttouch;
private boolean mIsVPNConnect;
private boolean mIsErrorStop = false;
private boolean mIsQuit = false;
private Handler mHandler = new Handler() {
public void handleMessage(android.os.Message msg) {
switch (msg.what) {
case 1:
smarttouch.PausePlay();
break;
case 2:
smarttouch.ResumePlay();
break;
case 3:
mService.stopSelf();
mService.onDestroy();
onDestroy();
break;
case 4:
Log.e(Constants.TAG, "==========Error=========");
break;
case 5:
String filename = ((Intent) msg.obj).getStringExtra("filename");
doDeleteFile(filename);
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_deletefile));
break;
case 6:
Intent intent = (Intent) msg.obj;
setInitLoadScript(intent);
short nStatus = intent.getShortExtra("Status",
SmartTouch.RS_READY);
Log.e(Constants.TAG, "scriptLoad:" + mScriptName + " status="
+ nStatus);
smarttouch.setPlayScript(mScriptName);
smarttouch.setCurrentStaus(nStatus);
smarttouch.setPlayHotKey(SmartTouch.HK_VOL_DOWN);
smarttouch.setRecordHotKey(SmartTouch.HK_NO_VALUE);
String tip = String.format(
mService.getString(R.string.load_play_tip), "音量-");
STPopTip.getInstance(mService, tip, Color.RED, 3000).execute();
setLoadScriptDo();
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_wait_play));
break;
case 7:
setPlayScriptDo();
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_start_play));
break;
case 8:
intent = (Intent) msg.obj;
long ret = intent.getLongExtra("ret", 200);
smarttouch.StopPlay();
setStopScriptDo(ret);
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_stop_play));
break;
case 9:
// downloadurl
intent = (Intent) msg.obj;
String url = intent.getStringExtra("url");
doDownloadUrl(url);
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_download));
break;
case 10:
// openurl
intent = (Intent) msg.obj;
url = intent.getStringExtra("url");
doOpenUlr(url);
break;
case 11:
// switchvpn and device
intent = (Intent) msg.obj;
int action = intent.getIntExtra("action", 3);
String param = intent.getStringExtra("param");
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_switch));
smarttouch.PausePlay();
if (action == 1) {
doSwitchVPN();
} else if (action == 2) {
doSwitchDevice(param);
} else if (action == 3) {
doSwitchDevice(param);
doSwitchVPN();
}
smarttouch.ResumePlay();
break;
case 12:
mIsErrorStop = true;
break;
case 13:
intent = (Intent) msg.obj;
String path = intent.getStringExtra("ScriptName");
String des = intent.getStringExtra("Description");
nStatus = intent.getShortExtra("Status", SmartTouch.RS_READY);
smarttouch.setCurrentStaus(nStatus);
smarttouch.setRecordScript(path);
smarttouch.setInstruction(des);
smarttouch.setPlayHotKey(SmartTouch.HK_NO_VALUE);
smarttouch.setRecordHotKey(SmartTouch.HK_VOL_UP);
String tipString = String.format(
mService.getString(R.string.load_record_tip), "音量+");
STPopTip.getInstance(mService, tipString, Color.RED, 3000)
.execute();
break;
case 14:
smarttouch.StartRecord();
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_start_record));
break;
case 15:
smarttouch.StopRecord();
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_stop_record));
break;
case 16:
smarttouch.QuitPlay();
break;
case 17:
intent = (Intent) msg.obj;// Business
Log.e(Constants.TAG, "======" + intent.getStringExtra("cmd")
+ "==" + intent.getStringExtra("param") + "====");
break;
default:
break;
}
};
};
public EventHandler(Service service) {
mService = service;
mRunCnt = 0;
mIsVPNConnect = false;
Init(service);
}
public void onDestroy() {
mService.stopForeground(true);
smarttouch.CloseLowLevelServer();
mLocalBroadcastManager.unregisterReceiver(mBroadcastReceiver);
mService.unregisterReceiver(mBroadcastReceiver);
// try {
// mService.unregisterReceiver(mBroadcastReceiver);
// } catch (Exception e) {
// // TODO: handle exception
// e.printStackTrace();
// }
Log.e(Constants.TAG, "====EventHandler onDestroy===");
RootUtil.execRootCmd("am force-stop com.android.smarttouch");
}
public void onStartCommand(Intent intent, int flags, int startId) {
setupNotification(mService.getString(R.string.current_status)
+ mService.getString(R.string.status_wait));
}
private void InitSmartTouch() {
smarttouch = SmartTouch.getInstance(mService);
smarttouch.OpenLowLevelServer();
}
private void Init(Service service) {
mLocalBroadcastManager = LocalBroadcastManager
.getInstance(SignalToolClass.mActivity.getApplicationContext());
// mLocalBroadcastManager = LocalBroadcastManager.getInstance(service);
InitSmartTouch();
mBroadcastReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
EventHandlerInterface.getInstance(mHandler, mService)
.doRecevice(context, intent);
}
};
IntentFilter intentFilter = new IntentFilter();
EventHandlerInterface.getInstance(mHandler, mService).addAction(
intentFilter);
mLocalBroadcastManager.registerReceiver(mBroadcastReceiver,
intentFilter);
mService.registerReceiver(mBroadcastReceiver, intentFilter);
}
// Notification
private void setupNotification(String text) {
Intent iTab = new Intent(mService, HomeActivity.class);
iTab.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
| Intent.FLAG_ACTIVITY_SINGLE_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(mService, 0,
iTab, 0);
RemoteViews contentView = new RemoteViews(mService.getPackageName(),
R.layout.notification_view);
contentView.setTextViewText(R.id.notification_title,
mService.getString(R.string.app_name));
contentView.setTextViewText(R.id.notification_text, text);
contentView.setTextViewText(R.id.notification_time,
DateFormat.getDateEN());
mNotification = new Notification();
mNotification.contentView = contentView;
mNotification.when = System.currentTimeMillis();
mNotification.tickerText = text;
mNotification.icon = R.drawable.ic_launcher_icon;
mNotification.flags = Notification.FLAG_ONGOING_EVENT
| Notification.FLAG_NO_CLEAR;
mNotification.contentIntent = pendingIntent;
mNotification.flags |= Notification.FLAG_NO_CLEAR;
mService.startForeground(9999, mNotification);
}
private void doDeleteFile(String filename) {
// TODO Auto-generated method stub
smarttouch.PausePlay();
try {
if (0 <= filename.indexOf("/data/data")) {
// 修改权限
String[] lists = filename.split("/");
RootUtil.execRootCmd("chmod -R 777 /data/data" + lists[3] + "/");
}
RootUtil.execRootCmd("rm -rf " + filename);
} catch (Exception e) {
// TODO: handle exception
Log.e(Constants.TAG, "====doDeleteFile Error======");
e.printStackTrace();
}
smarttouch.ResumePlay();
}
private void doDownloadUrl(String url) {
Log.e(Constants.TAG, "downloadurl..");
}
private void doOpenUlr(String url) {
Intent intent = new Intent();
intent.setAction("android.intent.action.VIEW");
Uri CONTENT_URI_BROWSERS = Uri.parse(url);
intent.setData(CONTENT_URI_BROWSERS);
intent.setClassName("com.android.browser",
"com.android.browser.BrowserActivity");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mService.getApplicationContext().startActivity(intent);
}
// 切换VPN
public void doSwitchVPN() {
Log.e(Constants.TAG, "=======doSwitchVPN=========");
}
public void doSwitchDevice(String resolution) {
mResolution = (resolution == null || resolution.isEmpty()) ? "720*1080"
: resolution;
smarttouch.PausePlay();
ThreadUtil.execute(new Runnable() {
@Override
public void run() {
// TODO Auto-generated method stub
try {
NetMsgRequestDeviceInfo deviceInfo = new NetMsgRequestDeviceInfo(
mResolution);
if (deviceInfo.sendRequest()) {
String imei = PreferenceUtil.getDefaultPreference(
mService).getIMEI();
String imsi = PreferenceUtil.getDefaultPreference(
mService).getIMSI();
String iccid = PreferenceUtil.getDefaultPreference(
mService).getICCID();
String macAddress = PreferenceUtil
.getDefaultPreference(mService).getMacAddress();
String model = PreferenceUtil.getDefaultPreference(
mService).getModel();
String device = PreferenceUtil.getDefaultPreference(
mService).getDevice();
setDeviceInfo(Constants.IMEI_FILE, imei);
setDeviceInfo(Constants.IMSI_FILE, imsi);
setDeviceInfo(Constants.ICCID_FILE, iccid);
setDeviceInfo(Constants.MAC_ADDRESS_FILE, macAddress);
setDeviceInfo(Constants.MODEL_FILE, model);
setDeviceInfo(Constants.DEVICE_FILE, device);
}
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
Log.e(Constants.TAG, "=====SetDevice Thread Error========");
} finally {
smarttouch.ResumePlay();
}
}
});
}
private void setLoadScriptDo() {
PreferenceUtil.getDefaultPreference(mService).setLastScriptName(
mScriptName);
}
private void setInitLoadScript(Intent intent) {
mScriptName = intent.getStringExtra("ScriptName");
}
private void setPlayScriptDo() {
doPlayScript();
}
private void doPlayScript() {
Log.e(Constants.TAG, "======doPlayScript play=======");
smarttouch.StartPlay();
}
private void setStopScriptDo(long ret) {
Log.e(Constants.TAG, "=======脚本停止播放======");
// 接受服务器请求,直接停止的任务
if (ret == 500) {
return;
}
// 服务器分发的任务,提交结果
if (PreferenceUtil.getDefaultPreference(mService).getAutoTask()
&& SignalToolClass.IS_SERVER_TASK) {
if (mIsErrorStop) {
EventBus.getDefault().post(
new StatusEvent(StatusEvent.STATUS_STOP, String
.valueOf(TaskRunEvent.RESULT_FAILED)));
} else {
EventBus.getDefault().post(
new StatusEvent(StatusEvent.STATUS_STOP, String
.valueOf(TaskRunEvent.RESULT_SUCCESS)));
}
} else {
Log.e(Constants.TAG, "========非服务器分发任务========");
}
if (ret == 100) {
mScriptRunCnt++;
} else if (ret == 200) {// 手动停止脚本
PreferenceUtil.getDefaultPreference(mService).setAutoTask(false);
}
}
private void setDeviceInfo(String key, String info) {
String cmd = "echo '" + info + "'>" + Constants.DEVICEINFO_PATH + key;
RootUtil.execRootCmd(cmd);
}
}
| zraul/coderating | 1.java |
209 | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class AG {
ArrayList<Process> readyList;
ArrayList<Process> dieList;
ArrayList<Process> waitList;
HashMap<Integer, Integer> processesBurstTime;
HashMap<Integer, Integer> waitingTimes;
HashMap<Integer, Integer> turnaroundTimes;
int currentProcessIndex;
double avgWaitingTime;
double avgTurnaroundTime;
public AG(ArrayList<Process> processes) {
this.processesBurstTime = new HashMap<>();
readyList = new ArrayList<>();
dieList = new ArrayList<>();
waitList = new ArrayList<>();
waitingTimes = new HashMap<>();
turnaroundTimes = new HashMap<>();
waitList.addAll(processes);
for (Process process : processes)
processesBurstTime.put(process.pid, process.burstTime);
avgWaitingTime = 0;
avgTurnaroundTime = 0;
}
public void checkArrivals(int time) {
for (Process process : List.copyOf(waitList)) {
if (process.arrivalTime == time) {
process.agFactor = agFactor(process);
readyList.add(process);
waitList.remove(process);
}
}
}
private int rand() {
return (int) ((Math.random() * 100) % 20);
}
private int agFactor(Process process) {
int rf = rand();
int factor = 10;
if (rf < 10)
factor = rf;
else if (rf == 10)
factor = process.priority;
return (int) factor + process.arrivalTime + process.burstTime;
}
private int getIndexOfHighestAGFactor() {
Process highestAG = readyList.get(0);
for (Process process : readyList) {
if (process.agFactor > highestAG.agFactor)
highestAG = process;
}
return readyList.indexOf(highestAG);
}
private int calcMeanQuantum() {
int sum = 0;
for (Process process : readyList) {
sum += process.quantum;
}
return sum / readyList.size();
}
private void updateQuantum(int index, int quantum) {
Process temp = readyList.get(index);
temp.quantum = quantum;
readyList.set(index, temp);
}
private void updateBurstTime(int index, int burstTime) {
Process temp = readyList.get(index);
temp.burstTime = burstTime;
readyList.set(index, temp);
}
private void putProcessInEndOfReadyList(Process process) {
readyList.remove(process);
readyList.add(process);
}
private void printProcessStatistics() {
System.out.println("-------");
dieList.sort((p1, p2) -> p1.pid - p2.pid);
for (Process process : dieList) {
String processOutput = "Executing process: " + process.pid;
processOutput += " | Arrival Time: " + process.arrivalTime;
processOutput += " | Burst Time: " + processesBurstTime.get(process.pid);
processOutput += " | Priority: " + process.priority;
processOutput += " | Waiting Time: " + waitingTimes.get(process.pid);
processOutput += " | Turnaround Time: " + turnaroundTimes.get(process.pid);
System.out.println(processOutput);
}
System.out.println("-------");
System.out.println("Average Waiting Time = " + avgWaitingTime);
System.out.println("Average Turnaround Time = " + avgTurnaroundTime);
}
private void calcTurnaroundAndWaitingAvgTime() {
for (Process process : dieList) {
avgTurnaroundTime += turnaroundTimes.get(process.pid);
avgWaitingTime += waitingTimes.get(process.pid);
}
avgTurnaroundTime /= dieList.size();
avgWaitingTime /= dieList.size();
}
public void run() {
int time = 0;
int processQuantumCounter = 0;
int currentProcessIndex = 0;
while (readyList.size() > 0 || waitList.size() > 0) {
checkArrivals(time);
time++;
if (readyList.isEmpty()) {
System.out.println("At t = " + (time - 1) + " CPU IDLE");
continue;
} else {
System.out
.println("At t = " + (time - 1) + " - Process ID = " + readyList.get(currentProcessIndex).pid);
}
processQuantumCounter++;
int highestAGIndex = getIndexOfHighestAGFactor();
updateBurstTime(currentProcessIndex, readyList.get(currentProcessIndex).burstTime - 1);
Process currentProcess = readyList.get(currentProcessIndex);
// First the non-preemptive part
// if quantum is over and process is not done
if (currentProcess.burstTime > 0 && currentProcess.quantum - processQuantumCounter == 0) {
int newQuantum = currentProcess.quantum + (int) Math.ceil(0.10 * calcMeanQuantum());
updateQuantum(currentProcessIndex, newQuantum);
putProcessInEndOfReadyList(currentProcess);
currentProcessIndex = 0;
processQuantumCounter = 0;
}
// if process is done
else if (currentProcess.burstTime == 0) {
updateQuantum(currentProcessIndex, 0);
readyList.remove(currentProcessIndex);
dieList.add(currentProcess);
turnaroundTimes.put(currentProcess.pid, time - currentProcess.arrivalTime);
waitingTimes.put(currentProcess.pid,
turnaroundTimes.get(currentProcess.pid) - processesBurstTime.get(currentProcess.pid));
currentProcessIndex = 0;
processQuantumCounter = 0;
}
// Now the preemptive part
else if (processQuantumCounter >= Math.ceil((double) currentProcess.quantum / 2)) {
// Preemptive
if (currentProcess.agFactor < readyList.get(highestAGIndex).agFactor
&& currentProcessIndex != highestAGIndex) {
// Give the current process the remaining quantum time of itself
int newQuantum = currentProcess.quantum - processQuantumCounter;
newQuantum += currentProcess.quantum;
updateQuantum(currentProcessIndex, newQuantum);
currentProcessIndex = highestAGIndex;
processQuantumCounter = 0;
}
}
}
calcTurnaroundAndWaitingAvgTime();
printProcessStatistics();
}
}
| KZiad/CPU-Scheduling-Simulator | AG.java |
210 | class Solution {
public int rangeBitwiseAnd(int m, int n) {
int shift = 0 ;
while ( m < n ) {
m >>= 1 ;
n >>= 1 ;
shift++ ;
}
return n << shift ;
}
}
| AnjaliSharma1234/30Days-Leetcoding-Challenge | 23.java |
211 | public class Solution {
public int candy(int[] ratings) {
int n = ratings.length; // Get the number of children
int[] candies = new int[n]; // Initialize an array to store the number of candies for each child
// First pass: Check ratings from left to right
for (int i = 1; i < n; i++) {
if (ratings[i - 1] < ratings[i] && candies[i - 1] >= candies[i]) {
// If the current child has a higher rating and fewer or equal candies than the previous child,
// give them one more candy than the previous child
candies[i] = candies[i - 1] + 1;
}
}
// Second pass: Check ratings from right to left
for (int i = n - 2; i >= 0; i--) {
if (ratings[i + 1] < ratings[i] && candies[i + 1] >= candies[i]) {
// If the current child has a higher rating and fewer or equal candies than the next child,
// give them one more candy than the next child
candies[i] = candies[i + 1] + 1;
}
}
int totalCandies = 0;
// Calculate the total number of candies needed
for (int i = 0; i < n; i++) {
totalCandies += candies[i] + 1;
}
return totalCandies;
}
}
| harsh-agrwal/leetcodeStreak | Candy.java |
213 | package com.zamani.javatrainings.game2;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
/**
* @author azamani
*
*/
public class UI {
class Card {
private String type;
private String value;
private boolean shown;
public Card(String type, String value, boolean shown) {
this.type = type;
this.value = value;
this.shown = shown;
}
public int getIntValue() {
return Integer.parseInt(value);
}
public boolean isShown() {
return shown;
}
public void setShown(boolean shown) {
this.shown = shown;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
private static final String SIOUFA = "s";
private static final String ZRAWTE = "z";
private static final String TBO9A = "t";
private static final String DHAB = "d";
private static final String RIGHT_TABULATION = "\t\t\t\t\t\t\t\t\t\t";
private static Scanner scanner = new Scanner(System.in);
private static List<Card> cpuCards = new ArrayList<>();
private static List<Card> boardCards = new ArrayList<>();
private static List<Card> distributedCards = new ArrayList<>();
private static List<Card> playerCards = new ArrayList<>();
private static boolean end;
private static int playerScore;
private static int cpuScore;
private static UI ui;
static {
ui = new UI();
distributedCards.add(ui.new Card(DHAB, "1", false));
distributedCards.add(ui.new Card(DHAB, "2", false));
distributedCards.add(ui.new Card(DHAB, "3", false));
distributedCards.add(ui.new Card(DHAB, "4", false));
distributedCards.add(ui.new Card(DHAB, "5", false));
distributedCards.add(ui.new Card(DHAB, "6", false));
distributedCards.add(ui.new Card(DHAB, "7", false));
distributedCards.add(ui.new Card(DHAB, "10", false));
distributedCards.add(ui.new Card(DHAB, "11", false));
distributedCards.add(ui.new Card(DHAB, "12", false));
distributedCards.add(ui.new Card(TBO9A, "1", false));
distributedCards.add(ui.new Card(TBO9A, "2", false));
distributedCards.add(ui.new Card(TBO9A, "3", false));
distributedCards.add(ui.new Card(TBO9A, "4", false));
distributedCards.add(ui.new Card(TBO9A, "5", false));
distributedCards.add(ui.new Card(TBO9A, "6", false));
distributedCards.add(ui.new Card(TBO9A, "7", false));
distributedCards.add(ui.new Card(TBO9A, "10", false));
distributedCards.add(ui.new Card(TBO9A, "11", false));
distributedCards.add(ui.new Card(TBO9A, "12", false));
distributedCards.add(ui.new Card(ZRAWTE, "1", false));
distributedCards.add(ui.new Card(ZRAWTE, "2", false));
distributedCards.add(ui.new Card(ZRAWTE, "3", false));
distributedCards.add(ui.new Card(ZRAWTE, "4", false));
distributedCards.add(ui.new Card(ZRAWTE, "5", false));
distributedCards.add(ui.new Card(ZRAWTE, "6", false));
distributedCards.add(ui.new Card(ZRAWTE, "7", false));
distributedCards.add(ui.new Card(ZRAWTE, "10", false));
distributedCards.add(ui.new Card(ZRAWTE, "11", false));
distributedCards.add(ui.new Card(ZRAWTE, "12", false));
distributedCards.add(ui.new Card(SIOUFA, "1", false));
distributedCards.add(ui.new Card(SIOUFA, "2", false));
distributedCards.add(ui.new Card(SIOUFA, "3", false));
distributedCards.add(ui.new Card(SIOUFA, "4", false));
distributedCards.add(ui.new Card(SIOUFA, "5", false));
distributedCards.add(ui.new Card(SIOUFA, "6", false));
distributedCards.add(ui.new Card(SIOUFA, "7", false));
distributedCards.add(ui.new Card(SIOUFA, "10", false));
distributedCards.add(ui.new Card(SIOUFA, "11", false));
distributedCards.add(ui.new Card(SIOUFA, "12", false));
}
private static void distribute() {
if (!distributedCards.isEmpty()) {
Collections.shuffle(distributedCards);
if (distributedCards.size() <= 4) {
System.out.println(RIGHT_TABULATION + "Distributing 2 cards...");
distributeMe(2);
distributeCPU(2);
} else {
System.out.println(RIGHT_TABULATION + "Distributing 4 cards...");
distributeMe(4);
distributeCPU(4);
}
} else {
System.out.println("No more cards !");
}
}
private static void distributeCPU(int count) {
int i = 0;
for (Card card : distributedCards) {
if (i == count) {
break;
}
cpuCards.add(card);
i++;
}
for (Card card : cpuCards) {
distributedCards.remove(card);
}
}
private static void distributeMe(int count) {
int i = 0;
for (Card card : distributedCards) {
if (i == count) {
break;
}
card.setShown(true);
playerCards.add(card);
i++;
}
for (Card card : playerCards) {
distributedCards.remove(card);
}
}
private static void displayTapis() {
display(boardCards, "Board");
}
private static void displayCPUHand() {
display(cpuCards, "CPU Hand");
}
private static void displayPlayerHand() {
display(playerCards, "Player Hand");
}
private static void display(List<Card> cards, String message) {
System.out.println("----------" + message + "---------");
if (cards.isEmpty()) {
System.out.println(RIGHT_TABULATION + "No more cards for " + message);
} else {
int i = 0;
for (Card card : cards) {
if (card != null) {
if (card.isShown()) {
System.out.print("[" + card.getValue() + " " + card.getType() + "]\t \t");
} else {
System.out.print("[**]\t \t");
}
if (i == cards.size() - 1) {
System.out.println("\n");
}
}
i++;
}
}
}
private static void cpuPlay() {
System.out.println(RIGHT_TABULATION + "CPU is playing ...");
Collections.shuffle(cpuCards);
if (!cpuCards.isEmpty()) {
Card selectedCard = cpuCards.get(0);
Card boardCard = existsInBoard(selectedCard);
selectedCard.setShown(true);
System.out.println(RIGHT_TABULATION + "CPU serve " + selectedCard.getValue() + " " + selectedCard.getType());
if (existsInBoard(selectedCard) != null) {
boardCards.remove(boardCard);
if (boardCards.isEmpty()) {
System.out.println(RIGHT_TABULATION + "Missa for CPU +2");
cpuScore += 2;
} else {
cpuScore++;
System.out.println(RIGHT_TABULATION + " +1 [" + selectedCard.getIntValue() + "] for cpu");
}
checkSequencedCards(selectedCard);
} else {
boardCards.add(selectedCard);
}
cpuCards.remove(0);
}
}
private static void playerPlay() {
displayPlayerHand();
String playerChoice = scanner.nextLine();
Card selectedCard = getPlayedCard(playerChoice);
if (selectedCard != null) {
Card boardCard = existsInBoard(selectedCard);
if (existsInBoard(selectedCard) != null) {
boardCards.remove(boardCard);
if (boardCards.isEmpty()) {
System.out.println(RIGHT_TABULATION + "Missa for player");
playerScore += 2;
} else {
System.out.println(RIGHT_TABULATION + " +1 [" + selectedCard.getIntValue() + "]");
playerScore++;
}
checkSequencedCards(selectedCard);
} else {
boardCards.add(selectedCard);
}
playerCards.remove(selectedCard);
displayPlayerHand();
} else {
playerPlay();
}
}
private static void checkSequencedCards(Card selectedCard) {
List<Card> seqCards = new ArrayList<>();
List<Integer> seqInt = new ArrayList<>();
List<Card> removableSeq = new ArrayList<>();
for (Card card : boardCards) {
seqInt.add(card.getIntValue());
}
playSeqNumbers(seqInt, selectedCard.getIntValue(), seqCards);
for (Card card : seqCards) {
for (Card current : boardCards) {
if (current.getValue().equals(card.getValue()) && !checkDuplicated(card.getIntValue(),removableSeq)) {
System.out.println(RIGHT_TABULATION + " +1 [" + card.getValue() + "]");
removableSeq.add(current);
playerScore++;
}
}
}
pick(removableSeq);
}
private static boolean checkDuplicated(int value, List<Card> removableSeq) {
boolean exists = false;
for (Card card : removableSeq) {
if( card.getIntValue() == value) {
exists = true;
}
}
return exists;
}
private static void pick(List<Card> values) {
for (Card card : values) {
boardCards.remove(card);
}
}
private static Card existsInBoard(Card card) {
Card existingCard = null;
for (Card boardCard : boardCards) {
if (card.getValue().equals(boardCard.getValue())) {
existingCard = boardCard;
}
}
return existingCard;
}
private static Card getPlayedCard(String playerChoice) {
Card selectedCard = null;
for (Card card : playerCards) {
String[] playStrArray = playerChoice.split(" ");
if (playStrArray.length == 2) {
if (card.getValue().equals(playStrArray[0]) && card.getType().equals(playStrArray[1])) {
selectedCard = card;
System.out.println(RIGHT_TABULATION + "Player 1 serve " + selectedCard.getValue() + " " + selectedCard.getType());
}
} else {
System.out.println("Wrong value");
}
}
return selectedCard;
}
public static void main(String[] args) {
startGame();
}
public static int playSeqNumbers(List<Integer> list, int number, List<Card> seqCards) {
if (list.contains(number + 1) || (number == 7 && list.contains(number + 3))) {
if (number == 7) {
seqCards.add(ui.new Card("?", String.valueOf((number + 3)), false));
return playSeqNumbers(list, number + 3, seqCards);
} else {
seqCards.add(ui.new Card("?", String.valueOf((number + 1)), false));
return playSeqNumbers(list, number + 1, seqCards);
}
} else {
return number;
}
}
private static void startGame() {
System.out.println(RIGHT_TABULATION + "###################### RONDA #########################");
System.out.println(RIGHT_TABULATION + "s : Sioufa | z : Zrawte | t : Tba9 | d : Dhab");
System.out.println(RIGHT_TABULATION + "######################################################");
distribute();
distributeBoard();
displayCPUHand();
displayTapis();
doGameLoop();
System.out.println(RIGHT_TABULATION + "Score : You " + playerScore + " - CPU : " + cpuScore);
if (playerScore > cpuScore) {
System.out.println("########################################### You win ###########################################");
} else if (playerScore < cpuScore) {
System.out.println("CPU win");
} else {
System.out.println("Deuce");
}
}
private static void doGameLoop() {
int i = 0;
while (!end) {
if (boardCards.isEmpty()) {
distributeBoard();
}
if (i % 2 == 0) {
playerPlay();
} else {
cpuPlay();
displayCPUHand();
displayTapis();
}
if (playerCards.isEmpty() && cpuCards.isEmpty() && !distributedCards.isEmpty()) {
distribute();
}
if (cpuCards.isEmpty() && playerCards.isEmpty() && distributedCards.isEmpty()) {
end = true;
}
i++;
}
}
private static void distributeBoard() {
if (!distributedCards.isEmpty()) {
int i = 0;
for (Card card : distributedCards) {
if (i == 4) {
break;
}
card.setShown(true);
boardCards.add(card);
i++;
}
for (Card card : boardCards) {
distributedCards.remove(card);
}
} else {
System.out.println("No more cards !");
}
}
}
| AmineZAMANI/Ronda | UI.java |
214 | public class AI implements Player{
private boolean deckHasCards = true;
private Hand hand;
public static void main(String[] args) {
}
public AI(Hand hand){
this.hand = hand;
}
public Deck doTurn(Deck gameDeck, Player opponent){
// check if there are any pairs or triples
// in hand
return gameDeck;
}
public boolean hasCards(){
return true;
}
/**
*Asks the other player for a card
*/
public boolean makeCardRequest(Player opponent){
return true;
}
public void endTurn(){
}
/**
* checks our hand to see if there are any pairs/sets
* @return the rank of the set
* should be made to identify differences between pairs and triples
* not there yet
*/
public int hasSet(){
// get our cards
Card[] cards = hand.getCards();
// number of cards to iterate over
int numCards = cards.length;
// array of ranks
int[] rank = new int[numCards];
int[] setPos = new int[numCards];
for(int ii=0; ii<numCards; ii++){
// for each of our cards, get the current card's rank
int currentRank = cards[ii].getRank();
for(int jj=0; jj<ii; jj++){
// for each card, check all previous cards for a set
if (rank[jj] == currentRank){
// if there is a set get the positions of the set.
setPos[ii] = jj;
return cards[ii].getRank();
}
}
}
return -1;
}
} | JoshuaDickerson/softwareEngineeringProject1 | AI.java |
215 | // https://www.hackerrank.com/challenges/java-covariance/problem
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Flower {
String whatsYourName() {
return "I have many names and types.";
}
}
class Jasmine extends Flower {
@Override
String whatsYourName() {
return "Jasmine";
}
}
class Lily extends Flower {
@Override
String whatsYourName() {
return "Lily";
}
}
class Lotus extends Flower {
@Override
String whatsYourName() {
return "Lotus";
}
}
class Region {
Flower yourNationalFlower() {
return new Flower();
}
}
class WestBengal extends Region {
@Override
Jasmine yourNationalFlower() {
return new Jasmine();
}
}
class Karnataka extends Region {
@Override
Lotus yourNationalFlower() {
return new Lotus();
}
}
class AndhraPradesh extends Region {
@Override
Lily yourNationalFlower() {
return new Lily();
}
}
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine().trim();
Region region = null;
switch (s) {
case "WestBengal":
region = new WestBengal();
break;
case "AndhraPradesh":
region = new AndhraPradesh();
break;
}
Flower flower = region.yourNationalFlower();
System.out.println(flower.whatsYourName());
}
}
| haytastan/Hackerrank_Java | 22.java |
216 | import java.util.Random;
import java.util.Scanner;
public class a {
private static final int MAX_ROOMS = 20;
private static final int TREASURE_CHANCE = 20;
private static final int MONSTER_CHANCE = 30;
private static final int EXIT_CHANCE = 5;
private static Scanner scanner = new Scanner(System.in);
private static Random random = new Random();
private static int currentRoom = 1;
private static boolean hasKey = false;
private static boolean gameOver = false;
public static void main(String[] args) {
System.out.println("Welcome to the Dungeon Adventure!");
System.out.println("You find yourself trapped in a dungeon. Your goal is to find the key and escape.");
while (!gameOver) {
displayRoomInfo();
int choice = getUserChoice();
switch (choice) {
case 1:
move("North");
break;
case 2:
move("South");
break;
case 3:
move("East");
break;
case 4:
move("West");
break;
case 5:
searchRoom();
break;
case 6:
if (hasKey && currentRoom == MAX_ROOMS) {
System.out.println("Congratulations! You've escaped the dungeon!");
gameOver = true;
} else {
System.out.println("You need to find the key and reach the exit room to escape.");
}
break;
default:
System.out.println("Invalid choice. Please enter a number between 1 and 6.");
}
}
scanner.close();
}
private static void displayRoomInfo() {
System.out.println("\nYou are in room " + currentRoom);
System.out.println("Choose an action:");
System.out.println("1. Move North");
System.out.println("2. Move South");
System.out.println("3. Move East");
System.out.println("4. Move West");
System.out.println("5. Search the room");
System.out.println("6. Attempt to escape (if you have the key and reached the exit room)");
}
private static int getUserChoice() {
System.out.print("Enter your choice: ");
return scanner.nextInt();
}
private static void move(String direction) {
int nextRoom = getNextRoom(direction);
if (nextRoom == -1) {
System.out.println("You can't move " + direction + " from here.");
} else {
System.out.println("You move " + direction + " to room " + nextRoom + ".");
currentRoom = nextRoom;
handleRoomEvent();
}
}
private static int getNextRoom(String direction) {
switch (direction) {
case "North":
return currentRoom > 5 ? currentRoom - 5 : -1;
case "South":
return currentRoom <= MAX_ROOMS - 5 ? currentRoom + 5 : -1;
case "East":
return currentRoom % 5 != 0 ? currentRoom + 1 : -1;
case "West":
return (currentRoom - 1) % 5 != 0 ? currentRoom - 1 : -1;
default:
return -1;
}
}
private static void searchRoom() {
System.out.println("You search the room...");
int randomNum = random.nextInt(100) + 1;
if (randomNum <= TREASURE_CHANCE) {
System.out.println("You found a treasure!");
} else if (randomNum <= TREASURE_CHANCE + MONSTER_CHANCE) {
System.out.println("Oh no! You encountered a monster!");
if (hasKey) {
System.out.println("Luckily, you had the key and managed to escape from the monster.");
} else {
System.out.println("The monster defeated you. Game over!");
gameOver = true;
}
} else if (randomNum <= TREASURE_CHANCE + MONSTER_CHANCE + EXIT_CHANCE && currentRoom == MAX_ROOMS) {
System.out.println("You found the exit! You need a key to escape.");
} else {
System.out.println("You didn't find anything interesting.");
}
}
private static void handleRoomEvent() {
int randomNum = random.nextInt(100) + 1;
if (randomNum <= TREASURE_CHANCE) {
System.out.println("You found a treasure in this room!");
} else if (randomNum <= TREASURE_CHANCE + MONSTER_CHANCE) {
System.out.println("Oh no! A monster appears in this room!");
if (hasKey) {
System.out.println("Luckily, you had the key and managed to escape from the monster.");
} else {
System.out.println("The monster defeated you. Game over!");
gameOver = true;
}
} else if (randomNum <= TREASURE_CHANCE + MONSTER_CHANCE + EXIT_CHANCE && currentRoom == MAX_ROOMS) {
System.out.println("You've found the exit! You need a key to escape.");
}
// If the player found the key in this room
if (!hasKey && randomNum <= TREASURE_CHANCE && currentRoom != MAX_ROOMS) {
System.out.println("You found a key in this room!");
hasKey = true;
}
}
}
| ankitsubhamjyoti2005/spring-boot | a.java |
217 | public class Solution {
public int rangeBitwiseAnd(int m, int n) {
int r = Integer.MAX_VALUE;
while ((m & r) != (n & r))
r = r << 1;
return n & r;
}
}
| yashsharma8433/Leetcode-Daily-Problems | d.java |
218 | package Edureka;
import java.util.Scanner;
public class nprandncr {
//calculating a factorial of a number
public static int fact(int num)
{
int fact=1, i;
for(i=1; i<=num; i++)
{
fact = fact*i;
}
return fact;
}
public static void main(String args[])
{
int n, r;
Scanner scan = new Scanner(System.in);
System.out.print("Enter Value of n : ");
n = scan.nextInt();
System.out.print("Enter Value of r : ");
r = scan.nextInt();
// NCR and NPR of a number
System.out.print("NCR = " +(fact(n)/(fact(n-r)*fact(r))));
System.out.print("nNPR = " +(fact(n)/(fact(n-r))));
}
}
| Ranu0829/Hacktoberfest-2022 | t.java |
219 | import java.io.*;
class CopyCommand{
public static void main(String[] args) {
FileInputStream input;
FileOutputStream output;
try{
input = new FileInputStream("source");
output = new FileOutputStream("Destination");
while(input.available()>0){
output.write(input.read());
}
}
catch(FileNotFoundException obj){
System.out.println("File Not Found!");
}
catch(IOException obj){
System.out.println("Input/Output Exception!");
}
}
}
| Deepthi2904/Deepthi2904 | Week9.1 |
222 | class Solution {
public List<List<Integer>> fourSum(int[] nums, int target) {
//FBIP 2R
//backtracking approach fucked up at 219/282 test cases cause TLE which brute force complexity is O(n^4)
//solution from disscusion with binary search and 2-sum with time complexity O(n^3)
//one extra loop and rest like 3sum
List<List<Integer>> result = new ArrayList();
if (nums == null || nums.length < 4) return result;
Arrays.sort(nums);
int n = nums.length;
for (int i = 0; i < n - 3; i++){
if (nums[i] + nums[i+1] + nums[i+2] + nums[i+3] > target) break; //first candidate too large
if (nums[i] + nums[n-1] + nums[n-2] + nums[n-3] < target) continue; //first candidate too small
if (i > 0 && nums[i] == nums[i-1]) continue; //prevent duplicate
for (int j = i + 1; j < n - 2; j++){
if (nums[i] + nums[j] + nums[j+1] + nums[j+2] > target) break; //second candidate too large
if (nums[i] + nums[j] + nums[n-1] + nums[n-2] < target) continue; //second candidate too small
if (j > i + 1 && nums[j] == nums[j-1]) continue; //prevent duplicate
int l = j + 1, r = n - 1;
while (l < r){
int sum = nums[i] + nums[j] + nums[l] + nums[r];
if (sum == target){
result.add(Arrays.asList(nums[i], nums[j], nums[l], nums[r]));
while (l < r && nums[l] == nums[l+1]) l++;
while (l < r && nums[r] == nums[r-1]) r--;
l++;
r--;
}
else if (sum < target) l++;
else r--;
}
}
}
return result;
}
} | EdwardHXu/FBIP-LC | 18.java |
223 | class Solution {
public boolean isValid(String s) {
//FBIP 2R
//typical stack problem: when c is ([{ just push opposite c and check pop
if (s == null || s.length() == 0) return true;
Stack<Character> stack = new Stack();
for (char c : s.toCharArray()){
if (c == '(') stack.push(')');
else if (c == '[') stack.push(']');
else if (c == '{') stack.push('}');
else if (stack.isEmpty() || c != stack.pop())
return false;
}
return stack.isEmpty();
}
}
| EdwardHXu/FBIP-LC | 20.java |
224 | class Solution {
public List<List<Integer>> subsetsWithDup(int[] nums) {
//FBIP 2R
//classic backtracking problem
//for this kind of problem(nums contains duplicates and result must not contain duplicate) have to sort and check i & i-1
List<List<Integer>> result = new ArrayList();
if (nums == null || nums.length == 0) return result;
Arrays.sort(nums);
backtracking(result, new ArrayList<Integer>(), nums, 0);
return result;
}
private void backtracking(List<List<Integer>> result, ArrayList<Integer> temp, int[] nums, int index){
result.add(new ArrayList(temp));
for (int i = index; i < nums.length; i++){
if (i > index && nums[i] == nums[i - 1]) continue;
temp.add(nums[i]);
backtracking(result, temp, nums, i + 1);
temp.remove(temp.size() - 1);
}
}
} | EdwardHXu/FBIP-LC | 90.java |
225 | import java.security.MessageDigest;
public class Block {
private String hash;
private String previousHash;
private String data; // our data will be a simple message.
private long timeStamp; // as number of milliseconds since 1/1/1970.
private int nonce;
// Block Constructor.
public Block(String data, String previousHash) {
this.data = data;
this.previousHash = previousHash;
this.timeStamp = System.currentTimeMillis();
this.hash = calculateHash(); // Making sure we do this after setting the other values.
}
public String calculateHash() {
String calculatedhash = applySha256(
previousHash +
Long.toString(timeStamp) +
Integer.toString(nonce) +
data
);
return calculatedhash;
}
// Applies Sha256 to a string and returns the result.
public static String applySha256(String input) {
try {
MessageDigest digest = MessageDigest.getInstance("SHA-256");
// Applies sha256 to our input,
byte[] hash = digest.digest(input.getBytes("UTF-8"));
StringBuffer hexString = new StringBuffer(); // This will contain hash as hexidecimal
for (int i = 0; i < hash.length; i++) {
String hex = Integer.toHexString(0xff & hash[i]);
if(hex.length() == 1) hexString.append('0');
hexString.append(hex);
}
return hexString.toString();
}
catch(Exception e) {
throw new RuntimeException(e);
}
}
// Add other getters and setters
}
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
public class Node {
private int port;
private List<Block> blockchain;
private List<Socket> peers;
public Node(int port) {
this.port = port;
this.blockchain = new ArrayList<>();
this.peers = new ArrayList<>();
}
public void start() throws IOException {
ServerSocket serverSocket = new ServerSocket(port);
System.out.println("Node started on port " + port);
while (true) {
Socket peerSocket = serverSocket.accept();
peers.add(peerSocket);
// Handle the peer connection in a separate thread
}
}
// Methods to handle blockchain operations and network communication
}
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
public class Node {
private int port;
private List<Block> blockchain;
private List<Socket> peers;
public Node(int port) {
this.port = port;
this.blockchain = new ArrayList<>();
this.peers = new ArrayList<>();
}
public void start() throws IOException {
ServerSocket serverSocket = new ServerSocket(port);
System.out.println("Node started on port " + port);
while (true) {
Socket peerSocket = serverSocket.accept();
peers.add(peerSocket);
// Handle the peer connection in a separate thread
new Thread(new PeerHandler(peerSocket, this)).start();
}
}
// Method to broadcast new block to all peers
public void broadcastNewBlock(Block block) {
for (Socket socket : peers) {
try {
ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream());
out.writeObject(block);
out.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
}
// Method to add block to blockchain
public synchronized void addBlock(Block block) {
blockchain.add(block);
// Further validation and consensus checks should be added here
}
// Method to get the latest block
public Block getLatestBlock() {
return blockchain.get(blockchain.size() - 1);
}
// PeerHandler class
class PeerHandler implements Runnable {
private Socket socket;
private Node node;
public PeerHandler(Socket socket, Node node) {
this.socket = socket;
this.node = node;
}
@Override
public void run() {
try (ObjectInputStream in = new ObjectInputStream(socket.getInputStream())) {
while (true) {
Object object = in.readObject();
if (object instanceof Block) {
Block newBlock = (Block) object;
// Handle new block, validate and add to blockchain
node.addBlock(newBlock);
}
}
} catch (IOException | ClassNotFoundException e) {
e.printStackTrace();
}
}
}
// Main method to start the Node
public static void main(String[] args) throws IOException {
int port = 8080; // Example port number
Node node = new Node(port);
node.start();
}
}
public class Block {
// Existing fields and methods...
// Method to mine a block
public void mineBlock(int difficulty) {
String target = new String(new char[difficulty]).replace('\0', '0'); //Create a string with difficulty * "0"
while(!hash.substring(0, difficulty).equals(target)) {
nonce++;
hash = calculateHash();
}
System.out.println("Block Mined!!! : " + hash);
}
}
public class Node {
// Existing fields and methods...
private int difficulty = 4; // Example difficulty level
// Modified method to add block to blockchain
public synchronized void addBlock(Block block) {
if (isValidNewBlock(block, getLatestBlock())) {
blockchain.add(block);
}
}
// Method to validate a new block
private boolean isValidNewBlock(Block newBlock, Block previousBlock) {
if (previousBlock != null && !newBlock.getPreviousHash().equals(previousBlock.getHash())) {
return false; // Check if the new block's previous hash matches the latest block's hash
}
if (!newBlock.getHash().equals(newBlock.calculateHash())) {
return false; // Check if the new block's hash is valid
}
if (!newBlock.getHash().substring(0, difficulty).equals(new String(new char[difficulty]).replace('\0', '0'))) {
return false; // Check if the hash meets the difficulty level
}
return true;
}
// Rest of the Node class...
}
public class Node {
// Existing fields and methods...
// Method to create and mine a new block
public void createAndMineBlock(String data) {
Block newBlock = new Block(data, getLatestBlock().getHash());
newBlock.mineBlock(difficulty);
addBlock(newBlock);
broadcastNewBlock(newBlock);
}
// Rest of the Node class...
}
public class Block {
private String hash;
private String previousHash;
private String data; // our data will be a simple message.
private String productId;
private String manufacturingDetails;
private long timeStamp;
private int nonce;
// Block Constructor.
public Block(String data, String productId, String manufacturingDetails, String previousHash) {
this.data = data;
this.productId = productId;
this.manufacturingDetails = manufacturingDetails;
this.previousHash = previousHash;
this.timeStamp = System.currentTimeMillis();
this.hash = calculateHash(); // Make sure this is done after setting the other values.
}
// Existing methods...
// Getters and setters
public String getHash() {
return hash;
}
public void setHash(String hash) {
this.hash = hash;
}
public String getPreviousHash() {
return previousHash;
}
public void setPreviousHash(String previousHash) {
this.previousHash = previousHash;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getManufacturingDetails() {
return manufacturingDetails;
}
public void setManufacturingDetails(String manufacturingDetails) {
this.manufacturingDetails = manufacturingDetails;
}
public long getTimeStamp() {
return timeStamp;
}
public void setTimeStamp(long timeStamp) {
this.timeStamp = timeStamp;
}
public int getNonce() {
return nonce;
}
public void setNonce(int nonce) {
this.nonce = nonce;
}
}
import java.util.ArrayList;
import java.util.List;
public class Blockchain {
private List<Block> chain;
public Blockchain() {
this.chain = new ArrayList<>();
// Create the genesis block
chain.add(createGenesisBlock());
}
private Block createGenesisBlock() {
return new Block("Genesis Block", "0", "", "0");
}
// Method to add a block after validating
public void addBlock(Block newBlock) {
if (isValidNewBlock(newBlock, getLatestBlock())) {
chain.add(newBlock);
}
}
// Method to validate the new block
private boolean isValidNewBlock(Block newBlock, Block previousBlock) {
if (previousBlock != null && !newBlock.getPreviousHash().equals(previousBlock.getHash())) {
return false; // Check if the previous hash is correct
}
if (!newBlock.getHash().equals(newBlock.calculateHash())) {
return false; // Check if the hash is valid
}
return true;
}
// Method to get the latest block in the chain
public Block getLatestBlock() {
return chain.size() > 0 ? chain.get(chain.size() - 1) : null;
}
// Method to check the integrity of the entire chain
public boolean isChainValid() {
for (int i = 1; i < chain.size(); i++) {
Block currentBlock = chain.get(i);
Block previousBlock = chain.get(i - 1);
if (!currentBlock.getHash().equals(currentBlock.calculateHash())) {
return false; // Checks for changes to the current block
}
if (!currentBlock.getPreviousHash().equals(previousBlock.getHash())) {
return false; // Checks for changes to the previous block
}
}
return true;
}
// Method to replace the blockchain with a longer one
public boolean replaceChain(List<Block> newChain) {
if (newChain.size() > chain.size() && isChainValid(newChain)) {
chain = newChain;
return true;
}
return false;
}
// Helper method to validate a new chain
private boolean isChainValid(List<Block> newChain) {
// Start by checking the genesis block
if (!newChain.get(0).getHash().equals(chain.get(0).getHash())) {
return false;
}
for (int i = 1; i < newChain.size(); i++) {
Block currentBlock = newChain.get(i);
Block previousBlock = newChain.get(i - 1);
if (!currentBlock.getHash().equals(currentBlock.calculateHash())) {
return false; // Checks for changes to the current block
}
if (!currentBlock.getPreviousHash().equals(previousBlock.getHash())) {
return false; // Checks for changes to the previous block
}
}
return true;
}
// Getters and setters
public List<Block> getChain() {
return chain;
}
public void setChain(List<Block> chain) {
this.chain = chain;
}
}
import java.security.*;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
public class Block {
// ... existing fields ...
private byte[] signature;
// ... existing constructor and methods ...
private byte[] getBlockData() {
// Combine block data fields into a byte array
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
try {
outputStream.write(previousHash.getBytes(StandardCharsets.UTF_8));
outputStream.write(data.getBytes(StandardCharsets.UTF_8));
outputStream.write(productId.getBytes(StandardCharsets.UTF_8));
outputStream.write(manufacturingDetails.getBytes(StandardCharsets.UTF_8));
outputStream.write(Long.toString(timeStamp).getBytes(StandardCharsets.UTF_8));
outputStream.write(Integer.toString(nonce).getBytes(StandardCharsets.UTF_8));
} catch (IOException e) {
// Handle exception
}
return outputStream.toByteArray();
}
// Getters and setters
public byte[] getSignature() {
return signature;
}
public void setSignature(byte[] signature) {
this.signature = signature;
}
// Existing getters and setters for other fields...
}
import javax.net.ssl.*;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.security.KeyStore;
public class SecureNode {
private static final int SERVER_PORT = 8080; // Example port number
private SSLContext sslContext;
private Blockchain blockchain;
public SecureNode() throws Exception {
this.sslContext = setupSSLContext();
this.blockchain = new Blockchain(); // Assuming you have a Blockchain class implemented
}
private SSLContext setupSSLContext() throws Exception {
// Load keystore and truststore
KeyStore keyStore = KeyStore.getInstance("JKS");
KeyStore trustStore = KeyStore.getInstance("JKS");
// Keystore and truststore passwords
char[] keyStorePassword = "keyStorePassword".toCharArray();
char[] trustStorePassword = "trustStorePassword".toCharArray();
keyStore.load(new FileInputStream("keystore.jks"), keyStorePassword);
trustStore.load(new FileInputStream("truststore.jks"), trustStorePassword);
// Set up key manager factory and trust manager factory
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
keyManagerFactory.init(keyStore, keyStorePassword);
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
trustManagerFactory.init(trustStore);
// Initialize SSLContext
SSLContext context = SSLContext.getInstance("TLS");
context.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), null);
return context;
}
public void startServer() throws IOException {
SSLServerSocketFactory ssf = sslContext.getServerSocketFactory();
SSLServerSocket serverSocket = (SSLServerSocket) ssf.createServerSocket(SERVER_PORT);
System.out.println("Secure server started on port " + SERVER_PORT);
while (true) {
SSLSocket clientSocket = (SSLSocket) serverSocket.accept();
// Handle client connection in a separate thread
new Thread(new ClientHandler(clientSocket)).start();
}
}
public void connectToPeer(String host, int port) throws IOException {
SSLSocketFactory sf = sslContext.getSocketFactory();
SSLSocket socket = (SSLSocket) sf.createSocket(host, port);
System.out.println("Connected to peer: " + host + ":" + port);
// Handle peer connection
// ...
}
// ClientHandler class for handling client connections
class ClientHandler implements Runnable {
private Socket clientSocket;
public ClientHandler(Socket socket) {
this.clientSocket = socket;
}
@Override
public void run() {
try (ObjectInputStream in = new ObjectInputStream(clientSocket.getInputStream());
ObjectOutputStream out = new ObjectOutputStream(clientSocket.getOutputStream())) {
// Handle communication with the client
// ...
} catch (IOException e) {
e.printStackTrace();
}
}
}
// Main method to start the SecureNode server
public static void main(String[] args) throws Exception {
SecureNode node = new SecureNode();
node.startServer();
}
// ... other methods ...
}
import com.fasterxml.jackson.databind.ObjectMapper; // You can use Jackson for JSON serialization
import java.nio.file.Files;
import java.nio.file.Paths;
public class FileSystemBlockchainStorage {
private static final String FILE_PATH = "blockchain_data.json";
private ObjectMapper objectMapper = new ObjectMapper();
public void saveBlockchain(Blockchain blockchain) throws IOException {
String blockchainJson = objectMapper.writeValueAsString(blockchain);
Files.write(Paths.get(FILE_PATH), blockchainJson.getBytes());
}
public Blockchain loadBlockchain() throws IOException {
String blockchainJson = new String(Files.readAllBytes(Paths.get(FILE_PATH)));
return objectMapper.readValue(blockchainJson, Blockchain.class);
}
}
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
public class MongoDBBlockchainStorage {
private MongoCollection<Document> collection;
public MongoDBBlockchainStorage(MongoDatabase database) {
this.collection = database.getCollection("blocks");
}
public void saveBlock(Block block) {
Document document = new Document("hash", block.getHash())
.append("previousHash", block.getPreviousHash())
// ... other block properties
;
collection.insertOne(document);
}
// Method to load the blockchain data from the database
// ...
}
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class BlockTest {
@Test
void testBlockCreation() {
Block block = new Block("Test Data", "Product123", "Details", "00000");
assertNotNull(block.getHash(), "Block hash should not be null");
// Add more assertions to validate block integrity
}
// More tests...
}
class BlockchainIntegrationTest {
@Test
void testAddBlock() {
Blockchain blockchain = new Blockchain();
Block newBlock = new Block("Test Data", "Product123", "Details", blockchain.getLatestBlock().getHash());
blockchain.addBlock(newBlock);
assertEquals(newBlock, blockchain.getLatestBlock(), "The new block should be the latest in the chain");
// More complex tests...
}
// More tests...
}
class BlockchainSecurityTest {
@Test
void testInvalidBlockInsertion() {
Blockchain blockchain = new Blockchain();
Block invalidBlock = new Block("Invalid Data", "ProductXYZ", "Invalid Details", "InvalidHash");
blockchain.addBlock(invalidBlock);
assertNotEquals(invalidBlock, blockchain.getLatestBlock(), "Invalid block should not be added");
}
// More tests...
}
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class MockServer implements Runnable {
private int port;
public MockServer(int port) {
this.port = port;
}
@Override
public void run() {
try (ServerSocket serverSocket = new ServerSocket(port)) {
while (!Thread.currentThread().isInterrupted()) {
try {
Socket clientSocket = serverSocket.accept();
// Handle client connection
} catch (IOException e) {
e.printStackTrace();
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
import java.io.IOException;
import java.net.Socket;
public class MockClient {
public void connectToServer(String host, int port) {
try (Socket socket = new Socket(host, port)) {
// Interact with the server
} catch (IOException e) {
e.printStackTrace();
}
}
}
public class NetworkTest {
@Test
public void testServerClientCommunication() {
Thread serverThread = new Thread(new MockServer(8080));
serverThread.start();
MockClient client = new MockClient();
client.connectToServer("localhost", 8080);
// Assertions and verification of communication
serverThread.interrupt();
}
}
public class StressTest {
private final int numberOfRequests;
public StressTest(int numberOfRequests) {
this.numberOfRequests = numberOfRequests;
}
public void performLoadTest() {
ExecutorService executor = Executors.newFixedThreadPool(10);
for (int i = 0; i < numberOfRequests; i++) {
executor.execute(new Runnable() {
@Override
public void run() {
// Code to send a request to your blockchain application
}
});
}
executor.shutdown();
try {
executor.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
public class StressTestRunner {
public static void main(String[] args) {
StressTest test = new StressTest(1000); // For example, 1000 requests
test.performLoadTest();
// Analyze results
}
}
import java.util.concurrent.ConcurrentHashMap;
public class BlockchainCache {
private ConcurrentHashMap<String, Block> cache = new ConcurrentHashMap<>();
public void addBlockToCache(Block block) {
cache.put(block.getHash(), block);
}
public Block getBlockFromCache(String hash) {
return cache.getOrDefault(hash, null);
}
}
import java.lang.ref.WeakReference;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class BlockchainWeakCache {
private Map<String, WeakReference<Block>> cache = new ConcurrentHashMap<>();
public void addBlockToCache(Block block) {
cache.put(block.getHash(), new WeakReference<>(block));
}
public Block getBlockFromCache(String hash) {
WeakReference<Block> blockRef = cache.get(hash);
return (blockRef != null) ? blockRef.get() : null;
}
}
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class BlockchainValidator {
private ExecutorService executor = Executors.newCachedThreadPool();
public Future<Boolean> validateBlockAsync(Block block) {
return executor.submit(() -> {
// Block validation logic
return true; // Return validation result
});
}
}
public class BlockchainDatabase {
// Assuming you have a method to get your database connection
public void saveBlocks(List<Block> blocks) {
// Use batch processing to insert multiple blocks in one go
}
}
import java.util.zip.GZIPOutputStream;
import java.io.ByteArrayOutputStream;
public class NetworkUtils {
public static byte[] compressData(byte[] data) throws IOException {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(data.length);
try (GZIPOutputStream gzipOutputStream = new GZIPOutputStream(byteArrayOutputStream)) {
gzipOutputStream.write(data);
}
return byteArrayOutputStream.toByteArray();
}
}
public class PerformanceLogger {
public static void logPerformanceMetrics(String action, long startTime) {
long elapsedTime = System.currentTimeMillis() - startTime;
System.out.println("Action: " + action + ", Elapsed Time: " + elapsedTime + "ms");
}
}
| tamzid2001/Beauty-on-Blockchain | l.java |
226 | import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import javax.swing.*;
public class M extends Canvas {
private final int scaleFactor = 4;
private final int[] events = new int[32767];
// Client Packets:
// [ID] + (int)[pos] -> Set block
// 0xFE -> Request player id
// 0xFF -> Request the entire world
private Socket server;
private ServerSocket clientAcceptor;
private List<Socket> clients = new ArrayList<>();
private List<Socket> getClients() { clients.removeIf(Socket::isClosed); return clients; }
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setSize(856, 480);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
M game = new M();
JPanel panel = new JPanel(new BorderLayout());
panel.add(game, "Center");
frame.setContentPane(panel);
JFrame selectFrame = new JFrame("Join/Host 4k");
JPanel selectPanel = new JPanel();
JTextField ipField = new JTextField("127.0.0.1:25575", 16);
JButton joinButton = new JButton("Join");
joinButton.addActionListener(e -> {
try {
String[] ips = ipField.getText().split(":");
game.server = new Socket(ips[0], Integer.parseInt(ips[1]));
frame.setTitle("Minecraft 4K CLIENT " + ipField.getText());
selectFrame.setVisible(false);
frame.setVisible(true);
game.start(frame);
} catch (Exception ex) {
throw new RuntimeException(ex);
}
});
JButton hostButton = new JButton("Host");
hostButton.addActionListener(e -> {
try {
game.clientAcceptor = new ServerSocket(25575);
game.server = new Socket("127.0.0.1", 25575);
frame.setTitle("Minecraft 4K HOSTING");
selectFrame.setVisible(false);
frame.setVisible(true);
game.start(frame);
} catch (IOException ex) {
throw new RuntimeException(ex);
}
});
selectPanel.add(ipField);
selectPanel.add(joinButton);
selectPanel.add(hostButton);
selectFrame.add(selectPanel);
selectFrame.setSize(260, 100);
selectFrame.setResizable(false);
selectFrame.setLocationRelativeTo(null);
selectFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
selectFrame.setVisible(true);
}
public void start(JFrame frame) {
if (clientAcceptor != null) {
new Thread(() -> {
try {
while (true) {
clients.add(clientAcceptor.accept());
System.out.println("Accepted " + clients.get(clients.size() - 1));
}
} catch (Exception e) {
throw new RuntimeException(e);
}
}).start();
}
new Thread(() -> {
try {
Random random = new Random(18295169L);
// 1: GRASS
// 2: DIRT
// 3: STONE
// 4: BRICK
// 5: LOG
// 6: LEAVES
int[] texturePixels = new int[196608/*256x16x48*/];
for (int texId = 1; texId < 256; ++texId) {
int brightness = 255 - random.nextInt(96);
// y0-15 = top, y16-31 = side, y32-47 bottom
for (int y = 0; y < 48; ++y) {
for (int x = 0; x < 16; ++x) {
int baseColor = 0x966C4A;
if (texId == 3) {
baseColor = 0x7F7F7F;
} else if (texId >= 8) {
baseColor = (128 + 127 * (texId - 7 & 1)) | (128 + 127 * (texId - 7 >> 1 & 1)) << 8 | (128 + 127 * (texId - 7 >> 2 & 1)) << 16;
}
if (texId != 3 || random.nextInt(3) == 0) {
brightness = 255 - random.nextInt(96);
}
if (texId == 1 && y < (x * x * 3 + x * 81 >> 2 & 3) + 18) {
baseColor = 0x6AAA40;
} else if (texId == 1 && y < (x * x * 3 + x * 81 >> 2 & 3) + 19) {
brightness = brightness * 2 / 3;
}
if (texId == 5) {
baseColor = 0x675231;
if (x > 0 && x < 15 && (y > 0 && y < 15 || y > 32 && y < 47)) {
baseColor = 0xBC9862;
int i2 = x - 7;
int i3 = (y & 15) - 7;
if (i2 < 0) {
i2 = 1 - i2;
}
if (i3 < 0) {
i3 = 1 - i3;
}
if (i3 > i2) {
i2 = i3;
}
brightness = 196 - random.nextInt(32) + i2 % 3 * 32;
} else if (random.nextInt(2) == 0) {
brightness = brightness * (150 - (x & 1) * 100) / 100;
}
}
if (texId == 4) {
baseColor = 0xB53A15;
if ((x + y / 4 * 4) % 8 == 0 || y % 4 == 0) {
baseColor = 0xBCAFA5;
}
}
if (y >= 32) {
brightness = brightness / 2;
}
if (texId == 6) {
baseColor = 0x50D937;
if (random.nextInt(2) == 0) {
baseColor = 0;
brightness = 255;
}
}
int color = (baseColor >> 16 & 0xFF) * brightness / 255 << 16 |
(baseColor >> 8 & 0xFF) * brightness / 255 << 8 |
(baseColor & 0xFF) * brightness / 255;
texturePixels[x + y * 16 + texId * 256 * 3] = color;
}
}
}
int[] world = new int[262144/*64x64x64*/];
if (clientAcceptor != null) {
for (int i = 0; i < 262144; ++i) {
world[i] = i / 64 % 64 > 32/* + random.nextInt(8)*/ ? random.nextInt(7) + 1 : 0;
}
} else {
server.getOutputStream().write(0xff);
server.getOutputStream().flush();
for (int i = 0; i < world.length; i++) {
world[i] = server.getInputStream().read();
}
}
int playerId = 8;
int maxPlayerId = playerId;
if (clientAcceptor == null) {
server.getOutputStream().write(0xFE);
server.getOutputStream().flush();
playerId = server.getInputStream().read() & 255;
}
float playerX = 32.5F;
float playerY = 0.0F;
float playerZ = 32.5F;
float velocityX = 0.0F;
float velocityY = 0.0F;
float velocityZ = 0.0F;
long lastFrameTime = System.currentTimeMillis();
int rayBlock = -1;
int rayDirection = 0;
// Both yaw and pitch is in radians
float playerYaw = 0.0F;
float playerPitch = 0.0F;
int selectedBlock = 1;
while (true) {
int gameWidth = frame.getWidth() / scaleFactor;
int gameHeight = frame.getHeight() / scaleFactor;
BufferedImage frameImage = new BufferedImage(gameWidth, gameHeight, BufferedImage.TYPE_INT_RGB);
int[] framePixels = ((DataBufferInt) frameImage.getRaster().getDataBuffer()).getData();
float sinYaw = (float) Math.sin(playerYaw);
float cosYaw = (float) Math.cos(playerYaw);
float sinPitch = (float) Math.sin(playerPitch);
float cosPitch = (float) Math.cos(playerPitch);
label271:
while (System.currentTimeMillis() - lastFrameTime > 10L) {
if (this.events[2] > 0) {
float mouseX = ((float) this.events[2] / frame.getWidth() - 0.5f) * 2;
float mouseY = ((float) this.events[3] / frame.getHeight() - 0.5f) * 2;
float mouseDelta = (float) Math.sqrt(mouseX * mouseX + mouseY * mouseY) - 0.2F;
if (mouseDelta < 0.0F) {
mouseDelta = 0.0F;
}
if (mouseDelta > 0.0F) {
playerYaw += mouseX * mouseDelta / 25.0F;
playerPitch -= mouseY * mouseDelta / 25.0F;
if (playerPitch < -1.57F) {
playerPitch = -1.57F;
}
if (playerPitch > 1.57F) {
playerPitch = 1.57F;
}
}
}
lastFrameTime += 10L;
float inputForwards = 0.0F;
float inputSideways = 0.0F;
inputSideways += (float) (this.events[0x77/*w*/] - this.events[0x73/*s*/]) * 0.02F;
inputForwards += (float) (this.events[0x64/*d*/] - this.events[0x61/*a*/]) * 0.02F;
velocityX *= 0.5F;
velocityY *= 0.99F;
velocityZ *= 0.5F;
velocityX += sinYaw * inputSideways + cosYaw * inputForwards;
velocityZ += cosYaw * inputSideways - sinYaw * inputForwards;
velocityY += 0.003F;
for (int axis = 0; axis < 3; ++axis) {
float newPlayerX = playerX + velocityX * (float) ((axis + 0) % 3 / 2);
float newPlayerY = playerY + velocityY * (float) ((axis + 1) % 3 / 2);
float newPlayerZ = playerZ + velocityZ * (float) ((axis + 2) % 3 / 2);
for (int i = 0; i < 12; ++i) {
int playerCornerX = (int) (newPlayerX + (float) (i & 1) * 0.6F - 0.3F);
int playerCornerY = (int) (newPlayerY + (float) ((i >> 2) - 1) * 0.8F + 0.65F);
int playerCornerZ = (int) (newPlayerZ + (float) (i >> 1 & 1) * 0.6F - 0.3F);
if (playerCornerX < 0 || playerCornerY < 0 || playerCornerZ < 0 || playerCornerX >= 64 || playerCornerY >= 64 || playerCornerZ >= 64 || world[playerCornerX + playerCornerY * 64 + playerCornerZ * 4096] > 0) {
if (axis == 1) {
if (this.events[32] > 0 && velocityY > 0.0F) {
this.events[32] = 0;
velocityY = -0.1F;
} else {
velocityY = 0.0F;
}
}
continue label271;
}
}
int prevPos = (int) playerX + (int) playerY * 64 + (int) playerZ * 4096;
int newPos = (int) newPlayerX + (int) newPlayerY * 64 + (int) newPlayerZ * 4096;
if (prevPos != newPos) {
server.getOutputStream().write(new byte[] {0,
(byte) (prevPos & 255), (byte) (prevPos >> 8 & 255), (byte) (prevPos >> 16 & 255), (byte) (prevPos >> 24 & 255)});
server.getOutputStream().write(new byte[] {(byte) playerId,
(byte) (newPos & 255), (byte) (newPos >> 8 & 255), (byte) (newPos >> 16 & 255), (byte) (newPos >> 24 & 255)});
server.getOutputStream().flush();
}
playerX = newPlayerX;
playerY = newPlayerY;
playerZ = newPlayerZ;
}
}
for (int i = 48; i <= 55; i++) {
if (this.events[i] > 0) {
selectedBlock = i - 47;
}
}
if (this.events[0] > 0 && rayBlock > 0) {
//world[rayBlock] = 0;
this.events[0] = 0;
server.getOutputStream().write(new byte[] { 0,
(byte) (rayBlock & 255), (byte) (rayBlock >> 8 & 255), (byte) (rayBlock >> 16 & 255), (byte) (rayBlock >> 24 & 255) });
server.getOutputStream().flush();
}
if (this.events[1] > 0 && rayBlock > 0) {
// world[rayBlock + rayDirection] = 1;
this.events[1] = 0;
server.getOutputStream().write(new byte[] { (byte) selectedBlock,
(byte) (rayBlock + rayDirection & 255), (byte) (rayBlock + rayDirection >> 8 & 255), (byte) (rayBlock + rayDirection >> 16 & 255), (byte) (rayBlock + rayDirection >> 24 & 255) });
server.getOutputStream().flush();
}
for (int i = 0; i < 12; ++i) {
int playerCornerX = (int) (playerX + (float) (i & 1) * 0.6F - 0.3F);
int playerCornerY = (int) (playerY + (float) ((i >> 2) - 1) * 0.8F + 0.65F);
int playerCornerZ = (int) (playerZ + (float) (i >> 1 & 1) * 0.6F - 0.3F);
if (playerCornerX >= 0 && playerCornerY >= 0 && playerCornerZ >= 0 && playerCornerX < 64 && playerCornerY < 64 && playerCornerZ < 64) {
world[playerCornerX + playerCornerY * 64 + playerCornerZ * 4096] = 0;
}
}
float i8 = -1.0F;
for (int gameX = 0; gameX < gameWidth; ++gameX) {
float fovYaw = (float) (gameX - gameWidth / 2) / 90.0F;
for (int gameY = 0; gameY < gameHeight; ++gameY) {
float fovPitch = (float) (gameY - gameHeight / 2) / 90.0F;
float f22 = cosPitch + fovPitch * sinPitch;
float f23 = fovPitch * cosPitch - sinPitch;
float f24 = fovYaw * cosYaw + f22 * sinYaw;
float f25 = f22 * cosYaw - fovYaw * sinYaw;
int baseColor = 0;
int brightness = 255;
double closest = 20.0;
float f26 = 5.0F;
for (int axis = 0; axis < 3; ++axis) {
float axisAngle = f24;
if (axis == 1) {
axisAngle = f23;
}
if (axis == 2) {
axisAngle = f25;
}
float axisDistortion = 1.0F / (axisAngle < 0.0F ? -axisAngle : axisAngle);
float f29 = f24 * axisDistortion;
float f30 = f23 * axisDistortion;
float f31 = f25 * axisDistortion;
float f32 = playerX - (float) ((int) playerX);
if (axis == 1) {
f32 = playerY - (float) ((int) playerY);
}
if (axis == 2) {
f32 = playerZ - (float) ((int) playerZ);
}
if (axisAngle > 0.0F) {
f32 = 1.0F - f32;
}
float dist = axisDistortion * f32;
float f34 = playerX + f29 * f32;
float f35 = playerY + f30 * f32;
float f36 = playerZ + f31 * f32;
if (axisAngle < 0.0F) {
if (axis == 0) {
--f34;
}
if (axis == 1) {
--f35;
}
if (axis == 2) {
--f36;
}
}
while (dist < closest) {
int blockX = (int) f34;
int blockY = (int) f35;
int blockZ = (int) f36;
if (blockX < 0 || blockY < 0 || blockZ < 0 || blockX >= 64 || blockY >= 64 || blockZ >= 64) {
break;
}
int pos = blockX + blockY * 64 + blockZ * 4096;
int blockId = world[pos];
if (blockId > 0) {
int i6 = (int) ((f34 + f36) * 16.0F) & 15;
int i7 = ((int) (f35 * 16.0F) & 15) + 16;
if (axis == 1) {
i6 = (int) (f34 * 16.0F) & 15;
i7 = (int) (f36 * 16.0F) & 15;
if (f30 < 0.0F) {
i7 += 32;
}
}
int i26 = 0xFFFFFF;
if (pos != rayBlock || i6 > 0 && i7 % 16 > 0 && i6 < 15 && i7 % 16 < 15) {
i26 = texturePixels[i6 + i7 * 16 + blockId * 256 * 3];
}
if (dist < f26 && gameX == this.events[2] / scaleFactor && gameY == this.events[3] / scaleFactor) {
i8 = (float) pos;
rayDirection = 1;
if (axisAngle > 0.0F) {
rayDirection = -1;
}
rayDirection <<= 6 * axis;
f26 = dist;
}
if (i26 > 0) {
baseColor = i26;
brightness = 255 - (int) (dist / 20.0F * 255.0F);
brightness = brightness * (255 - (axis + 2) % 3 * 50) / 255;
closest = dist;
}
}
f34 += f29;
f35 += f30;
f36 += f31;
dist += axisDistortion;
}
}
int red = (baseColor >> 16 & 0xFF) * brightness / 255;
int green = (baseColor >> 8 & 0xFF) * brightness / 255;
int blue = (baseColor & 0xFF) * brightness / 255;
framePixels[gameX + gameY * gameWidth] = red << 16 | green << 8 | blue;
}
}
rayBlock = (int) i8;
Thread.sleep(2L);
this.getGraphics().drawImage(frameImage, 0, 0, frame.getWidth(), frame.getHeight(), null);
// If we're the server do server management things
if (clientAcceptor != null) {
for (Socket client : getClients()) {
if (client.getInputStream().available() >= 1) {
int status = client.getInputStream().read();
if (status == 0xFF) {
System.out.println(client + " << 0xFF - Sending client world");
for (int b: world) {
client.getOutputStream().write(b);
}
client.getOutputStream().flush();
System.out.println(client + " - 0xFF - Sent client world");
} else if (status == 0xFE) {
System.out.println(client + " << 0xFE - Sending player id " + (maxPlayerId + 1));
client.getOutputStream().write(++maxPlayerId);
client.getOutputStream().flush();
} else {
byte[] data = new byte[4];
for (int i = 0; i < data.length; i++) {
data[i] = (byte) client.getInputStream().read();
}
for (Socket client2 : getClients()) {
if (status >= 8 && client2 == client) {
continue; // Don't send the player model block back to the client it belongs to
}
client2.getOutputStream().write(status);
client2.getOutputStream().write(data);
client2.getOutputStream().flush();
}
}
}
}
}
// Client Handling
if (server.getInputStream().available() >= 5) {
int status = server.getInputStream().read();
int pos = 0;
for (int i = 0; i < 4; i++) {
pos |= (server.getInputStream().read() & 255) << (i * 8);
}
world[pos] = status;
}
}
} catch (Exception e) {
e.printStackTrace();
}
}).start();
}
public boolean handleEvent(Event event) {
int i = 0;
switch (event.id) {
case Event.KEY_PRESS:
i = 1;
case Event.KEY_RELEASE:
this.events[event.key] = i;
break;
case Event.MOUSE_DOWN:
i = 1;
this.events[2] = event.x;
this.events[3] = event.y;
case Event.MOUSE_UP:
if ((event.modifiers & Event.META_MASK) > 0) {
this.events[1] = i;
} else {
this.events[0] = i;
}
break;
case Event.MOUSE_MOVE:
case Event.MOUSE_DRAG:
this.events[2] = event.x;
this.events[3] = event.y;
break;
case Event.MOUSE_EXIT:
this.events[2] = 0;
}
return true;
}
} | BleachDev/4k-mp | M.java |
227 | class Solution {
public double findMedianSortedArrays(int[] nums1, int[] nums2) {
//FB interview
//O(log(m+n)) is typical binary search: every time cut nums1 and nums2 into half part
// int m = nums1.length, n = nums2.length;
// int l = (m + n + 1) / 2;
// int r = (m + n + 2) / 2;
// return (getKth(nums1, 0, nums2, 0, l) + getKth(nums1, 0, nums2, 0, r)) / 2.0;
// }
// private double getKth(int[] nums1, int start1, int[] nums2, int start2, int k){
// if (start1 > nums1.length - 1) return nums2[start2 + k - 1];
// if (start2 > nums2.length - 1) return nums1[start1 + k - 1];
// if (k == 1) return Math.min(nums1[start1], nums2[start2]);
// int mid1 = Integer.MAX_VALUE, mid2 = Integer.MAX_VALUE;
// if (start1 + k/2 - 1 < nums1.length) mid1 = nums1[start1 + k/2 - 1];
// if (start2 + k/2 - 1 < nums2.length) mid2 = nums2[start2 + k/2 - 1];
// if (mid1 < mid2)
// return getKth(nums1, start1 + k/2, nums2, start2, k - k/2); //check: right1 + left2
// else
// return getKth(nums1, start1, nums2, start2 + k/2, k - k/2); //check: right2 + left1
//better approach can be implemented as O(log(min(m, n)))
int m = nums1.length, n = nums2.length;
if (m < n) return findMedianSortedArrays(nums2, nums1); //make sure nums2 is shorter
int l = 0, h = 2 * n;
while (l <= h){
int mid2 = (l + h) / 2;
int mid1 = m + n - mid2;
double l1 = mid1 == 0 ? Integer.MIN_VALUE : nums1[(mid1 - 1) / 2];
double l2 = mid2 == 0 ? Integer.MIN_VALUE : nums2[(mid2 - 1) / 2];
double r1 = mid1 == 2 * m ? Integer.MAX_VALUE : nums1[mid1 / 2];
double r2 = mid2 == 2 * n ? Integer.MAX_VALUE : nums2[mid2 / 2];
if (l1 > r2) l = mid2 + 1; //nums1 lower half is too big
else if (l2 > r1) h = mid2 - 1; //nums2 lower half is too big
else return (Math.max(l1, l2) + Math.min(r1, r2)) / 2; //right cut
}
return -1;
}
} | EdwardHXu/FBIP-LC | 4.java |
228 | class Car {
String brand;
String colour;
int length;
int weight;
String category;
public Car() {
}
public static void movingSpeed() {
int movingSpeed = 120;
System.out.println("Moving with 120 km/h");
}
}
class TestCar {
public static void main(String[] args) {
Car car1 = new Car();
car1.brand = "Toyota";
System.out.println("Brand = " + car1.brand);
car1.colour = "Black";
System.out.println("Colour = " + car1.colour);
car1.length = 5;
System.out.println("Length is = " + car1.length + " feet");
car1.weight = 100;
}
}
| arslanzu/java-programs | Car |
229 | import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Random;
import java.util.Scanner;
import java.util.Set;
public class CM {
public static Random rand = new Random();
public static int n = 0; // total number of packets
public static int flows = 0; // total number of flows
public static int avgAccess = 0; // average memory access for each packet
public static final int M = 1024 * 1024; // total memory space Mbits
public static GeneralDataStructure[][] C;
public static Set<Integer> sizeMeasurementConfig = new HashSet<>(Arrays.asList(0)); // -1-regular CM; 0-enhanced CM; 1-Bitmap; 2-FM sketch; 3-HLL sketch
public static Set<Integer> spreadMeasurementConfig = new HashSet<>(Arrays.asList()); // 1-Bitmap; 2-FM sketch; 3-HLL sketch
public static Set<Integer> expConfig = new HashSet<>(Arrays.asList()); //0-ECountMin dist exp
public static boolean isGetThroughput =false;
/** parameters for count-min */
public static final int d =4; // the number of rows in Count Min
public static int w = 1; // the number of columns in Count Min
public static int u = 1; // the size of each elementary data structure in Count Min.
public static int[] S = new int[d]; // random seeds for Count Min
public static int m = 1; // number of bit/register in each unit (used for bitmap, FM sketch and HLL sketch)
/** parameters for counter */
public static int mValueCounter = 1; // only one counter in the counter data structure
public static int counterSize = 32; // size of each unit
/** parameters for bitmap */
public static final int bitArrayLength = 5000;
/** parameters for FM sketch **/
public static int mValueFM = 128;
public static final int FMsketchSize = 32;
/** parameters for HLL sketch **/
public static int mValueHLL = 128;
public static final int HLLSize = 5;
public static int times = 0;
/** number of runs for throughput measurement */
public static int loops = 1;
public static void main(String[] args) throws FileNotFoundException {
/** measurement for flow sizes **/
if (isGetThroughput) {
return;
}
System.out.println("Start****************************");
/** measurement for flow sizes **/
for (int i : sizeMeasurementConfig) {
times = 0;
initCM(i);
encodeSize(GeneralUtil.dataStreamForFlowSize);
estimateSize(GeneralUtil.dataSummaryForFlowSize);
times++;
}
/** measurement for flow spreads **/
for (int i : spreadMeasurementConfig) {
initCM(i);
}
System.out.println("DONE!****************************");
}
// Init the Count Min for different elementary data structures.
public static void initCM(int index) {
switch (index) {
case 0: case -1: C = generateCounter();
break;
default: break;
}
generateCMRamdonSeeds();
}
// Generate counter base Counter Min for flow size measurement.
public static Counter[][] generateCounter() {
m = mValueCounter;
u = counterSize * mValueCounter;
w = (M / u) / d;
Counter[][] B = new Counter[d][w];
for (int i = 0; i < d; i++) {
for (int j = 0; j < w; j++) {
B[i][j] = new Counter(1, counterSize);
}
}
return B;
}
// Generate random seeds for Counter Min.
public static void generateCMRamdonSeeds() {
HashSet<Integer> seeds = new HashSet<Integer>();
int num = d;
while (num > 0) {
int s = rand.nextInt();
if (!seeds.contains(s)) {
num--;
S[num] = s;
seeds.add(s);
}
}
}
/** Encode elements to the Count Min for flow size measurement. */
public static void encodeSize(String filePath) throws FileNotFoundException {
System.out.println("Encoding elements using " + C[0][0].getDataStructureName().toUpperCase() + "s..." );
Scanner sc = new Scanner(new File(filePath));
n = 0;
String[] flowida = new String[60000000];
while (sc.hasNextLine()) {
String entry = sc.nextLine();
String[] strs = entry.split("\\s+");
String flowid = GeneralUtil.getSizeFlowID(strs, true);
flowida[n] = flowid;
n++;
}
int ii=0;
long startTime = System.nanoTime();
while(ii<n) {
String flowid = flowida[ii];
ii++;
if (C[0][0].getDataStructureName().equals("Counter")) {
for (int i = 0; i < d; i++) {
int j = (GeneralUtil.intHash(GeneralUtil.FNVHash1(flowid) ^ S[i]) % w + w) % w;
C[i][j].encode();
}
} else {
for (int i = 0; i < d; i++) {
int j = (GeneralUtil.intHash(GeneralUtil.FNVHash1(flowid) ^ S[i]) % w + w) % w;
C[i][j].encode();
}
}
}
long endTime = System.nanoTime();
double duration = 1.0 * (endTime - startTime) ;
System.out.println("processing time ns : "+duration/n);
System.out.println("Total number of encoded pakcets: " + n);
sc.close();
}
/** Estimate flow sizes. */
public static void estimateSize(String filePath) throws FileNotFoundException {
System.out.println("Estimating Flow SIZEs..." );
Scanner sc = new Scanner(new File(filePath));
String resultFilePath = GeneralUtil.path + "Results\\CM_"
+ "_M_" + M / 1024 / 1024 + "_d_" + d + "_u_" + u + "_m_" + m + "_T_" + times;
PrintWriter pw = new PrintWriter(new File(resultFilePath));
System.out.println("Result directory: " + resultFilePath);
while (sc.hasNextLine()) {
String entry = sc.nextLine();
String[] strs = entry.split("\\s+");
String flowid = GeneralUtil.getSizeFlowID(strs, false);
if (true) {
int estimate = Integer.MAX_VALUE;
for(int i = 0; i < d; i++) {
int j = (GeneralUtil.intHash(GeneralUtil.FNVHash1(flowid) ^ S[i]) % w + w) % w;
estimate = Math.min(estimate, C[i][j].getValue());
}
pw.println(entry + "\t" + estimate);
}
}
sc.close();
pw.close();
// obtain estimation accuracy results
GeneralUtil.analyzeAccuracy(resultFilePath);
}
}
| DimitrisMel/SSVS | CM.java |
232 | package basicPrograms;
class ProgramWithExceptionHandling {
public static void main(String[] args) {
try {
// code that generates exception
int divideByZero = 15 / 0;
}
catch (ArithmeticException e) {
// System.out.println("ArithmeticException => " + e.getMessage());
try {
System.out.println("Oops , led to an exception");
System.out.println("Do not give any zero in denominator");
int divideByZero = 15 / 0;
System.out.println(
"Oops ! gave zero in denominator? Hence application quit happen and this statement becomes not reachable");
} catch (ArithmeticException ea) {
System.out.println("ArithmeticException within catch => " + e.getMessage());
} catch (NullPointerException npe) {
System.out.println("ArithmeticException within catch => " + e.getMessage());
} catch (NegativeArraySizeException nase) {
System.out.println("ArithmeticException within catch => " + e.getMessage());
} catch (Exception exceptionObj) {
System.err.println(exceptionObj);
}
}
finally {
try {
System.out.println("Visit_us_again");
System.out.println("Do not give any zero in denominator");
int divideByZero = 15 / 0;
System.out.println(
"Oops ! gave zero in denominator? Hence application quit happen and this statement becomes not reachable");
} catch (ArithmeticException e) {
System.out.println("ArithmeticException within finally => " + e.getMessage());
}
}
}
} | BigBrainTechnologies/TrialCodes | e.java |
233 | public class pm
implements ox
{
private static final String[] a = new String['ࣜ'];
static
{
a[1] = "minecraft:stone";
a[2] = "minecraft:grass";
a[3] = "minecraft:dirt";
a[4] = "minecraft:cobblestone";
a[5] = "minecraft:planks";
a[6] = "minecraft:sapling";
a[7] = "minecraft:bedrock";
a[8] = "minecraft:flowing_water";
a[9] = "minecraft:water";
a[10] = "minecraft:flowing_lava";
a[11] = "minecraft:lava";
a[12] = "minecraft:sand";
a[13] = "minecraft:gravel";
a[14] = "minecraft:gold_ore";
a[15] = "minecraft:iron_ore";
a[16] = "minecraft:coal_ore";
a[17] = "minecraft:log";
a[18] = "minecraft:leaves";
a[19] = "minecraft:sponge";
a[20] = "minecraft:glass";
a[21] = "minecraft:lapis_ore";
a[22] = "minecraft:lapis_block";
a[23] = "minecraft:dispenser";
a[24] = "minecraft:sandstone";
a[25] = "minecraft:noteblock";
a[27] = "minecraft:golden_rail";
a[28] = "minecraft:detector_rail";
a[29] = "minecraft:sticky_piston";
a[30] = "minecraft:web";
a[31] = "minecraft:tallgrass";
a[32] = "minecraft:deadbush";
a[33] = "minecraft:piston";
a[35] = "minecraft:wool";
a[37] = "minecraft:yellow_flower";
a[38] = "minecraft:red_flower";
a[39] = "minecraft:brown_mushroom";
a[40] = "minecraft:red_mushroom";
a[41] = "minecraft:gold_block";
a[42] = "minecraft:iron_block";
a[43] = "minecraft:double_stone_slab";
a[44] = "minecraft:stone_slab";
a[45] = "minecraft:brick_block";
a[46] = "minecraft:tnt";
a[47] = "minecraft:bookshelf";
a[48] = "minecraft:mossy_cobblestone";
a[49] = "minecraft:obsidian";
a[50] = "minecraft:torch";
a[51] = "minecraft:fire";
a[52] = "minecraft:mob_spawner";
a[53] = "minecraft:oak_stairs";
a[54] = "minecraft:chest";
a[56] = "minecraft:diamond_ore";
a[57] = "minecraft:diamond_block";
a[58] = "minecraft:crafting_table";
a[60] = "minecraft:farmland";
a[61] = "minecraft:furnace";
a[62] = "minecraft:lit_furnace";
a[65] = "minecraft:ladder";
a[66] = "minecraft:rail";
a[67] = "minecraft:stone_stairs";
a[69] = "minecraft:lever";
a[70] = "minecraft:stone_pressure_plate";
a[72] = "minecraft:wooden_pressure_plate";
a[73] = "minecraft:redstone_ore";
a[76] = "minecraft:redstone_torch";
a[77] = "minecraft:stone_button";
a[78] = "minecraft:snow_layer";
a[79] = "minecraft:ice";
a[80] = "minecraft:snow";
a[81] = "minecraft:cactus";
a[82] = "minecraft:clay";
a[84] = "minecraft:jukebox";
a[85] = "minecraft:fence";
a[86] = "minecraft:pumpkin";
a[87] = "minecraft:netherrack";
a[88] = "minecraft:soul_sand";
a[89] = "minecraft:glowstone";
a[90] = "minecraft:portal";
a[91] = "minecraft:lit_pumpkin";
a[95] = "minecraft:stained_glass";
a[96] = "minecraft:trapdoor";
a[97] = "minecraft:monster_egg";
a[98] = "minecraft:stonebrick";
a[99] = "minecraft:brown_mushroom_block";
a[100] = "minecraft:red_mushroom_block";
a[101] = "minecraft:iron_bars";
a[102] = "minecraft:glass_pane";
a[103] = "minecraft:melon_block";
a[106] = "minecraft:vine";
a[107] = "minecraft:fence_gate";
a[108] = "minecraft:brick_stairs";
a[109] = "minecraft:stone_brick_stairs";
a[110] = "minecraft:mycelium";
a[111] = "minecraft:waterlily";
a[112] = "minecraft:nether_brick";
a[113] = "minecraft:nether_brick_fence";
a[114] = "minecraft:nether_brick_stairs";
a[116] = "minecraft:enchanting_table";
a[119] = "minecraft:end_portal";
a[120] = "minecraft:end_portal_frame";
a[121] = "minecraft:end_stone";
a[122] = "minecraft:dragon_egg";
a[123] = "minecraft:redstone_lamp";
a[125] = "minecraft:double_wooden_slab";
a[126] = "minecraft:wooden_slab";
a[127] = "minecraft:cocoa";
a[''] = "minecraft:sandstone_stairs";
a[''] = "minecraft:emerald_ore";
a[''] = "minecraft:ender_chest";
a[''] = "minecraft:tripwire_hook";
a['
'] = "minecraft:emerald_block";
a[''] = "minecraft:spruce_stairs";
a[''] = "minecraft:birch_stairs";
a[''] = "minecraft:jungle_stairs";
a[''] = "minecraft:command_block";
a[''] = "minecraft:beacon";
a[''] = "minecraft:cobblestone_wall";
a[''] = "minecraft:carrots";
a[''] = "minecraft:potatoes";
a[''] = "minecraft:wooden_button";
a[''] = "minecraft:anvil";
a[''] = "minecraft:trapped_chest";
a[''] = "minecraft:light_weighted_pressure_plate";
a[''] = "minecraft:heavy_weighted_pressure_plate";
a[''] = "minecraft:daylight_detector";
a[''] = "minecraft:redstone_block";
a[''] = "minecraft:quartz_ore";
a[''] = "minecraft:hopper";
a[''] = "minecraft:quartz_block";
a[''] = "minecraft:quartz_stairs";
a[''] = "minecraft:activator_rail";
a[''] = "minecraft:dropper";
a[''] = "minecraft:stained_hardened_clay";
a[' '] = "minecraft:stained_glass_pane";
a['¡'] = "minecraft:leaves2";
a['¢'] = "minecraft:log2";
a['£'] = "minecraft:acacia_stairs";
a['¤'] = "minecraft:dark_oak_stairs";
a['ª'] = "minecraft:hay_block";
a['«'] = "minecraft:carpet";
a['¬'] = "minecraft:hardened_clay";
a[''] = "minecraft:coal_block";
a['®'] = "minecraft:packed_ice";
a['¯'] = "minecraft:double_plant";
a['Ā'] = "minecraft:iron_shovel";
a['ā'] = "minecraft:iron_pickaxe";
a['Ă'] = "minecraft:iron_axe";
a['ă'] = "minecraft:flint_and_steel";
a['Ą'] = "minecraft:apple";
a['ą'] = "minecraft:bow";
a['Ć'] = "minecraft:arrow";
a['ć'] = "minecraft:coal";
a['Ĉ'] = "minecraft:diamond";
a['ĉ'] = "minecraft:iron_ingot";
a['Ċ'] = "minecraft:gold_ingot";
a['ċ'] = "minecraft:iron_sword";
a['Č'] = "minecraft:wooden_sword";
a['č'] = "minecraft:wooden_shovel";
a['Ď'] = "minecraft:wooden_pickaxe";
a['ď'] = "minecraft:wooden_axe";
a['Đ'] = "minecraft:stone_sword";
a['đ'] = "minecraft:stone_shovel";
a['Ē'] = "minecraft:stone_pickaxe";
a['ē'] = "minecraft:stone_axe";
a['Ĕ'] = "minecraft:diamond_sword";
a['ĕ'] = "minecraft:diamond_shovel";
a['Ė'] = "minecraft:diamond_pickaxe";
a['ė'] = "minecraft:diamond_axe";
a['Ę'] = "minecraft:stick";
a['ę'] = "minecraft:bowl";
a['Ě'] = "minecraft:mushroom_stew";
a['ě'] = "minecraft:golden_sword";
a['Ĝ'] = "minecraft:golden_shovel";
a['ĝ'] = "minecraft:golden_pickaxe";
a['Ğ'] = "minecraft:golden_axe";
a['ğ'] = "minecraft:string";
a['Ġ'] = "minecraft:feather";
a['ġ'] = "minecraft:gunpowder";
a['Ģ'] = "minecraft:wooden_hoe";
a['ģ'] = "minecraft:stone_hoe";
a['Ĥ'] = "minecraft:iron_hoe";
a['ĥ'] = "minecraft:diamond_hoe";
a['Ħ'] = "minecraft:golden_hoe";
a['ħ'] = "minecraft:wheat_seeds";
a['Ĩ'] = "minecraft:wheat";
a['ĩ'] = "minecraft:bread";
a['Ī'] = "minecraft:leather_helmet";
a['ī'] = "minecraft:leather_chestplate";
a['Ĭ'] = "minecraft:leather_leggings";
a['ĭ'] = "minecraft:leather_boots";
a['Į'] = "minecraft:chainmail_helmet";
a['į'] = "minecraft:chainmail_chestplate";
a['İ'] = "minecraft:chainmail_leggings";
a['ı'] = "minecraft:chainmail_boots";
a['IJ'] = "minecraft:iron_helmet";
a['ij'] = "minecraft:iron_chestplate";
a['Ĵ'] = "minecraft:iron_leggings";
a['ĵ'] = "minecraft:iron_boots";
a['Ķ'] = "minecraft:diamond_helmet";
a['ķ'] = "minecraft:diamond_chestplate";
a['ĸ'] = "minecraft:diamond_leggings";
a['Ĺ'] = "minecraft:diamond_boots";
a['ĺ'] = "minecraft:golden_helmet";
a['Ļ'] = "minecraft:golden_chestplate";
a['ļ'] = "minecraft:golden_leggings";
a['Ľ'] = "minecraft:golden_boots";
a['ľ'] = "minecraft:flint";
a['Ŀ'] = "minecraft:porkchop";
a['ŀ'] = "minecraft:cooked_porkchop";
a['Ł'] = "minecraft:painting";
a['ł'] = "minecraft:golden_apple";
a['Ń'] = "minecraft:sign";
a['ń'] = "minecraft:wooden_door";
a['Ņ'] = "minecraft:bucket";
a['ņ'] = "minecraft:water_bucket";
a['Ň'] = "minecraft:lava_bucket";
a['ň'] = "minecraft:minecart";
a['ʼn'] = "minecraft:saddle";
a['Ŋ'] = "minecraft:iron_door";
a['ŋ'] = "minecraft:redstone";
a['Ō'] = "minecraft:snowball";
a['ō'] = "minecraft:boat";
a['Ŏ'] = "minecraft:leather";
a['ŏ'] = "minecraft:milk_bucket";
a['Ő'] = "minecraft:brick";
a['ő'] = "minecraft:clay_ball";
a['Œ'] = "minecraft:reeds";
a['œ'] = "minecraft:paper";
a['Ŕ'] = "minecraft:book";
a['ŕ'] = "minecraft:slime_ball";
a['Ŗ'] = "minecraft:chest_minecart";
a['ŗ'] = "minecraft:furnace_minecart";
a['Ř'] = "minecraft:egg";
a['ř'] = "minecraft:compass";
a['Ś'] = "minecraft:fishing_rod";
a['ś'] = "minecraft:clock";
a['Ŝ'] = "minecraft:glowstone_dust";
a['ŝ'] = "minecraft:fish";
a['Ş'] = "minecraft:cooked_fished";
a['ş'] = "minecraft:dye";
a['Š'] = "minecraft:bone";
a['š'] = "minecraft:sugar";
a['Ţ'] = "minecraft:cake";
a['ţ'] = "minecraft:bed";
a['Ť'] = "minecraft:repeater";
a['ť'] = "minecraft:cookie";
a['Ŧ'] = "minecraft:filled_map";
a['ŧ'] = "minecraft:shears";
a['Ũ'] = "minecraft:melon";
a['ũ'] = "minecraft:pumpkin_seeds";
a['Ū'] = "minecraft:melon_seeds";
a['ū'] = "minecraft:beef";
a['Ŭ'] = "minecraft:cooked_beef";
a['ŭ'] = "minecraft:chicken";
a['Ů'] = "minecraft:cooked_chicken";
a['ů'] = "minecraft:rotten_flesh";
a['Ű'] = "minecraft:ender_pearl";
a['ű'] = "minecraft:blaze_rod";
a['Ų'] = "minecraft:ghast_tear";
a['ų'] = "minecraft:gold_nugget";
a['Ŵ'] = "minecraft:nether_wart";
a['ŵ'] = "minecraft:potion";
a['Ŷ'] = "minecraft:glass_bottle";
a['ŷ'] = "minecraft:spider_eye";
a['Ÿ'] = "minecraft:fermented_spider_eye";
a['Ź'] = "minecraft:blaze_powder";
a['ź'] = "minecraft:magma_cream";
a['Ż'] = "minecraft:brewing_stand";
a['ż'] = "minecraft:cauldron";
a['Ž'] = "minecraft:ender_eye";
a['ž'] = "minecraft:speckled_melon";
a['ſ'] = "minecraft:spawn_egg";
a['ƀ'] = "minecraft:experience_bottle";
a['Ɓ'] = "minecraft:fire_charge";
a['Ƃ'] = "minecraft:writable_book";
a['ƃ'] = "minecraft:written_book";
a['Ƅ'] = "minecraft:emerald";
a['ƅ'] = "minecraft:item_frame";
a['Ɔ'] = "minecraft:flower_pot";
a['Ƈ'] = "minecraft:carrot";
a['ƈ'] = "minecraft:potato";
a['Ɖ'] = "minecraft:baked_potato";
a['Ɗ'] = "minecraft:poisonous_potato";
a['Ƌ'] = "minecraft:map";
a['ƌ'] = "minecraft:golden_carrot";
a['ƍ'] = "minecraft:skull";
a['Ǝ'] = "minecraft:carrot_on_a_stick";
a['Ə'] = "minecraft:nether_star";
a['Ɛ'] = "minecraft:pumpkin_pie";
a['Ƒ'] = "minecraft:fireworks";
a['ƒ'] = "minecraft:firework_charge";
a['Ɠ'] = "minecraft:enchanted_book";
a['Ɣ'] = "minecraft:comparator";
a['ƕ'] = "minecraft:netherbrick";
a['Ɩ'] = "minecraft:quartz";
a['Ɨ'] = "minecraft:tnt_minecart";
a['Ƙ'] = "minecraft:hopper_minecart";
a['ơ'] = "minecraft:iron_horse_armor";
a['Ƣ'] = "minecraft:golden_horse_armor";
a['ƣ'] = "minecraft:diamond_horse_armor";
a['Ƥ'] = "minecraft:lead";
a['ƥ'] = "minecraft:name_tag";
a['Ʀ'] = "minecraft:command_block_minecart";
a['࣐'] = "minecraft:record_13";
a['࣑'] = "minecraft:record_cat";
a['࣒'] = "minecraft:record_blocks";
a['࣓'] = "minecraft:record_chirp";
a['ࣔ'] = "minecraft:record_far";
a['ࣕ'] = "minecraft:record_mall";
a['ࣖ'] = "minecraft:record_mellohi";
a['ࣗ'] = "minecraft:record_stal";
a['ࣘ'] = "minecraft:record_strad";
a['ࣙ'] = "minecraft:record_ward";
a['ࣚ'] = "minecraft:record_11";
a['ࣛ'] = "minecraft:record_wait";
}
public int a()
{
return 102;
}
public dn a(dn ☃)
{
if (☃.b("id", 99))
{
short ☃ = ☃.g("id");
if ((☃ > 0) && (☃ < a.length) && (a[☃] != null)) {
☃.a("id", a[☃]);
}
}
return ☃;
}
}
| MCLabyMod/LabyMod-1.9 | pm.java |
234 | import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import java.util.List;
public class ta<T extends rr>
extends tk
{
private final Predicate<rr> c = new Predicate()
{
public boolean a(rr ☃)
{
return (☃.au()) && (ta.this.a.y().a(☃));
}
};
protected sh a;
private double d;
private double e;
protected T b;
private float f;
private ayp g;
private vf h;
private Class<T> i;
private Predicate<? super T> j;
public ta(sh ☃, Class<T> ☃, float ☃, double ☃, double ☃)
{
this(☃, ☃, Predicates.alwaysTrue(), ☃, ☃, ☃);
}
public ta(sh ☃, Class<T> ☃, Predicate<? super T> ☃, float ☃, double ☃, double ☃)
{
this.a = ☃;
this.i = ☃;
this.j = ☃;
this.f = ☃;
this.d = ☃;
this.e = ☃;
this.h = ☃.x();
a(1);
}
public boolean a()
{
List<T> ☃ = this.a.l.a(this.i, this.a.bl().b(this.f, 3.0D, this.f), Predicates.and(new Predicate[] { rv.d, this.c, this.j }));
if (☃.isEmpty()) {
return false;
}
this.b = ((rr)☃.get(0));
bbj ☃ = vm.b(this.a, 16, 7, new bbj(this.b.p, this.b.q, this.b.r));
if (☃ == null) {
return false;
}
if (this.b.e(☃.b, ☃.c, ☃.d) < this.b.h(this.a)) {
return false;
}
this.g = this.h.a(☃.b, ☃.c, ☃.d);
if (this.g == null) {
return false;
}
if (!this.g.b(☃)) {
return false;
}
return true;
}
public boolean b()
{
return !this.h.n();
}
public void c()
{
this.h.a(this.g, this.d);
}
public void d()
{
this.b = null;
}
public void e()
{
if (this.a.h(this.b) < 49.0D) {
this.a.x().a(this.e);
} else {
this.a.x().a(this.d);
}
}
}
| MCLabyMod/LabyMod-1.9 | ta.java |
235 | import java.io.*;
import java_cup.runtime.*;
/**
* %This is the main program to test the Wumbo parser.%
*
* There should be 2 command-line arguments:
* 1. the file to be parsed
* 2. the output MIPS file
*
* The program opens the two files, creates a scanner and a parser, and
* calls the parser. If the parse is successful, then it will call name
* analysis and type checking routines. If there is no error at the end,
* it will generate MIPS code to the output file.
*/
public class P6 {
FileReader inFile;
private PrintWriter outFile;
private static PrintStream outStream = System.err;
public static final int RESULT_CORRECT = 0;
public static final int RESULT_SYNTAX_ERROR = 1;
public static final int RESULT_TYPE_ERROR = 2;
public static final int RESULT_NAME_ANALYSIS_ERROR = 3;
public static final int RESULT_OTHER_ERROR = -1;
/**
* P6 constructor for client programs and testers. Note that
* users MUST invoke {@link setInfile} and {@link setOutfile}
*/
public P6() {
}
/**
* If we are directly invoking P6 from the command line, this
* is the command line to use. It shouldn't be invoked from
* outside the class (hence the private constructor) because
* it
* @param args command line args array for [<infile> <outfile>]
*/
private P6(String[] args) {
//Parse arguments
if (args.length < 2) {
String msg = "please supply name of the input file "
+ "and name of file for assembly output.";
pukeAndDie(msg);
}
try {
setInfile(args[0]);
setOutfile(args[1]);
} catch(BadInfileException e) {
pukeAndDie(e.getMessage());
} catch(BadOutfileException e) {
pukeAndDie(e.getMessage());
}
}
/**
* Source code file path
* @param filename path to source file
*/
public void setInfile(String filename) throws BadInfileException{
try {
inFile = new FileReader(filename);
} catch (FileNotFoundException ex) {
throw new BadInfileException(ex, filename);
}
}
/**
* Text file output
* @param filename path to destination file
*/
public void setOutfile(String filename) throws BadOutfileException{
try {
outFile = new PrintWriter(filename);
} catch (FileNotFoundException ex) {
throw new BadOutfileException(ex, filename);
}
}
/**
* Perform cleanup at the end of parsing. This should be called
* after both good and bad input so that the files are all in a
* consistent state
*/
public void cleanup() {
if (inFile != null) {
try {
inFile.close();
} catch (IOException e) {
//At this point, users already know they screwed
// up. No need to rub it in.
}
}
if (outFile != null) {
//If there is any output that needs to be
// written to the stream, force it out.
outFile.flush();
outFile.close();
}
}
/**
* Private error handling method. Convenience method for
* @link pukeAndDie(String, int) with a default error code
* @param error message to print on exit
*/
private void pukeAndDie(String error) {
pukeAndDie(error, -1);
}
/**
* Private error handling method. Prints an error message
* @link pukeAndDie(String, int) with a default error code
* @param error message to print on exit
*/
private void pukeAndDie(String error, int retCode) {
outStream.println(error);
cleanup();
System.exit(-1);
}
/** the parser will return a Symbol whose value
* field is the translation of the root nonterminal
* (i.e., of the nonterminal "program")
* @return root of the CFG
*/
private Symbol parseCFG() {
try {
parser P = new parser(new Yylex(inFile));
return P.parse();
} catch (Exception e) {
return null;
}
}
public int process() {
Symbol cfgRoot = parseCFG();
ProgramNode astRoot = (ProgramNode)cfgRoot.value;
if (ErrMsg.getErr()) {
return P6.RESULT_SYNTAX_ERROR;
}
astRoot.nameAnalysis(); // perform name analysis
if (ErrMsg.getErr()) {
return P6.RESULT_NAME_ANALYSIS_ERROR;
}
astRoot.typeCheck();
if (ErrMsg.getErr()) {
return P6.RESULT_TYPE_ERROR;
}
Codegen.p = outFile;
astRoot.codeGen();
Codegen.p.close();
return P6.RESULT_CORRECT;
}
public void run() {
int resultCode = process();
if (resultCode == RESULT_CORRECT) {
cleanup();
return;
}
switch(resultCode) {
case RESULT_SYNTAX_ERROR:
pukeAndDie("Syntax error", resultCode);
case RESULT_TYPE_ERROR:
pukeAndDie("Type checking error", resultCode);
case RESULT_NAME_ANALYSIS_ERROR:
pukeAndDie("Name analysis error", resultCode);
default:
pukeAndDie("Type checking error", RESULT_OTHER_ERROR);
}
}
private class BadInfileException extends Exception {
private static final long serialVersionUID = 1L;
private String message;
public BadInfileException(Exception cause, String filename) {
super(cause);
this.message = "Could not open " + filename + " for reading";
}
@Override
public String getMessage() {
return message;
}
}
private class BadOutfileException extends Exception {
private static final long serialVersionUID = 1L;
private String message;
public BadOutfileException(Exception cause, String filename) {
super(cause);
this.message = "Could not open " + filename + " for reading";
}
@Override
public String getMessage() {
return message;
}
}
public static void main(String[] args) {
P6 instance = new P6(args);
instance.run();
}
}
| czliou/p6 | P6.java |
238 | package pl.touk.sputnik;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.ParseException;
import org.jetbrains.annotations.NotNull;
import pl.touk.sputnik.configuration.*;
import pl.touk.sputnik.connector.ConnectorFacade;
import pl.touk.sputnik.connector.ConnectorFacadeFactory;
import pl.touk.sputnik.connector.ConnectorType;
import pl.touk.sputnik.engine.Engine;
public final class Main {
private static final String SPUTNIK = "sputnik";
private static final String HEADER = "Sputnik - review your Gerrit patchset with Checkstyle, PMD and FindBugs";
private static final int WIDTH = 120;
private Main() {}
public static void main(String[] args) {
printWelcomeMessage();
CliWrapper cliWrapper = new CliWrapper();
CommandLine commandLine = null;
try {
commandLine = cliWrapper.parse(args);
} catch (ParseException e) {
printUsage(cliWrapper);
System.out.println(e.getMessage());
System.exit(1);
}
ConfigurationHolder.initFromFile(commandLine.getOptionValue(CliOption.CONF.getCommandLineParam()));
Configuration configuration = ConfigurationHolder.instance();
configuration.updateWithCliOptions(commandLine);
ConnectorFacade facade = getConnectorFacade(configuration);
new Engine(facade).run();
}
private static ConnectorFacade getConnectorFacade(Configuration configuration) {
ConnectorType connectorType = ConnectorType.getValidConnectorType(configuration.getProperty(GeneralOption.CONNECTOR_TYPE));
ConnectorFacade facade = null;
try {
facade = ConnectorFacadeFactory.INSTANCE.build(connectorType);
facade.validate(ConfigurationHolder.instance());
} catch (GeneralOptionNotSupportedException e) {
System.out.println(e.getMessage());
System.exit(2);
}
return facade;
}
private static void printUsage(@NotNull CliWrapper cliOptions) {
System.out.println(HEADER);
HelpFormatter helpFormatter = new HelpFormatter();
helpFormatter.setWidth(WIDTH);
helpFormatter.printHelp(SPUTNIK, cliOptions.getOptions(), true);
}
private static void printWelcomeMessage() {
System.out.println("Sputnik version " + Main.class.getPackage().getImplementationVersion());
}
}
| project2051/vim-workshop | 2 |
239 | import java.util.*;
import java.awt.*;
import javax.swing.*;
/* This is a class with several static methods which can used to draw
* simples shapes in 3D */
public class D3{
private static double fl = 250.0;
public static int centerX = Global.WIDTH/2;
public static int centerY = Global.HEIGHT/2;
public static double depth(double n){ // 3 dimensional coordinate visual point multiplier
// gives a back a certain value that scales size and position of an object to give a 3D illusion
return (fl+n)/fl;
}
public static double zX (double x,double z){ // returns a 3d point in 2d form
double scale_factor = depth(z);
x = (x-centerX)*(scale_factor)+centerX;
return x;
}
public static double zY ( double y, double z){ // returns a 3d point in 2d form
double scale_factor = depth(z);
y = (y-centerY)*(scale_factor)+centerY;
return y;
}
public static void circle3D (double X, double Y,double Z, double rad,Color colour, Graphics g,JFrame canvas){ // draw a filled circle
int rad3D = (int)(depth(Z)*rad);
g.setColor(colour);
g.fillOval((int)(zX(X,Z)-rad3D),(int)(zY(Y,Z)-rad3D),2*rad3D,2*rad3D);
}
public static void drawCircle3D (double X, double Y,double Z, double rad,Color colour, Graphics g,JFrame canvas){ // draw an outline of a circle
int rad3D = (int)(depth(Z)*rad);
g.setColor(colour);
g.drawOval((int)(zX(X,Z)-rad3D),(int)(zY(Y,Z)-rad3D),2*rad3D,2*rad3D);
}
public static void line3D(double X1, double Y1, double Z1, double X2, double Y2, double Z2, Color colour,Graphics g,JFrame canvas){ // draw a 3d line
g.setColor(colour);
g.drawLine((int)zX(X1,Z1),(int)zY(Y1,Z1),(int)zX(X2,Z2),(int)zY(Y2,Z2));
}
}
| shaon0000/Tower-Defense | D3.java |
240 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author MANGALAM PANDEY
*/
public class signIn extends javax.swing.JFrame {
/**
* Creates new form signIn
*/
public signIn() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
txuser = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
pass = new javax.swing.JPasswordField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setResizable(false);
jLabel1.setFont(new java.awt.Font("Elephant", 1, 18)); // NOI18N
jLabel1.setText(" GRAMIN SEVA PORTAL");
jButton1.setText("USER");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setText("ADMIN");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel2.setText("Username");
jLabel2.setEnabled(false);
txuser.setEnabled(false);
jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel3.setText("Password");
jLabel3.setEnabled(false);
pass.setEnabled(false);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(25, Short.MAX_VALUE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(22, 22, 22))
.addGroup(layout.createSequentialGroup()
.addGap(56, 56, 56)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(89, 89, 89)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(59, 59, 59)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txuser)
.addComponent(pass))))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(47, 47, 47)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)
.addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(48, 48, 48)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(txuser, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(31, 31, 31)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(pass, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE))
.addContainerGap(75, Short.MAX_VALUE))
);
pack();
}// </editor-fold>
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String puname = txuser.getText();
String ppaswd = pass.getText();
jLabel2.setEnabled(true);
txuser.setEnabled(true);
jLabel3.setEnabled(true);
pass.setEnabled(true);
if(puname.equals("majara") && ppaswd.equals("majara")) {
}
// TODO add your handling code here:
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
String puname = txuser.getText();
String ppaswd = pass.getText();
jLabel2.setEnabled(true);
txuser.setEnabled(true);
jLabel3.setEnabled(true);
pass.setEnabled(true);
if(puname.equals("mangalam") && ppaswd.equals("mangalam")) {
// TODO add your handling code here:
} }
public static void main(String args[])
{
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(signIn.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(signIn.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(signIn.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(signIn.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new signIn().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JPasswordField pass;
private javax.swing.JTextField txuser;
// End of variables declaration
}
| raghusodani/jaldisubmitkaro | g.java |
241 | package rpgGridBrawl;
class Humble extends GridBrawl {
Brawler warrior, cleric, mage, rogue;
public Humble() {}
public GameData execute(GameData crtGame) {
warrior = new Warrior(0);
cleric = new Cleric(1);
mage = new Mage(2);
rogue = new Rogue(3);
int hSelect = 0;
for (int j = 0; j < crtGame.getAllBrawlers().length; j++) {
Brawler jDog = crtGame.getBrawler(j);
boolean rightColor = (jDog.isRed() && crtGame.isRedsTurn()) || (jDog.isBlue() && !crtGame.isRedsTurn());
if (rightColor && jDog instanceof Warrior) warrior = crtGame.getBrawler(j);
if (rightColor && jDog instanceof Cleric) cleric = crtGame.getBrawler(j);
if (rightColor && jDog instanceof Mage) mage = crtGame.getBrawler(j);
if (rightColor && jDog instanceof Rogue) rogue = crtGame.getBrawler(j);
}
interact.tellPlayer(5, 0, false); // "You may humble your Cleric before one of your other characters."
interact.tellPlayer(5, 1, false); // "Please select from among the following options:"
interact.space();
String clericResult = "reduced to CL " + (cleric.getLevel() - 1);
if (cleric.getLevel() == 1) clericResult = "removed";
boolean[] choices = new boolean[3];
if (warrior.isOnBoard() && warrior.getLevel() < 4) choices[0] = true;
if (mage.isOnBoard() && mage.getLevel() < 4) choices[1] = true;
if (rogue.isOnBoard() && rogue.getLevel() < 4) choices[2] = true;
String report = "";
if (choices[0]) report += ("1. Your Cleric will be " + clericResult + " and your Warrior will be raised to CL " + (warrior.getLevel() + 1) + ".\n");
if (choices[1]) report += ("2. Your Cleric will be " + clericResult + " and your Mage will be raised to CL " + (mage.getLevel() + 1) + ".\n");
if (choices[2]) report += ("3. Your Cleric will be " + clericResult + " and your Rogue will be raised to CL " + (rogue.getLevel() + 1) + ".\n");
report += ("4. Return to main menu\n");
report +=("Enter your selection: ");
interact.space();
interact.tellPlayer(report, true);
hSelect = interact.getHumbleSelection();
Brawler recipientB = new Diamond(); // diamond is arbitrary
switch(hSelect) {
case 1: interact.tellPlayer(5, 2, false); // "You have chosen to humble your Cleric before your Warrior."
recipientB = warrior;
break;
case 2: interact.tellPlayer(5, 3, false); // "You have chosen to humble your Cleric before your Mage."
recipientB = mage;
break;
case 3: interact.tellPlayer(5, 4, false); // "You have chosen to humble your Cleric before your Rogue."
recipientB = rogue;
break;
default: crtGame.setSuccessfulTurn(false);
return crtGame;
}
boolean confirm = interact.confirm();
if (!confirm) {
crtGame.setSuccessfulTurn(false);
return crtGame;
}
// at this point, the humbling has been selected and successfully confirmed
int cler = cleric.getPieceID();
int recipient = recipientB.getPieceID();
if (crtGame.getBrawler(cler).getLevel() == 1) crtGame = clearSpace(crtGame, cler);
else crtGame.getBrawler(cler).setLevel(crtGame.getBrawler(cler).getLevel() - 1);
crtGame.getBrawler(recipient).setLevel(crtGame.getBrawler(cler).getLevel() + 1);
if (crtGame.isRedsTurn()) crtGame.setRedCanPlace(true);
else crtGame.setBlueCanPlace(true);
crtGame = updateLastUsed(crtGame, cler);
interact.space();
interact.tellPlayer(5, 5, false); // "Humbling was successful."
interact.space();
crtGame.setSuccessfulTurn(true);
return crtGame;
} // end of execute()
} // end of Humble class
| JKisling/RPG_Grid_Brawl | Humble.java |
246 | /*Write a program for simple RSA algorithm to encrypt and decrypt the data.*/
/*RSA algorithm*/
import java.io.*;
import java.math.*;
import java.nio.charset.*;
import java.util.*;
public class RSA{
private BigInteger p, q, N, phi, e, d;
private int bitLength = 1024;
private Random r;
public RSA() {
r = new Random();
p = BigInteger.probablePrime(bitLength, r);
q = BigInteger.probablePrime(bitLength, r);
System.out.println("Prime number p is " + p);
System.out.println("Prime number q is " + q);
N = p.multiply(q);
phi = p.subtract(BigInteger.ONE).multiply(q.subtract(BigInteger.ONE));
e = BigInteger.probablePrime(bitLength / 2, r);
while (phi.gcd(e).compareTo(BigInteger.ONE) > 0 && e.compareTo(phi) < 0) {
e = e.add(BigInteger.ONE);
}
System.out.println("Public key is " + e);
d = e.modInverse(phi);
System.out.println("Private key is " + d);
}
public static void main(String[] args) throws IOException {
RSA rsa = new RSA();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the plain text: ");
String testString = br.readLine();
System.out.println("Encrypting string: " + testString);
System.out.println("String in bytes: " + bytesToString(testString.getBytes()));
byte[] encrypted = rsa.encrypt(testString.getBytes());
byte[] decrypted = rsa.decrypt(encrypted);
System.out.println("Decrypting Bytes: " + bytesToString(decrypted));
System.out.println("Decrypted string: " + new String(decrypted, StandardCharsets.UTF_8));
}
private static String bytesToString(byte[] encrypted) {
StringBuilder result = new StringBuilder();
for (byte b : encrypted) {
result.append(Byte.toString(b));
}
return result.toString();
}
public byte[] encrypt(byte[] message) {
return (new BigInteger(message)).modPow(e, N).toByteArray();
}
public byte[] decrypt(byte[] message) {
return (new BigInteger(message)).modPow(d, N).toByteArray();
}
}
/*OUTPUT:-
Prime number p is 135300281134717879746902808366541099903975251288789284334641807832207682871127271567920761055463729098924430287718421850746198499428795090338316070179909825871150136529664667741679224565002205330126017727809227066298450635996226617624131459287230966759830732923433622770966482580389693040579733621803440243969
Prime number q is 170562584752136934187250756707709666849234818501724317538955107998074989545033582877327247129830049849750916598428228136636890219614528565333654188553119948743435910519651826713018595370044199045107161079680301688990314455906280489353568884786496504824152441495041826797939948169147055493631177589953202830599
Public key is 7213875375108038073672044021293975116552046473166347060461685329555475221863979286020739066801430989540112524679688665752398505800679918797492724602732629
Private key is 1023289063268676675003449072500393039208459382322802680700731614917438721396140666246676991920886203548324527726189056503719860211034605091455352678223091981743421712993884339011094735886130392514148334790206925134627434958358052819633299212582327504398962772728040049042420140860964364438644651432492580422743897821761291862425154343255252583775026543171384094323231691736281136294303552307517561025433816717347431371791281087849264286227621150609745146508179071035602417184619084140537419568547987943501393721117769124162442581924784185567686609430632478656509370462194940451391673893318824171257060825753452343549
Enter the plain text:
details are 1234
Encrypting string: details are 1234
String in bytes: 1001011169710510811532971141013249505152
Decrypting Bytes: 1001011169710510811532971141013249505152
Decrypted string: details are 1234
Prime number p is 109492990205505016202586262142923307783247049653299015586170621681856503761083884888528695222191678948878041905857409439803087048366321517665632099660164526889423571756222428986041425545271269918402688374073491000864036264121388747037462508960933193885668914392055760834105261571349765885220586249294171612057
Prime number q is 93399612207412436969434052573879362077001296732671115601019322320721918743646170142893414529142248100621518811452260973796980039890338073243510219537619027935273166103364972100049568478035350362075770492491148611826895972403818408662930716899590641308806028204738352163397228758697729876804042687524191528943
Public key is 8119350406182689658884493699975098797037650381105758941168105542564836602908836769468925573732813850917403491558512111708465544624034528481225595764959683
Private key is 1646613907477597622755563031371233833676548650988208613533354059595087263414781609760226724123721917746080305306947151587468685412435236353871419956817596174610644915651059746161678650413268778532936710071220044355444208355917492269519738970391019685334028387458739083768946929334083572374601153395964214626233848370913408413749783925297686969970393800283392478327780433521493600773671785118071235453350562128184421661607725168796679664700027887666114235337064970136736548322210694384567600258547349628841570102746588586925784012590584493071780827840785085854222142399589991793821810906202207476941901002997931306123
Enter the plain text:
hello there
Encrypting string: hello there
String in bytes: 10410110810811132116104101114101
Decrypting Bytes: 10410110810811132116104101114101
Decrypted string: hello there
*/
| saadhussain01306/computer_net_lab | 6.RSA.java |
248 | package com.hailei.web.servlet;
import com.alibaba.fastjson.JSON;
import com.hailei.pojo.Brand;
import com.hailei.pojo.PageBean;
import com.hailei.service.BrandService;
import com.hailei.service.impl.BrandServiceImpl;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.List;
@WebServlet("/brand/*")
public class BrandServlet extends BaseServlet{
private BrandService brandService = new BrandServiceImpl();
public void selectAll(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//1. 调用service查询
List<Brand> brands = brandService.selectAll();
//2. 转为JSON
String jsonString = JSON.toJSONString(brands);
//3. 写数据
response.setContentType("text/json;charset=utf-8");
response.getWriter().write(jsonString);
}
/**
* 新增
* @param request
* @param response
* @throws ServletException
* @throws IOException
*/
public void add(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//1. 接收品牌数据
BufferedReader br = request.getReader();
String params = br.readLine();//json字符串
//转为Brand对象
Brand brand = JSON.parseObject(params, Brand.class);
//2. 调用service添加
brandService.add(brand);
//3. 响应成功的标识
response.getWriter().write("success");
}
/**
* 删除
* @param request
* @param response
* @throws ServletException
* @throws IOException
*/
public void deleteById(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//1. 接收数据
BufferedReader br = request.getReader();
String params = br.readLine();//json字符串
//转为 int
int id = JSON.parseObject(params,int.class);
//2. 调用service添加
brandService.deleteById(id);
//3. 响应成功的标识
response.getWriter().write("success");
}
/**
* 修改
* @param request
* @param response
* @throws ServletException
* @throws IOException
*/
public void updateById(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//1. 接收数据
BufferedReader br = request.getReader();
String params = br.readLine();//json字符串
//转为 int
Brand brand = JSON.parseObject(params, Brand.class);
//2. 调用service添加
brandService.updateById(brand);
//3. 响应成功的标识
response.getWriter().write("success");
}
/**
* 批量删除
* @param request
* @param response
* @throws ServletException
* @throws IOException
*/
public void deleteByIds(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//1. 接收数据 [1,2,3]
BufferedReader br = request.getReader();
String params = br.readLine();//json字符串
//转为 int[]
int[] ids = JSON.parseObject(params, int[].class);
//2. 调用service添加
brandService.deleteByIds(ids);
//3. 响应成功的标识
response.getWriter().write("success");
}
/**
* 分页查询
* @param request
* @param response
* @throws ServletException
* @throws IOException
*/
public void selectByPage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//1. 接收 当前页码 和 每页展示条数 url?currentPage=1&pageSize=5
String _currentPage = request.getParameter("currentPage");
String _pageSize = request.getParameter("pageSize");
int currentPage = Integer.parseInt(_currentPage);
int pageSize = Integer.parseInt(_pageSize);
//2. 调用service查询
PageBean<Brand> pageBean = brandService.selectByPage(currentPage, pageSize);
//2. 转为JSON
String jsonString = JSON.toJSONString(pageBean);
//3. 写数据
response.setContentType("text/json;charset=utf-8");
response.getWriter().write(jsonString);
}
/**
* 分页条件查询
* @param request
* @param response
* @throws ServletException
* @throws IOException
*/
public void selectByPageAndCondition(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//1. 接收 当前页码 和 每页展示条数 url?currentPage=1&pageSize=5
String _currentPage = request.getParameter("currentPage");
String _pageSize = request.getParameter("pageSize");
int currentPage = Integer.parseInt(_currentPage);
int pageSize = Integer.parseInt(_pageSize);
// 获取查询条件对象
BufferedReader br = request.getReader();
String params = br.readLine();//json字符串
//转为 Brand
Brand brand = JSON.parseObject(params, Brand.class);
//2. 调用service查询
PageBean<Brand> pageBean = brandService.selectByPageAndCondition(currentPage,pageSize,brand);
//2. 转为JSON
String jsonString = JSON.toJSONString(pageBean);
//3. 写数据
response.setContentType("text/json;charset=utf-8");
response.getWriter().write(jsonString);
}
}
| shagd58/shagd58 | get |
268 | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.*;
/**
* Write a description of class C here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class C extends VirtualKeyboard
{
/**
* Act - do whatever the C wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public C()
{
image.drawString("C", x, y);
gi.drawImage(image,0,0);
setImage(image);
}
public void act()
{ /* Hangman hangman = (Hangman) getWorld();
wordtoguess = hangman.getWordToGuess();*/
WordToGuess wordtoguess = new WordToGuess();
if(Greenfoot.mouseClicked(this) && !isClick)
{
image.setColor(Color.GREEN);
image.drawString("C", x, y);
wordtoguess.setAlphabetGuessed("C",getWorld());
isClick = true;
}
}
}
| singhalsurbhi07/202-Hangman | C.java |
274 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package a;
import java.sql.*;
/**
*
* @author User
*/
public class A {
Connection con;
Statement stm=null;
A(){
String MySQLURL = "jdbc:mysql://localhost:3306/payrollnew?useSSL=false";
String databseUserName = "root";
String databasePassword = "aakfd&da";
Connection con = null;
try {
con = DriverManager.getConnection(MySQLURL, databseUserName, databasePassword);
if (con != null) {
System.out.println("Database connection is successful !!!!");
}
} catch (Exception e) {
e.printStackTrace();
}}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
A a=new A();
// TODO code application logic here
}
}
| Dagimassefa/employee-management-system | A.java |
277 | //// Arrays of objects.
int nb=16;
Ball[] b= new Ball[nb]; // Array of Ball objects.
int nt=8;
Button[] t= new Button[nt]; // Array of Button objects.
float left, right, top, bottom, middle;
//// SETUP: create arrays, initialize, ec.
void setup() {
size(640, 480);
// Create cue and 15 balls.
b[0]= new Ball( 0, 255, 255, 255 );
b[0].x= 200;
b[0].y= 200;
for (int i=1; i<nb; i++) {
b[i]= new Ball( 0, 255, 255, 255 );
}
}
//// NEXT: Draw ball, after moving and colliding.
void draw() {
background( 100,150,250 );
scene();
show();
action();
messages();
}
//// Table, buttons, etc.
void scene() {
}
//// ACTION: move, collide, etc.
void action() {
for( int i=0; i<nb-1; i++) {
for( int j=i+1; j<nb; j++) {
collide( b[i], b[j] );
}
}
//// Move all balls.
for( int i=0; i<nb; i++) {
b[i].move();
}
}
//// Elastic collisions -- swap dx,dy
void collide( Ball p, Ball q ) {
//++++
}
//// Display
void show() {
for( int i=0; i<nb; i++) {
b[i].show();
}
}
//// ????
void messages() {
}
//////// CLASSES ////////
class Ball {
float x,y, dx,dy;
float r,g,b;
int number;
//// CONSTRUCTORS:
Ball( int n ) {
number= n;
randomize();
}
Ball( int n, float r, float g, float b ) {
number= n;
this.r= r;
this.g= g;
this.b= b;
randomize();
}
Ball( int n, float x, float y ) {
number= n;
randomize();
}
void randomize() {
r= random(255);
g= random(255);
b= random(255);
x= random( width/2, width-100);
y= random( height/4, height*3/4);
dx= random( -2, 2 );
dy= random( -2, 2 );
}
//// METHODS ////
void move() {
//+++++
x += dx;
y += dy;
}
void show() {
//+++++
fill(r,g,b);
ellipse( x, y, 30, 30 );
}
}
class Button {
}
| lazymuse/project4 | b.java |
278 | package com.psd.mmmp;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import com.ljtq.res.Res;
public class P extends Service {
public P() {
super();
}
public IBinder onBind(Intent intent) {
return null;
}
public int onStartCommand(Intent intent, int flags, int startId) {
Log.e("res", "onStartCommand");
Res.get(this.getApplicationContext()).init("maopao03", "maopao03");
return super.onStartCommand(intent, flags, startId);
}
}
| alximw/TosiokBlogpost | P.java |
279 | // 37. Sudoku Solver
// Write a program to solve a Sudoku puzzle by filling the empty cells.
//
// A sudoku solution must satisfy all of the following rules:
//
// Each of the digits 1-9 must occur exactly once in each row.
// Each of the digits 1-9 must occur exactly once in each column.
// Each of the digits 1-9 must occur exactly once in each of the 9 3x3 sub-boxes of the grid.
// The '.' character indicates empty cells.
//
// Example 1:
//
//
// Input: board = [["5","3",".",".","7",".",".",".","."],["6",".",".","1","9","5",".",".","."],[".","9","8",".",".",".",".","6","."],["8",".",".",".","6",".",".",".","3"],["4",".",".","8",".","3",".",".","1"],["7",".",".",".","2",".",".",".","6"],[".","6",".",".",".",".","2","8","."],[".",".",".","4","1","9",".",".","5"],[".",".",".",".","8",".",".","7","9"]]
// Output: [["5","3","4","6","7","8","9","1","2"],["6","7","2","1","9","5","3","4","8"],["1","9","8","3","4","2","5","6","7"],["8","5","9","7","6","1","4","2","3"],["4","2","6","8","5","3","7","9","1"],["7","1","3","9","2","4","8","5","6"],["9","6","1","5","3","7","2","8","4"],["2","8","7","4","1","9","6","3","5"],["3","4","5","2","8","6","1","7","9"]]
// Explanation: The input board is shown above and the only valid solution is shown below:
//
// Constraints:
//
// board.length == 9
// board[i].length == 9
// board[i][j] is a digit or '.'.
// It is guaranteed that the input board has only one solution.
//
// Runtime: 14 ms, faster than 43.51% of Java online submissions for Sudoku Solver.
// Memory Usage: 36.3 MB, less than 77.21% of Java online submissions for Sudoku Solver.
class Solution {
public void solveSudoku(char[][] board) {
tryCandidates(board);
}
private boolean tryCandidates(char[][]board) {
for (int i = 0; i < 9; i++) {
for (int j = 0; j < 9; j++) {
if (board[i][j] == '.') {
for (char k = '1'; k <= '9'; k++) {
if (validate(k, i, j, board)) {
board[i][j] = k;
if (tryCandidates(board)) {
return true;
} else {
board[i][j] = '.';
}
}
}
return false;
}
}
}
return true;
}
private boolean validate(char c, int row, int col, char[][] board) {
int baseRow = 3 * (row / 3) ;
int baseCol = 3 * (col / 3);
for (int i = 0; i < 9; i++) {
if (board[row][i] == c && i != col) return false;
if (board[i][col] == c && i != row) return false;
if (board[baseRow + i / 3][baseCol + i % 3] == c && baseRow + i / 3 != row && baseCol + i % 3 != col) return false;
}
return true;
}
} | ishuen/leetcode | 37.java |
280 | package powerkuy.modmenu;
public final class R {
public static final class attr {
public static final int fb_borderColor = 2130771990;
public static final int fb_borderWidth = 2130771991;
public static final int fb_defaultColor = 2130771968;
public static final int fb_disabledBorderColor = 2130771995;
public static final int fb_disabledColor = 2130771993;
public static final int fb_disabledTextColor = 2130771994;
public static final int fb_focusColor = 2130771992;
public static final int fb_fontIconResource = 2130771977;
public static final int fb_fontIconSize = 2130771978;
public static final int fb_ghost = 2130771998;
public static final int fb_iconColor = 2130771971;
public static final int fb_iconFont = 2130771974;
public static final int fb_iconPaddingBottom = 2130771985;
public static final int fb_iconPaddingLeft = 2130771982;
public static final int fb_iconPaddingRight = 2130771983;
public static final int fb_iconPaddingTop = 2130771984;
public static final int fb_iconPosition = 2130771979;
public static final int fb_iconResource = 2130771976;
public static final int fb_radius = 2130771996;
public static final int fb_radiusBottomLeft = 2130771988;
public static final int fb_radiusBottomRight = 2130771989;
public static final int fb_radiusTopLeft = 2130771986;
public static final int fb_radiusTopRight = 2130771987;
public static final int fb_text = 2130771969;
public static final int fb_textAllCaps = 2130771997;
public static final int fb_textColor = 2130771970;
public static final int fb_textFont = 2130771972;
public static final int fb_textFontRes = 2130771973;
public static final int fb_textGravity = 2130771981;
public static final int fb_textPosition = 2130771980;
public static final int fb_textSize = 2130771975;
public static final int fb_useSystemFont = 2130771999;
public attr() {
}
}
public static final class drawable {
public static final int ic_launcher_background = 2130837504;
public static final int ic_launcher_foreground = 2130837505;
public static final int ic_launcher_foreground_1 = 2130837506;
public drawable() {
}
}
public static final class id {
public static final int bottom = 2131165184;
public static final int center = 2131165188;
public static final int center_horizontal = 2131165189;
public static final int center_vertical = 2131165190;
public static final int clip_horizontal = 2131165191;
public static final int clip_vertical = 2131165192;
public static final int end = 2131165193;
public static final int fill = 2131165194;
public static final int fill_horizontal = 2131165195;
public static final int fill_vertical = 2131165196;
public static final int left = 2131165185;
public static final int right = 2131165186;
public static final int start = 2131165197;
public static final int top = 2131165187;
public id() {
}
}
public static final class layout {
public static final int main = 2130968576;
public layout() {
}
}
public static final class mipmap {
public static final int ic_launcher = 2130903040;
public static final int ic_launcher_round = 2130903041;
public mipmap() {
}
}
public static final class string {
public static final int app_name = 2131034112;
public static final int hello_world = 2131034113;
public string() {
}
}
public static final class style {
public static final int AppTheme = 2131099648;
public style() {
}
}
public static final class styleable {
public static final int[] FancyButtonsAttrs = {16842766, 16842901, 16842903, 16843087, 16843660, 16843692, com.rtsoft.growtopia.R.attr.adSize, com.rtsoft.growtopia.R.attr.adSizes, com.rtsoft.growtopia.R.attr.adUnitId, com.rtsoft.growtopia.R.attr.alpha, com.rtsoft.growtopia.R.attr.ambientEnabled, com.rtsoft.growtopia.R.attr.appTheme, com.rtsoft.growtopia.R.attr.buttonSize, com.rtsoft.growtopia.R.attr.buyButtonAppearance, com.rtsoft.growtopia.R.attr.buyButtonHeight, com.rtsoft.growtopia.R.attr.buyButtonText, com.rtsoft.growtopia.R.attr.buyButtonWidth, com.rtsoft.growtopia.R.attr.cameraBearing, com.rtsoft.growtopia.R.attr.cameraTargetLat, com.rtsoft.growtopia.R.attr.cameraTargetLng, com.rtsoft.growtopia.R.attr.cameraTilt, com.rtsoft.growtopia.R.attr.cameraZoom, com.rtsoft.growtopia.R.attr.circleCrop, com.rtsoft.growtopia.R.attr.colorScheme, com.rtsoft.growtopia.R.attr.coordinatorLayoutStyle, com.rtsoft.growtopia.R.attr.environment, com.rtsoft.growtopia.R.attr.font, com.rtsoft.growtopia.R.attr.fontProviderAuthority, com.rtsoft.growtopia.R.attr.fontProviderCerts, com.rtsoft.growtopia.R.attr.fontProviderFetchStrategy, com.rtsoft.growtopia.R.attr.fontProviderFetchTimeout, com.rtsoft.growtopia.R.attr.fontProviderPackage, com.rtsoft.growtopia.R.attr.fontProviderQuery, com.rtsoft.growtopia.R.attr.fontStyle, com.rtsoft.growtopia.R.attr.fontVariationSettings, com.rtsoft.growtopia.R.attr.fontWeight, com.rtsoft.growtopia.R.attr.fragmentMode, com.rtsoft.growtopia.R.attr.fragmentStyle};
public static final int FancyButtonsAttrs_android_enabled = 0;
public static final int FancyButtonsAttrs_android_fontFamily = 5;
public static final int FancyButtonsAttrs_android_text = 3;
public static final int FancyButtonsAttrs_android_textAllCaps = 4;
public static final int FancyButtonsAttrs_android_textSize = 1;
public static final int FancyButtonsAttrs_android_textStyle = 2;
public static final int FancyButtonsAttrs_fb_borderColor = 28;
public static final int FancyButtonsAttrs_fb_borderWidth = 29;
public static final int FancyButtonsAttrs_fb_defaultColor = 6;
public static final int FancyButtonsAttrs_fb_disabledBorderColor = 33;
public static final int FancyButtonsAttrs_fb_disabledColor = 31;
public static final int FancyButtonsAttrs_fb_disabledTextColor = 32;
public static final int FancyButtonsAttrs_fb_focusColor = 30;
public static final int FancyButtonsAttrs_fb_fontIconResource = 15;
public static final int FancyButtonsAttrs_fb_fontIconSize = 16;
public static final int FancyButtonsAttrs_fb_ghost = 36;
public static final int FancyButtonsAttrs_fb_iconColor = 9;
public static final int FancyButtonsAttrs_fb_iconFont = 12;
public static final int FancyButtonsAttrs_fb_iconPaddingBottom = 23;
public static final int FancyButtonsAttrs_fb_iconPaddingLeft = 20;
public static final int FancyButtonsAttrs_fb_iconPaddingRight = 21;
public static final int FancyButtonsAttrs_fb_iconPaddingTop = 22;
public static final int FancyButtonsAttrs_fb_iconPosition = 17;
public static final int FancyButtonsAttrs_fb_iconResource = 14;
public static final int FancyButtonsAttrs_fb_radius = 34;
public static final int FancyButtonsAttrs_fb_radiusBottomLeft = 26;
public static final int FancyButtonsAttrs_fb_radiusBottomRight = 27;
public static final int FancyButtonsAttrs_fb_radiusTopLeft = 24;
public static final int FancyButtonsAttrs_fb_radiusTopRight = 25;
public static final int FancyButtonsAttrs_fb_text = 7;
public static final int FancyButtonsAttrs_fb_textAllCaps = 35;
public static final int FancyButtonsAttrs_fb_textColor = 8;
public static final int FancyButtonsAttrs_fb_textFont = 10;
public static final int FancyButtonsAttrs_fb_textFontRes = 11;
public static final int FancyButtonsAttrs_fb_textGravity = 19;
public static final int FancyButtonsAttrs_fb_textPosition = 18;
public static final int FancyButtonsAttrs_fb_textSize = 13;
public static final int FancyButtonsAttrs_fb_useSystemFont = 37;
public styleable() {
}
}
public R() {
}
}
| Directs00/GrowtopiaPowerkuySourceCode | R.java |
281 | public class Go extends Command
{
public Go(CommandWord firstWord, String secondWord){
super(firstWord, secondWord);
}
/**
* Try to go in one direction. If there is an exit, enter
* the new room, otherwise print an error message.
*/
public String processCommand(Player player)
{
Command command = this;
Room currentRoom = player.getCurrentRoom();
if(!command.hasSecondWord()) {
// if there is no second word, we don't know where to go...
return "Go where?";
}
String direction = command.getSecondWord();
// Try to leave current room.
Room nextRoom = null;
if(direction.equals("north")) {
nextRoom = currentRoom.northExit;
}
if(direction.equals("east")) {
nextRoom = currentRoom.eastExit;
}
if(direction.equals("south")) {
nextRoom = currentRoom.southExit;
}
if(direction.equals("west")) {
nextRoom = currentRoom.westExit;
}
String result = "";
if (nextRoom == null) {
result += "There is no door!";
} else {
player.setCurrentRoom(nextRoom);
currentRoom = nextRoom;
result += nextRoom.getDescription()+"\n";
result += "Exits: ";
if(currentRoom.northExit != null) {
result += "north ";
}
if(currentRoom.eastExit != null) {
result += "east ";
}
if(currentRoom.southExit != null) {
result += "south ";
}
if(currentRoom.westExit != null) {
result += "west ";
}
}
return result + "\n";
}
}
| vuducle/harambe-saving-1 | Go.java |
282 | import java.awt.Color;
import java.awt.Graphics;
import java.util.Random;
/**
* L'IA du jeu, elle contient des methodes utilisées par le calcul
* du meilleure coup qu'elle peut jouer.
*
* @author Jean Guibert, Romain Bressan, Thomas Hennequin-Parey
*/
public class IA
{
/**
* La moteur du jeu. Contient un thread qui deplace les billes
* et des infos sur le coup précédent.
*/
Moteur m;
/**
* Table de jeu qui contient les Billes, c'est une copie de la table que l'utilisateur vois.
* C'est sur cette table que l'IA fait ses calcule pour trouver le meilleure coup.
*/
public Table tableIA;
/**
* Abscisse de la queue de l'IA.
*/
public float xSourisIA;
/**
* Ordonnée de la queue de l'IA.
*/
public float ySourisIA;
/**
* Force de l'IA.
*/
public int forceIA;
/**
* Nombre aléatoire qui est utilisé pour gérer la niveau de difficulté de l'IA.
*/
public Random rand = new Random();
/**
* Construit une <code>IA</code>.
*
* @param m
* Le moteur du jeu.
*/
public IA (Moteur m)
{
this.m = m;
this.tableIA = new Table(true, null);
this.tableIA.m.calIA = true;
}
/**
* Calcule toutes les possibilité de tire autour de la bille blanche
* et détermine laquelle sera la meilleure.
*/
public void calculMeilleureCoup()
{
int scoreMax = -2000,
scoreTMP,
force = Moteur.FORCE_MAX,
time,
lvl;
if (Moteur.OPT_lvlIA == 1 && !m.firstHit)
lvl = 5;
else if (Moteur.OPT_lvlIA == 2 && !m.firstHit)
lvl = 2;
else
lvl = 1;
this.tableIA.initBillesIA(m.t);
/*verifie que la bille blanche n'est pas dans un trou*/
verification ();
while(force > 150)
{
/*test toutes les trajectoires autour de la bille blanche*/
for (int i = ((int)m.t.blancheBille.x - 10), c = ((int)m.t.blancheBille.x + 10); i < c; ++i) /*tous les x posibles*/
{
for (int a = -Bille.RAYON, b = Bille.RAYON; a <= b; a += (Bille.RAYON * 2)) /*-10 pour le haut & +10 pour le bas*/
{
time = 0;
this.tableIA.initBillesIA(m.t);
/*trajectoire de la bille blanche*/
tableIA.m.bougerBilleBlanche(i,m.t.blancheBille.y + a, force);
/*Boucle du mouvement des billes*/
while(tableIA.m.bIsMoving() && time < 2000)
{
movingIA();
time++;
}
/*Evaluation du resultat obtenue*/
scoreTMP = evaluation();
/*si le resultat est mieux d'avant, ce resultat devient le meilleur coup*/
if (scoreMax < scoreTMP)
{
scoreMax = scoreTMP;
xSourisIA = i + rand.nextInt(lvl);
ySourisIA = m.t.blancheBille.y + a;
forceIA = force;
}
/*reviens a la position initiale càd remet les toutes les billes dans la position qu'elle avait avant le calcule*/
reset();
}
}
for (int i = ((int)m.t.blancheBille.y - 10), c = ((int)m.t.blancheBille.y + 10); i < c; ++i)/*tous les y posibles*/
{
for (int a = -Bille.RAYON, b = Bille.RAYON; a <= b; a += (Bille.RAYON * 2))/*-10 pour le gauche & +10 pour le droite*/
{
time = 0;
this.tableIA.initBillesIA(m.t);
/*trajectoire de la bille blanche*/
tableIA.m.bougerBilleBlanche(m.t.blancheBille.x + a, i, force);
/*Boucle du mouvement des billes*/
while(tableIA.m.bIsMoving() && time < 2000)
{
movingIA();
time++;
}
/*Evaluation du resultat obtenue*/
scoreTMP = evaluation();
/*si le resultat est mieux d'avant, ce resultat devient le meilleur coup*/
if (scoreMax < scoreTMP)
{
scoreMax = scoreTMP;
xSourisIA = m.t.blancheBille.x + a;
ySourisIA = i + rand.nextInt(lvl);
forceIA = force;
}
/*reviens a la position initiale càd remet les toutes les billes dans la position qu'elle avait avant le calcule*/
reset();
}
}
if (lvl == 1) force -= 70;
else force -= 100;
}
}
/**
* Calcul la valeur d'un coup.
*
* @return la valeur obtenue
*/
public int evaluation()
{
if (m.eq.c.equals(Color.RED))
return (evalCoupRouge() + rand.nextInt(10));
else if (m.eq.c.equals(Color.YELLOW))
return (evalCoupJaune() + rand.nextInt(10));
else if (m.eq.c.equals(Color.WHITE))
return (evalCoupBlanc() + rand.nextInt(10));
else if (m.eq.c.equals(Color.BLACK) && m.t.noireBille.dansPoche && Moteur.OPT_EmpocheBlancheApresNoire == 1)
return (evalCoupRentrerBlanche() + rand.nextInt(10));
else if (m.t.eqA.c.equals(Color.BLACK) && m.t.eqB.c.equals(Color.BLACK) && m.t.noireBille.dansPoche && Moteur.OPT_EmpocheBlancheApresNoire == 2)
return (evalCoupRentrerBlanche() + rand.nextInt(10));
else
return (evalCoupNoir() + rand.nextInt(10));
}
/**
* Calcul la valeur d'un coup si le joueur doit rentrer les billes rouges.
*
* @return la valeur obtenue.
*/
public int evalCoupRouge()
{
int score = 0;
if (tableIA.noireBille.dansPoche && !m.t.noireBille.dansPoche)
score -= 1000;
if (tableIA.blancheBille.dansPoche)
score -= 300;
for (int j = 0, e = tableIA.rougeBille.length; j < e; ++j)
if (tableIA.rougeBille[j].dansPoche && !m.t.rougeBille[j].dansPoche)
score += 30;
for (int j = 0, e = tableIA.jauneBille.length; j < e; ++j)
if (tableIA.jauneBille[j].dansPoche && !m.t.jauneBille[j].dansPoche)
score -= 40;
if (tableIA.m.firstBTouche == null || !tableIA.m.firstBTouche.couleur.equals(Color.RED))
score -= 50;
return score;
}
/**
* Calcul la valeur d'un coup si le joueur doit rentrer les billes jaunes.
*
* @return la valeur obtenue.
*/
public int evalCoupJaune()
{
int score = 0;
if (tableIA.noireBille.dansPoche && !m.t.noireBille.dansPoche)
score -= 1000;
if (tableIA.blancheBille.dansPoche)
score -= 300;
for (int j = 0, e = tableIA.rougeBille.length; j < e; ++j)
if (tableIA.rougeBille[j].dansPoche && !m.t.rougeBille[j].dansPoche)
score -= 40;
for (int j = 0, e = tableIA.jauneBille.length; j < e; ++j)
if (tableIA.jauneBille[j].dansPoche && !m.t.jauneBille[j].dansPoche)
score += 30;
if (tableIA.m.firstBTouche == null || !tableIA.m.firstBTouche.couleur.equals(Color.YELLOW))
score -= 50;
return score;
}
/**
* Calcul la valeur d'un coup si le joueur doit rentrer les billes rouges ou les billes jaunes.
*
* @return la valeur obtenue.
*/
public int evalCoupBlanc()
{
int score = 0;
Color c = getColFirstBDansPoch();
if (c != null)
{
if (tableIA.noireBille.dansPoche && !m.t.noireBille.dansPoche)
score -= 1000;
if (tableIA.blancheBille.dansPoche)
score -= 300;
for (int j = 0, e = tableIA.rougeBille.length; j < e; ++j)
if (tableIA.rougeBille[j].dansPoche && !m.t.rougeBille[j].dansPoche)
{
if (c.equals(Color.RED))
score += 20;
else
score -= 50;
}
for (int j = 0, e = tableIA.jauneBille.length; j < e; ++j)
if (tableIA.jauneBille[j].dansPoche && !m.t.jauneBille[j].dansPoche)
{
if (c.equals(Color.YELLOW))
score += 20;
else
score -= 50;
}
if (tableIA.m.firstBTouche == null)
score -= 100;
return score;
}
else
return score;
}
/**
* Calcul la valeur d'un coup si le joueur doit rentrer la bille noire
*
* @return la valeur obtenue.
*/
public int evalCoupNoir()
{
int score = 0;
if (tableIA.noireBille.dansPoche && !m.t.noireBille.dansPoche && m.nbRebond >= Moteur.OPT_nbRebBilleNoire)
score += 30;
if (tableIA.noireBille.dansPoche && !m.t.noireBille.dansPoche && m.nbRebond < Moteur.OPT_nbRebBilleNoire)
score -= 300;
if (tableIA.blancheBille.dansPoche)
score -= 300;
for (int j = 0, e = tableIA.rougeBille.length; j < e; ++j)
if (tableIA.rougeBille[j].dansPoche && !m.t.rougeBille[j].dansPoche)
score -= 300;
for (int j = 0, e = tableIA.jauneBille.length; j < e; ++j)
if (tableIA.jauneBille[j].dansPoche && !m.t.jauneBille[j].dansPoche)
score -= 300;
if (tableIA.m.firstBTouche == null || !tableIA.m.firstBTouche.couleur.equals(Color.BLACK))
score -= 300;
return score;
}
/**
* Calcul la valeur d'un coup si le joueur doit rentrer la bille blanche
*
* @return la valeur obtenue.
*/
public int evalCoupRentrerBlanche()
{
int score = 0;
if (tableIA.blancheBille.dansPoche && !m.t.blancheBille.dansPoche && m.nbRebond >= Moteur.OPT_nbRebBilleBlanche)
score += 30;
if (tableIA.blancheBille.dansPoche && !m.t.blancheBille.dansPoche && m.nbRebond < Moteur.OPT_nbRebBilleBlanche)
score -= 3000;
for (int j = 0, e = tableIA.rougeBille.length; j < e; ++j)
if (tableIA.rougeBille[j].dansPoche && !m.t.rougeBille[j].dansPoche)
score -= 3000;
for (int j = 0, e = tableIA.jauneBille.length; j < e; ++j)
if (tableIA.jauneBille[j].dansPoche && !m.t.jauneBille[j].dansPoche)
score -= 3000;
if (tableIA.m.firstBTouche == null)
score -= 300;
return score;
}
/**
* Pour avoir la couleur de la 1ere bille la liste
* des billes empochées.
* @return la couleur de la bille.
*/
public Color getColFirstBDansPoch ()
{
Bille b;
while (!tableIA.m.listBDansPoch.isEmpty())
{
b = tableIA.m.listBDansPoch.remove();
return b.couleur;
}
return null;
}
/**
* Verifi que la bille blanche n'est pas dans un trou.
* Si c'est le cas elle la place de manière aléatoire sur la table.
*/
public void verification ()
{
float xD, yD,
xG, yG;
if (m.bBlancDansPoch)
{
do
{
if (m.t.queue.coteTriangleCasse == 2)
{
xD = (float)( (int)(Math.random() * ((Table.ORI_X_T + Bille.RAYON) + 1
- (Table.WIDTH/4) ) )
+ (Table.WIDTH/4) );
yD = (float)( (int)(Math.random() * ((Table.ORI_Y_T + Bille.RAYON) + 1
- (Table.ORI_Y_T + Table.HEIGHT_T - Bille.RAYON) ) )
+ (Table.ORI_Y_T + Table.HEIGHT_T - Bille.RAYON) );
m.t.blancheBille.x = xD;
m.t.blancheBille.y = yD;
m.bBlancDansPoch = false;
m.t.blancheBille.dansPoche = false;
tableIA.blancheBille.x = xD;
tableIA.blancheBille.y = yD;
tableIA.m.bBlancDansPoch = false;
tableIA.blancheBille.dansPoche = false;
}
else
{
xG = (float)( (int)(Math.random() * (((Table.WIDTH/4)*3) + 1
- (Table.ORI_X_T+ Table.WIDTH_T - Bille.RAYON) ) )
+ (Table.ORI_X_T+ Table.WIDTH_T - Bille.RAYON) );
yG = (float)( (int)(Math.random() * ((Table.ORI_Y_T + Bille.RAYON) + 1
- (Table.ORI_Y_T + Table.HEIGHT_T - Bille.RAYON) ) )
+ (Table.ORI_Y_T + Table.HEIGHT_T - Bille.RAYON) );
m.t.blancheBille.x = xG;
m.t.blancheBille.y = yG;
m.bBlancDansPoch = false;
m.t.blancheBille.dansPoche = false;
tableIA.blancheBille.x = xG;
tableIA.blancheBille.y = yG;
tableIA.m.bBlancDansPoch = false;
tableIA.blancheBille.dansPoche = false;
}
}while(!m.t.verifCollision(m.t.blancheBille.x, m.t.blancheBille.y));
}
else
return;
}
/**
* Permet de réinitialiser toutes les billes
*/
public void reset ()
{
m.firstBTouche = null;
tableIA.blancheBille.initB(m.t.blancheBille);
tableIA.noireBille.initB(m.t.noireBille);
for (int j = 0, d = m.t.rougeBille.length; j < d; ++j)
tableIA.rougeBille[j].initB(m.t.rougeBille[j]);
for (int j = 0, d = m.t.jauneBille.length; j < d; ++j)
tableIA.jauneBille[j].initB(m.t.jauneBille[j]);
tableIA.m.listBDansPoch.clear();
}
/**
* Fait bouger les billes d'un "pixel"
*/
public void movingIA ()
{
for (int j = 0, d = tableIA.rougeBille.length; j < d; ++j)
if (tableIA.rougeBille[j].isMoving())
tableIA.rougeBille[j].bouleTraj.deplace();
for (int j = 0, d = tableIA.jauneBille.length; j < d; ++j)
if (tableIA.jauneBille[j].isMoving())
tableIA.jauneBille[j].bouleTraj.deplace();
if (tableIA.blancheBille.isMoving())
tableIA.blancheBille.bouleTraj.deplace();
if (tableIA.noireBille.isMoving())
tableIA.noireBille.bouleTraj.deplace();
}
}
| GeebToo/blackBall | IA.java |
283 | //{ Driver Code Starts
// Initial Template for Java
import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;
class GFG {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
while (T-- > 0) {
int n = sc.nextInt();
int a[] = new int[n];
for (int i = 0; i < n; i++) {
a[i] = sc.nextInt();
}
Solution obj = new Solution();
int ans = obj.minCandy(n, a);
System.out.println(ans);
}
}
}
// } Driver Code Ends
// User function Template for Java
class Solution {
static int minCandy(int N, int ratings[]) {
// Create an array to store the number of candies for each child.
int[] nums = new int[ratings.length];
// Initialize each child with 1 candy.
for (int i = 0; i < nums.length; i++) {
nums[i] = 1;
}
// Traverse the ratings array from left to right.
for (int i = 1; i < nums.length; i++) {
// If the current child has a higher rating than the previous one,
// give them one more candy than the previous child.
if (ratings[i] > ratings[i - 1]) {
nums[i] = nums[i - 1] + 1;
}
}
// Traverse the ratings array from right to left.
for (int i = nums.length - 1; i >= 1; i--) {
// If the rating of the previous child is higher than the current one,
// and the number of candies for the previous child is not greater
// than or equal to the current child, update the candies for the previous child.
if (ratings[i - 1] > ratings[i] && nums[i - 1] <= nums[i]) {
nums[i - 1] = nums[i] + 1;
}
}
// Calculate the total sum of candies given to all children.
int sum = 0;
for (int i = 0; i < nums.length; i++) {
sum = sum + nums[i];
}
// Return the total sum of candies.
return sum;
}
}
| dhruvabhat24/Geeks-For-Geeks-December | 21.java |
284 | class Solution {
public String countAndSay(int n) {
//FBIP 2R
//just pure string manipulation...
StringBuilder curr = new StringBuilder("1");
StringBuilder prev = new StringBuilder();
char say;
int count;
for (int i = 1; i < n; i++){
prev = curr;
curr = new StringBuilder();
count = 1;
say = prev.charAt(0);
for (int j = 1; j < prev.length(); j++){
if (prev.charAt(j) != say){
curr.append(count).append(say);
count = 1;
say = prev.charAt(j);
}
else count++;
}
curr.append(count).append(say);
}
return curr.toString();
}
}
| EdwardHXu/FBIP-LC | 38.java |
286 | import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.ComparisonChain;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.UUID;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.minecraft.server.MinecraftServer;
public class o
{
private static final Pattern a = Pattern.compile("^@([pare])(?:\\[([\\w=,!-]*)\\])?$");
private static final Pattern b = Pattern.compile("\\G([-!]?[\\w-]*)(?:$|,)");
private static final Pattern c = Pattern.compile("\\G(\\w+)=([-!]?[\\w-]*)(?:$|,)");
private static final Set<String> d = Sets.newHashSet(new String[] { "x", "y", "z", "dx", "dy", "dz", "rm", "r" });
public static lr a(m ☃, String ☃)
{
return (lr)a(☃, ☃, lr.class);
}
public static <T extends rr> T a(m ☃, String ☃, Class<? extends T> ☃)
{
List<T> ☃ = b(☃, ☃, ☃);
return ☃.size() == 1 ? (rr)☃.get(0) : null;
}
public static eu b(m ☃, String ☃)
{
List<rr> ☃ = b(☃, ☃, rr.class);
if (☃.isEmpty()) {
return null;
}
List<eu> ☃ = Lists.newArrayList();
for (rr ☃ : ☃) {
☃.add(☃.i_());
}
return i.a(☃);
}
public static <T extends rr> List<T> b(m ☃, String ☃, Class<? extends T> ☃)
{
Matcher ☃ = a.matcher(☃);
if ((☃.matches()) && (☃.a(1, "@")))
{
Map<String, String> ☃ = c(☃.group(2));
if (!b(☃, ☃)) {
return Collections.emptyList();
}
String ☃ = ☃.group(1);
cj ☃ = a(☃, ☃.c());
bbj ☃ = b(☃, ☃.d());
List<aht> ☃ = a(☃, ☃);
List<T> ☃ = Lists.newArrayList();
for (aht ☃ : ☃) {
if (☃ != null)
{
List<Predicate<rr>> ☃ = Lists.newArrayList();
☃.addAll(a(☃, ☃));
☃.addAll(b(☃));
☃.addAll(c(☃));
☃.addAll(d(☃));
☃.addAll(c(☃, ☃));
☃.addAll(e(☃));
☃.addAll(f(☃));
☃.addAll(a(☃, ☃));
☃.addAll(g(☃));
☃.addAll(a(☃, ☃, ☃, ☃, ☃, ☃));
}
}
return a(☃, ☃, ☃, ☃, ☃, ☃);
}
return Collections.emptyList();
}
private static List<aht> a(m ☃, Map<String, String> ☃)
{
List<aht> ☃ = Lists.newArrayList();
if (h(☃)) {
☃.add(☃.e());
} else {
Collections.addAll(☃, ☃.h().d);
}
return ☃;
}
private static <T extends rr> boolean b(m ☃, Map<String, String> ☃)
{
String ☃ = b(☃, "type");
☃ = (☃ != null) && (☃.startsWith("!")) ? ☃.substring(1) : ☃;
if ((☃ != null) && (!rt.b(☃)))
{
fb ☃ = new fb("commands.generic.entity.invalidType", new Object[] { ☃ });
☃.b().a(a.m);
☃.a(☃);
return false;
}
return true;
}
private static List<Predicate<rr>> a(Map<String, String> ☃, String ☃)
{
List<Predicate<rr>> ☃ = Lists.newArrayList();
String ☃ = b(☃, "type");
final boolean ☃ = (☃ != null) && (☃.startsWith("!"));
if (☃) {
☃ = ☃.substring(1);
}
String ☃ = ☃;
boolean ☃ = !☃.equals("e");
boolean ☃ = (☃.equals("r")) && (☃ != null);
if (((☃ != null) && (☃.equals("e"))) || (☃)) {
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
return rt.a(☃, this.a) != ☃;
}
});
} else if (☃) {
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
return ☃ instanceof zj;
}
});
}
return ☃;
}
private static List<Predicate<rr>> b(Map<String, String> ☃)
{
List<Predicate<rr>> ☃ = Lists.newArrayList();
int ☃ = a(☃, "lm", -1);
final int ☃ = a(☃, "l", -1);
if ((☃ > -1) || (☃ > -1)) {
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
if (!(☃ instanceof lr)) {
return false;
}
lr ☃ = (lr)☃;
return ((this.a <= -1) || (☃.bK >= this.a)) && ((☃ <= -1) || (☃.bK <= ☃));
}
});
}
return ☃;
}
private static List<Predicate<rr>> c(Map<String, String> ☃)
{
List<Predicate<rr>> ☃ = Lists.newArrayList();
String ☃ = b(☃, "m");
if (☃ == null) {
return ☃;
}
boolean ☃ = ☃.startsWith("!");
if (☃) {
☃ = ☃.substring(1);
}
ahw.a ☃;
try
{
int ☃ = Integer.parseInt(☃);
☃ = ahw.a.a(☃, ahw.a.a);
}
catch (Throwable ☃)
{
☃ = ahw.a.a(☃, ahw.a.a);
}
final ahw.a ☃ = ☃;
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
if (!(☃ instanceof lr)) {
return false;
}
lr ☃ = (lr)☃;
ahw.a ☃ = ☃.c.b();
return ☃ != ☃;
}
});
return ☃;
}
private static List<Predicate<rr>> d(Map<String, String> ☃)
{
List<Predicate<rr>> ☃ = Lists.newArrayList();
String ☃ = b(☃, "team");
final boolean ☃ = (☃ != null) && (☃.startsWith("!"));
if (☃) {
☃ = ☃.substring(1);
}
String ☃ = ☃;
if (☃ != null) {
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
if (!(☃ instanceof sa)) {
return false;
}
sa ☃ = (sa)☃;
bbr ☃ = ☃.aO();
String ☃ = ☃ == null ? "" : ☃.b();
return ☃.equals(this.a) != ☃;
}
});
}
return ☃;
}
private static List<Predicate<rr>> c(m ☃, Map<String, String> ☃)
{
final Map<String, Integer> ☃ = a(☃);
if (☃.isEmpty()) {
return Collections.emptyList();
}
Lists.newArrayList(new Predicate[] { new Predicate()
{
public boolean a(rr ☃)
{
if (☃ == null) {
return false;
}
bbp ☃ = this.a.h().a(0).ad();
for (Map.Entry<String, Integer> ☃ : ☃.entrySet())
{
String ☃ = (String)☃.getKey();
boolean ☃ = false;
if ((☃.endsWith("_min")) && (☃.length() > 4))
{
☃ = true;
☃ = ☃.substring(0, ☃.length() - 4);
}
bbl ☃ = ☃.b(☃);
if (☃ == null) {
return false;
}
String ☃ = (☃ instanceof lr) ? ☃.h_() : ☃.bc().toString();
if (!☃.b(☃, ☃)) {
return false;
}
bbn ☃ = ☃.c(☃, ☃);
int ☃ = ☃.c();
if ((☃ < ((Integer)☃.getValue()).intValue()) && (☃)) {
return false;
}
if ((☃ > ((Integer)☃.getValue()).intValue()) && (!☃)) {
return false;
}
}
return true;
}
} });
}
private static List<Predicate<rr>> e(Map<String, String> ☃)
{
List<Predicate<rr>> ☃ = Lists.newArrayList();
String ☃ = b(☃, "name");
final boolean ☃ = (☃ != null) && (☃.startsWith("!"));
if (☃) {
☃ = ☃.substring(1);
}
String ☃ = ☃;
if (☃ != null) {
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
return (☃ != null) && (☃.h_().equals(this.a) != ☃);
}
});
}
return ☃;
}
private static List<Predicate<rr>> f(Map<String, String> ☃)
{
List<Predicate<rr>> ☃ = Lists.newArrayList();
String ☃ = b(☃, "tag");
final boolean ☃ = (☃ != null) && (☃.startsWith("!"));
if (☃) {
☃ = ☃.substring(1);
}
if (☃ != null)
{
String ☃ = ☃;
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
if (☃ == null) {
return false;
}
if ("".equals(this.a)) {
return ☃.P().isEmpty() != ☃;
}
return ☃.P().contains(this.a) != ☃;
}
});
}
return ☃;
}
private static List<Predicate<rr>> a(Map<String, String> ☃, bbj ☃)
{
double ☃ = a(☃, "rm", -1);
double ☃ = a(☃, "r", -1);
final boolean ☃ = ☃ < -0.5D;
boolean ☃ = ☃ < -0.5D;
if ((☃) && (☃)) {
return Collections.emptyList();
}
double ☃ = Math.max(☃, 1.0E-4D);
final double ☃ = ☃ * ☃;
double ☃ = Math.max(☃, 1.0E-4D);
final double ☃ = ☃ * ☃;
Lists.newArrayList(new Predicate[] { new Predicate()
{
public boolean a(rr ☃)
{
if (☃ == null) {
return false;
}
double ☃ = this.a.c(☃.p, ☃.q, ☃.r);
return ((☃) || (☃ >= ☃)) && ((☃) || (☃ <= this.e));
}
} });
}
private static List<Predicate<rr>> g(Map<String, String> ☃)
{
List<Predicate<rr>> ☃ = Lists.newArrayList();
if ((☃.containsKey("rym")) || (☃.containsKey("ry")))
{
int ☃ = on.b(a(☃, "rym", 0));
final int ☃ = on.b(a(☃, "ry", 359));
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
if (☃ == null) {
return false;
}
int ☃ = on.b(on.d(☃.v));
if (this.a > ☃) {
return (☃ >= this.a) || (☃ <= ☃);
}
return (☃ >= this.a) && (☃ <= ☃);
}
});
}
if ((☃.containsKey("rxm")) || (☃.containsKey("rx")))
{
int ☃ = on.b(a(☃, "rxm", 0));
final int ☃ = on.b(a(☃, "rx", 359));
☃.add(new Predicate()
{
public boolean a(rr ☃)
{
if (☃ == null) {
return false;
}
int ☃ = on.b(on.d(☃.w));
if (this.a > ☃) {
return (☃ >= this.a) || (☃ <= ☃);
}
return (☃ >= this.a) && (☃ <= ☃);
}
});
}
return ☃;
}
private static <T extends rr> List<T> a(Map<String, String> ☃, Class<? extends T> ☃, List<Predicate<rr>> ☃, String ☃, aht ☃, cj ☃)
{
List<T> ☃ = Lists.newArrayList();
String ☃ = b(☃, "type");
☃ = (☃ != null) && (☃.startsWith("!")) ? ☃.substring(1) : ☃;
boolean ☃ = !☃.equals("e");
boolean ☃ = (☃.equals("r")) && (☃ != null);
int ☃ = a(☃, "dx", 0);
int ☃ = a(☃, "dy", 0);
int ☃ = a(☃, "dz", 0);
int ☃ = a(☃, "r", -1);
Predicate<rr> ☃ = Predicates.and(☃);
Predicate<rr> ☃ = Predicates.and(rv.a, ☃);
int ☃ = ☃.i.size();
int ☃ = ☃.e.size();
boolean ☃ = ☃ < ☃ / 16;
if ((☃.containsKey("dx")) || (☃.containsKey("dy")) || (☃.containsKey("dz")))
{
bbh ☃ = a(☃, ☃, ☃, ☃);
if ((☃) && (☃) && (!☃))
{
Predicate<rr> ☃ = new Predicate()
{
public boolean a(rr ☃)
{
return (☃ != null) && (this.a.b(☃.bl()));
}
};
☃.addAll(☃.b(☃, Predicates.and(☃, ☃)));
}
else
{
☃.addAll(☃.a(☃, ☃, ☃));
}
}
else if (☃ >= 0)
{
bbh ☃ = new bbh(☃.p() - ☃, ☃.q() - ☃, ☃.r() - ☃, ☃.p() + ☃ + 1, ☃.q() + ☃ + 1, ☃.r() + ☃ + 1);
if ((☃) && (☃) && (!☃)) {
☃.addAll(☃.b(☃, ☃));
} else {
☃.addAll(☃.a(☃, ☃, ☃));
}
}
else if (☃.equals("a"))
{
☃.addAll(☃.b(☃, ☃));
}
else if ((☃.equals("p")) || ((☃.equals("r")) && (!☃)))
{
☃.addAll(☃.b(☃, ☃));
}
else
{
☃.addAll(☃.a(☃, ☃));
}
return ☃;
}
private static <T extends rr> List<T> a(List<T> ☃, Map<String, String> ☃, m ☃, Class<? extends T> ☃, String ☃, cj ☃)
{
int ☃ = a(☃, "c", (☃.equals("a")) || (☃.equals("e")) ? 0 : 1);
if ((☃.equals("p")) || (☃.equals("a")) || (☃.equals("e"))) {
Collections.sort(☃, new Comparator()
{
public int a(rr ☃, rr ☃)
{
return ComparisonChain.start().compare(☃.c(this.a), ☃.c(this.a)).result();
}
});
} else if (☃.equals("r")) {
Collections.shuffle(☃);
}
rr ☃ = ☃.f();
if ((☃ != null) && (☃.isAssignableFrom(☃.getClass())) && (☃ == 1) && (☃.contains(☃)) && (!"r".equals(☃))) {
☃ = Lists.newArrayList(new rr[] { ☃ });
}
if (☃ != 0)
{
if (☃ < 0) {
Collections.reverse(☃);
}
☃ = ☃.subList(0, Math.min(Math.abs(☃), ☃.size()));
}
return ☃;
}
private static bbh a(cj ☃, int ☃, int ☃, int ☃)
{
boolean ☃ = ☃ < 0;
boolean ☃ = ☃ < 0;
boolean ☃ = ☃ < 0;
int ☃ = ☃.p() + (☃ ? ☃ : 0);
int ☃ = ☃.q() + (☃ ? ☃ : 0);
int ☃ = ☃.r() + (☃ ? ☃ : 0);
int ☃ = ☃.p() + (☃ ? 0 : ☃) + 1;
int ☃ = ☃.q() + (☃ ? 0 : ☃) + 1;
int ☃ = ☃.r() + (☃ ? 0 : ☃) + 1;
return new bbh(☃, ☃, ☃, ☃, ☃, ☃);
}
private static cj a(Map<String, String> ☃, cj ☃)
{
return new cj(a(☃, "x", ☃.p()), a(☃, "y", ☃.q()), a(☃, "z", ☃.r()));
}
private static bbj b(Map<String, String> ☃, bbj ☃)
{
return new bbj(a(☃, "x", ☃.b, true), a(☃, "y", ☃.c, false), a(☃, "z", ☃.d, true));
}
private static double a(Map<String, String> ☃, String ☃, double ☃, boolean ☃)
{
return ☃.containsKey(☃) ? on.a((String)☃.get(☃), on.c(☃)) + (☃ ? 0.5D : 0.0D) : ☃;
}
private static boolean h(Map<String, String> ☃)
{
for (String ☃ : d) {
if (☃.containsKey(☃)) {
return true;
}
}
return false;
}
private static int a(Map<String, String> ☃, String ☃, int ☃)
{
return ☃.containsKey(☃) ? on.a((String)☃.get(☃), ☃) : ☃;
}
private static String b(Map<String, String> ☃, String ☃)
{
return (String)☃.get(☃);
}
public static Map<String, Integer> a(Map<String, String> ☃)
{
Map<String, Integer> ☃ = Maps.newHashMap();
for (String ☃ : ☃.keySet()) {
if ((☃.startsWith("score_")) && (☃.length() > "score_".length())) {
☃.put(☃.substring("score_".length()), Integer.valueOf(on.a((String)☃.get(☃), 1)));
}
}
return ☃;
}
public static boolean a(String ☃)
{
Matcher ☃ = a.matcher(☃);
if (☃.matches())
{
Map<String, String> ☃ = c(☃.group(2));
String ☃ = ☃.group(1);
int ☃ = ("a".equals(☃)) || ("e".equals(☃)) ? 0 : 1;
return a(☃, "c", ☃) != 1;
}
return false;
}
public static boolean b(String ☃)
{
return a.matcher(☃).matches();
}
private static Map<String, String> c(String ☃)
{
Map<String, String> ☃ = Maps.newHashMap();
if (☃ == null) {
return ☃;
}
int ☃ = 0;
int ☃ = -1;
Matcher ☃ = b.matcher(☃);
while (☃.find())
{
String ☃ = null;
switch (☃++)
{
case 0:
☃ = "x";
break;
case 1:
☃ = "y";
break;
case 2:
☃ = "z";
break;
case 3:
☃ = "r";
}
if ((☃ != null) && (!☃.group(1).isEmpty())) {
☃.put(☃, ☃.group(1));
}
☃ = ☃.end();
}
if (☃ < ☃.length())
{
Matcher ☃ = c.matcher(☃ == -1 ? ☃ : ☃.substring(☃));
while (☃.find()) {
☃.put(☃.group(1), ☃.group(2));
}
}
return ☃;
}
}
| MCLabyMod/LabyMod-1.9 | o.java |
290 | //{ Driver Code Starts
import java.io.*;
import java.util.*;
class GFG
{
public static void main(String args[])throws IOException
{
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while(t-- > 0)
{
int n = sc.nextInt();
int matrix[][] = new int[n][n];
for(int i = 0; i < n; i++)
for(int j = 0; j < n; j++)
matrix[i][j] = sc.nextInt();
Solution ob = new Solution();
ArrayList<Integer> ans = ob.sumTriangles(matrix,n);
for (Integer val: ans)
System.out.print(val+" ");
System.out.println();
}
}
}
// } Driver Code Ends
//User function Template for Java
class Solution
{
//Function to return sum of upper and lower triangles of a matrix.
static ArrayList<Integer> sumTriangles(int mat[][], int n)
{
// code here
ArrayList<Integer> al = new ArrayList<>();
int a = 0;
int b = 0;
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
if(j<=i) a+=mat[i][j];
if(j>=i) b+=mat[i][j];
}
}
al.add(b);
al.add(a);
return al;
}
}
| dhruvabhat24/Geeks-4-Geeks_November | 7.java |
292 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package stclustering;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
*
* @author youcefd
*/
public class IO {
static ArrayList<ArrayList<Float>> matrix = new ArrayList<ArrayList<Float>>();
static ArrayList<Data> database=new ArrayList<Data>();
static int m=1500;
static int n=10;
/**************************************************************************/
void ReadFile()
{
}
/*************************************************************************/
void GenerateData()
{
Random r=new Random();
for (int i=0;i<m;i++)
{ Data d=new Data();
for (int j=0;j<n;j++)
{
Point p=new Point();
p.time=j+1;
p.value=r.nextFloat();
d.ts.add(p);
}
d.x=r.nextDouble();
d.y=r.nextDouble();
database.add(d);
}
}
/*************************************************************/
void DisplayData()
{
Data d=new Data();
for (int i=0;i<m;i++)
{
d= database.get(i);
for (int j=0;j<n;j++)
{
Point p=new Point();
p=d.ts.get(j);
System.out.print(p.time+ " "+ p.value);
}
System.out.println(" ***"+ d.x+ " "+ d.y);
}
}
/*************************************************************/
void MatrixDistances()
{
Distances dist=new Distances();
for (int i=0;i<database.size();i++)
{
matrix.add(new ArrayList<Float>());
for (int j=0;j<database.size();j++)
{
// matrix.get(i).add(dist.Euclidian(database.get(i),database.get(j)));
//matrix.get(i).add(dist.DTW(database.get(i),database.get(j)));
//matrix.get(i).add(dist.STS(database.get(i),database.get(j)));
matrix.get(i).add(dist.Dismiss(database.get(i),database.get(j)));
/* if(i!=j)
{
matrix.get(i).add(dist.PC(database.get(i),database.get(j)));
}
else
{
matrix.get(i).add((float)0);
}*/
}
//System.out.println();
}
}
/**********************************************************************/
void DisplayMatrixDistances()
{
Distances dist=new Distances();
for (int i=0;i<matrix.size();i++)
{
ArrayList row = new ArrayList<Float>();
row=matrix.get(i);
for (int j=0;j<row.size();j++)
{
float val=(float)row.get(j);
System.out.print(val +" ");
}
System.out.println();
}
}
}
| YousIA/GTOD | IO.java |
293 | /* GameLoop
Brett Binnersley, V00776751
Generates and returns unique ID's as integers.
*/
class ID {
private static int _id = 0;
public static int GenID() {
int id = _id;
++_id;
return id;
}
}
| bbinn/csc205_a2 | ID.java |
294 | package _2017._09._assignments.projectgo.template.v2;
//imports
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
//class defnition f
public class Go extends Application {
// private fields
private BorderPane bp_layout;
private GoCustomControl customControl;
private GoControlPanel controlPanel;
private GoGameLogic gameLogic;
private GoBoard board;
// overridden init method
public void init() {
bp_layout = new BorderPane(); // create layout
board = new GoBoard(); // creates a board
gameLogic = new GoGameLogic(board); // create gameLogic and pass board to gameLogic so gameLogic can call methods from board
customControl = new GoCustomControl(gameLogic); // create customControl and pass gameLogic to customControl so customControl can call methods from gameLogic
controlPanel = new GoControlPanel(gameLogic); // create controlPanel and pass gameLogic to controlPanel so customControl can call methods from gameLogic
bp_layout.setCenter(customControl); // put the customControl in the center of the layout
bp_layout.setLeft(controlPanel); // put the controlPanel in the right of the layout
}
// overridden start method
public void start(Stage primaryStage) {
// set a title, size and the stack pane as the root of the scene graph
primaryStage.setTitle("Go");
primaryStage.setScene(new Scene(bp_layout, 1000, 800));
primaryStage.show();
}
// overridden stop method
public void stop() {
System.out.println("Application closed");
}
// entry point into our program for launching our javafx applicaton
public static void main(String[] args) {
//T1
launch(args);
}
}
| JosephCheevers/GO | Go.java |
295 | //{ Driver Code Starts
//Initial Template for Java
/*package whatever //do not write package name here */
import java.io.*;
import java.util.*;
class GFG {
public static void main (String[] args) {
//taking input using Scanner class
Scanner sc=new Scanner(System.in);
//taking total testcases
int t=sc.nextInt();
sc.nextLine();
while(t-->0)
{
//taking String X and Y
String S[]=sc.nextLine().split(" ");
String X=S[0];
String Y=S[1];
//calling function shortestCommonSupersequence()
System.out.println(new Solution().shortestCommonSupersequence(X, Y, X.length(), Y.length()));
}
}
}
// } Driver Code Ends
//User function Template for Java
class Solution
{
//Function to find length of shortest common supersequence of two strings.
public static int shortestCommonSupersequence(String X,String Y,int m,int n) {
int dp[] = new int[n+1],cur[] = new int[n+1];
for(int i=1;i<=m;i++){
for(int j=1;j<=n;j++)
cur[j]=(X.charAt(i-1)==Y.charAt(j-1))?1+dp[j-1]:Math.max(dp[j],cur[j-1]);
dp=cur.clone();
} return m+n-dp[n];
}
}
| dhruvabhat24/Geeks-4-Geeks_November | 13.java |