Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionRoomAds.java

52 lines
1.3 KiB
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.items.interactions;
import com.eu.habbo.habbohotel.items.Item;
import com.eu.habbo.habbohotel.rooms.Room;
import com.eu.habbo.habbohotel.rooms.RoomUnit;
import gnu.trove.map.hash.THashMap;
import java.sql.ResultSet;
import java.sql.SQLException;
2019-05-26 20:14:53 +02:00
public class InteractionRoomAds extends InteractionCustomValues {
public final static THashMap<String, String> defaultValues = new THashMap<String, String>() {
2019-03-18 02:22:00 +01:00
{
2019-05-26 20:14:53 +02:00
this.put("imageUrl", "");
}
2019-03-18 02:22:00 +01:00
{
2019-05-26 20:14:53 +02:00
this.put("clickUrl", "");
}
2019-03-18 02:22:00 +01:00
{
2019-05-26 20:14:53 +02:00
this.put("offsetX", "0");
}
2019-03-18 02:22:00 +01:00
{
2019-05-26 20:14:53 +02:00
this.put("offsetY", "0");
}
2019-03-18 02:22:00 +01:00
{
2019-05-26 20:14:53 +02:00
this.put("offsetZ", "0");
}
2018-07-06 15:30:00 +02:00
};
2019-05-26 20:14:53 +02:00
public InteractionRoomAds(ResultSet set, Item baseItem) throws SQLException {
2018-07-06 15:30:00 +02:00
super(set, baseItem, defaultValues);
}
2019-05-26 20:14:53 +02:00
public InteractionRoomAds(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) {
2018-07-06 15:30:00 +02:00
super(id, userId, item, extradata, limitedStack, limitedSells, defaultValues);
}
@Override
2019-05-26 20:14:53 +02:00
public boolean canWalkOn(RoomUnit roomUnit, Room room, Object[] objects) {
2018-07-06 15:30:00 +02:00
return true;
}
@Override
2019-05-26 20:14:53 +02:00
public boolean isWalkable() {
2018-07-06 15:30:00 +02:00
return true;
}
}