2020-06-22 22:16:27 -04:00
|
|
|
package test;
|
|
|
|
|
|
|
|
public class AClass {
|
|
|
|
public static int staticintval = 100;
|
2021-04-18 14:30:04 -04:00
|
|
|
public static boolean staticboolval = true;
|
2020-06-22 22:16:27 -04:00
|
|
|
|
|
|
|
public int intval = 0;
|
|
|
|
|
|
|
|
public static int GetStaticInt() {
|
|
|
|
return staticintval;
|
|
|
|
}
|
|
|
|
|
2021-04-18 14:30:04 -04:00
|
|
|
public static boolean GetStaticBoolean() {
|
|
|
|
return staticboolval;
|
|
|
|
}
|
|
|
|
|
2020-06-22 22:16:27 -04:00
|
|
|
public static void SetStaticInt(int val) {
|
|
|
|
staticintval = val;
|
|
|
|
}
|
|
|
|
|
2021-04-18 14:30:04 -04:00
|
|
|
public static void SetStaticBoolean(boolean val) {
|
|
|
|
staticboolval = val;
|
|
|
|
}
|
|
|
|
|
2020-06-22 22:16:27 -04:00
|
|
|
public void IncInt() {
|
|
|
|
intval = intval + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int GetInt() {
|
|
|
|
return intval;
|
|
|
|
}
|
|
|
|
|
2020-06-26 15:40:17 -04:00
|
|
|
public boolean GetBoolean() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte GetByte() {
|
|
|
|
return 127;
|
|
|
|
}
|
|
|
|
|
|
|
|
public char GetChar() {
|
|
|
|
return 65432;
|
|
|
|
}
|
|
|
|
|
|
|
|
public short GetShort() {
|
|
|
|
return 512;
|
|
|
|
}
|
|
|
|
|
|
|
|
public long GetLong() {
|
|
|
|
return 1L<<33;
|
|
|
|
}
|
|
|
|
|
|
|
|
public float GetFloat() {
|
|
|
|
return 4.321f;
|
|
|
|
}
|
|
|
|
|
|
|
|
public double GetDouble() {
|
|
|
|
return 5.4321;
|
|
|
|
}
|
|
|
|
|
2020-06-22 22:16:27 -04:00
|
|
|
public void SetInt(int val) {
|
|
|
|
intval = val;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void AddInts(int val1, int val2) {
|
|
|
|
intval = val1 + val2;
|
|
|
|
}
|
|
|
|
}
|