Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/pets/PetRace.java

32 lines
643 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.pets;
import java.sql.ResultSet;
import java.sql.SQLException;
public class PetRace
{
2018-12-22 11:39:00 +01:00
2018-07-06 15:30:00 +02:00
public final int race;
2018-12-22 11:39:00 +01:00
2018-07-06 15:30:00 +02:00
public final int colorOne;
2018-12-22 11:39:00 +01:00
2018-07-06 15:30:00 +02:00
public final int colorTwo;
2018-12-22 11:39:00 +01:00
2018-07-06 15:30:00 +02:00
public final boolean hasColorOne;
2018-12-22 11:39:00 +01:00
2018-07-06 15:30:00 +02:00
public final boolean hasColorTwo;
public PetRace(ResultSet set) throws SQLException
{
this.race = set.getInt("race");
this.colorOne = set.getInt("color_one");
this.colorTwo = set.getInt("color_two");
this.hasColorOne = set.getString("has_color_one").equals("1");
this.hasColorTwo = set.getString("has_color_two").equals("1");
}
}