Removed setEnabled() and isEnabled() from the Control

interface since no engine uses of Control will ever call
these methods.  The functionality is still left in 
AbstractControl which makes more sense since it is up
to the control implementation to enable or disable itself
as it sees fit.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9268 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 13 years ago
parent 4e12127f27
commit 198979bf5a
  1. 12
      engine/src/core/com/jme3/scene/control/Control.java

@ -61,18 +61,6 @@ public interface Control extends Savable {
*/
public void setSpatial(Spatial spatial);
/**
* @param enabled Enable or disable the control. If disabled, update()
* should do nothing.
*/
public void setEnabled(boolean enabled);
/**
* @return True if enabled, false otherwise.
* @see Control#setEnabled(boolean)
*/
public boolean isEnabled();
/**
* Updates the control. This should not be called from user code.
* @param tpf Time per frame.

Loading…
Cancel
Save