Add a couple more modem methods for back compat
This commit is contained in:
parent
f765b6a487
commit
97c2421a22
|
@ -39,6 +39,20 @@ public ModemState getModemState()
|
|||
return m_state;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean pollChanged()
|
||||
{
|
||||
// Only for backwards compatibiliy
|
||||
return m_state.pollChanged();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean isActive()
|
||||
{
|
||||
// Only for backwards compatibiliy
|
||||
return m_state.isOpen();
|
||||
}
|
||||
|
||||
private synchronized void setNetwork( IPacketNetwork network )
|
||||
{
|
||||
if( m_network == network ) return;
|
||||
|
|
|
@ -24,6 +24,7 @@ public WirelessModemPeripheral( ModemState state, boolean advanced )
|
|||
@Deprecated
|
||||
public WirelessModemPeripheral( boolean advanced )
|
||||
{
|
||||
// Only for backwards compatibiliy
|
||||
this( new ModemState(), advanced );
|
||||
}
|
||||
|
||||
|
@ -32,7 +33,7 @@ public boolean isInterdimensional()
|
|||
{
|
||||
return m_advanced;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public double getRange()
|
||||
{
|
||||
|
@ -62,7 +63,7 @@ public double getRange()
|
|||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected IPacketNetwork getNetwork()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue