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;
|
|
|
|
|
|
|
|
public class InteractionRoomAds extends InteractionCustomValues
|
|
|
|
{
|
|
|
|
public final static THashMap<String, String> defaultValues = new THashMap<String, String>()
|
|
|
|
{
|
2018-12-22 11:39:00 +01:00
|
|
|
{put("imageUrl", "http://arcturus.pw/ads_background.png");}
|
|
|
|
{put("clickUrl", "http://arcturus.pw");}
|
2018-07-06 15:30:00 +02:00
|
|
|
{put("offsetX", "0");}
|
|
|
|
{put("offsetY", "0");}
|
|
|
|
{put("offsetZ", "0");}
|
|
|
|
};
|
|
|
|
|
|
|
|
public InteractionRoomAds(ResultSet set, Item baseItem) throws SQLException
|
|
|
|
{
|
|
|
|
super(set, baseItem, defaultValues);
|
|
|
|
}
|
|
|
|
|
|
|
|
public InteractionRoomAds(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells)
|
|
|
|
{
|
|
|
|
super(id, userId, item, extradata, limitedStack, limitedSells, defaultValues);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean canWalkOn(RoomUnit roomUnit, Room room, Object[] objects)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isWalkable()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|