daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Nov 9th, 2018 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package sk.tuke.kpi.oop.game.actions;
  2.  
  3. import sk.tuke.kpi.gamelib.framework.actions.AbstractAction;
  4. import sk.tuke.kpi.oop.game.Reactor;
  5.  
  6. public class PerpetualReactorHeating extends AbstractAction<Reactor> {
  7.     private int increment;
  8.  
  9.     public PerpetualReactorHeating(int increment) {
  10.         this.increment = increment;
  11.     }
  12.  
  13.     @Override
  14.     public void execute(float deltaTime) {
  15.         Reactor reactor = getActor();
  16.         if (reactor == null) return;
  17.         reactor.increaseTemperature(increment);
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top