Starsector API
Loading...
Searching...
No Matches
MutableValue.java
Go to the documentation of this file.
1package com.fs.starfarer.api.util;
2
3
4public class MutableValue {
5
6 private float value;
7
8 public MutableValue(float value) {
9 this.value = value;
10 }
11
12 public MutableValue() {
13 super();
14 }
15
16 public float get() {
17 return value;
18 }
19
20 public void set(float value) {
21 this.value = value;
22 }
23
24 public void add(float amt) {
25 value += amt;
26 }
27
28 public void subtract(float amt) {
29 value -= amt;
30 }
31}