Files
prestonbane/src/engine/objects/PowersBaseAttribute.java
T

66 lines
1.9 KiB
Java
Raw Normal View History

2022-04-30 09:41:17 -04:00
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
// Magicbane Emulator Project © 2013 - 2022
// www.magicbane.com
2023-07-15 09:23:48 -04:00
package engine.objects;
2022-04-30 09:41:17 -04:00
import java.sql.ResultSet;
import java.sql.SQLException;
public class PowersBaseAttribute extends AbstractGameObject {
2023-07-15 09:23:48 -04:00
private final short attributeID;
private final short modValue;
private final short castTime;
private final short duration;
private final short recycleTime;
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
/**
* ResultSet Constructor
*/
public PowersBaseAttribute(ResultSet rs) throws SQLException {
super(rs);
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
this.attributeID = rs.getShort("attributeID");
this.modValue = rs.getShort("modValue");
this.castTime = rs.getShort("castTime");
this.duration = rs.getShort("duration");
this.recycleTime = rs.getShort("recycleTime");
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
/*
* Getters
*/
public short getAttributeID() {
return attributeID;
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
public short getModValue() {
return modValue;
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
public short getCastTime() {
return castTime;
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
public short getDuration() {
return duration;
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
public short getRecycleTime() {
return recycleTime;
}
2022-04-30 09:41:17 -04:00
2023-07-15 09:23:48 -04:00
@Override
public void updateDatabase() {
// TODO Create update logic.
}
2022-04-30 09:41:17 -04:00
}