mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-21 11:03:13 -04:00
Added CreatureObject.isStatesBitmask() and a test case for testing vehicle mounts
This commit is contained in:
@@ -605,6 +605,14 @@ public class CreatureObject extends TangibleObject {
|
||||
public long getStatesBitmask() {
|
||||
return statesBitmask;
|
||||
}
|
||||
|
||||
public boolean isStatesBitmask(CreatureState ... states) {
|
||||
for (CreatureState state : states) {
|
||||
if ((statesBitmask & state.getBitmask()) == 0)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void setStatesBitmask(CreatureState ... states) {
|
||||
for (CreatureState state : states)
|
||||
|
||||
Reference in New Issue
Block a user