public LegoNxtMotorActionBrick(Sprite sprite, Motor motor, Formula speedFormula) { this.sprite = sprite; this.motorEnum = motor; this.motor = motorEnum.name(); this.speed = speedFormula; }
public LegoNxtMotorActionBrick(Sprite sprite, Motor motor, int speedValue) { this.sprite = sprite; this.motorEnum = motor; this.motor = motorEnum.name(); this.speed = new Formula(speedValue); }
@Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { motorEnum = Motor.values()[position]; motor = motorEnum.name(); }
public LegoNxtMotorStopBrick(Sprite sprite, Motor motor) { this.sprite = sprite; this.motorEnum = motor; this.motor = motorEnum.name(); }
public PhiroMotorStopBrick(Motor motor) { this.motorEnum = motor; this.motor = motorEnum.name(); }