mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-10-25 03:53:06 +02:00
32 lines
643 B
Java
32 lines
643 B
Java
package com.eu.habbo.habbohotel.pets;
|
|
|
|
import java.sql.ResultSet;
|
|
import java.sql.SQLException;
|
|
|
|
public class PetRace
|
|
{
|
|
|
|
public final int race;
|
|
|
|
|
|
public final int colorOne;
|
|
|
|
|
|
public final int colorTwo;
|
|
|
|
|
|
public final boolean hasColorOne;
|
|
|
|
|
|
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");
|
|
}
|
|
}
|