diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 2d5e634..010dfa3 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -22,6 +22,15 @@ + + + + + + + diff --git a/src/framework/RWT/RWTSprite.java b/src/framework/RWT/RWTSprite.java new file mode 100644 index 0000000..4d2c0a2 --- /dev/null +++ b/src/framework/RWT/RWTSprite.java @@ -0,0 +1,12 @@ +package framework.RWT; + + +import functions.Position; + +public class RWTSprite { + private int textureNo; + + // 表示座標 + private Position pos; + private +} diff --git a/src/functions/Position.java b/src/functions/Position.java new file mode 100644 index 0000000..3b09fcd --- /dev/null +++ b/src/functions/Position.java @@ -0,0 +1,34 @@ +package functions; + +public class Position implements Cloneable { + public T x, y, z; + + public Position() { + x = 0.0; + y = 0.0; + } + + public Position(T1 val1, T2 val2) { + first = val1; + second = val2; + } + + public void swap(Position t){ + Position tmp = this; + first = t.first; + second = t.second; + t = tmp; + } + + @SuppressWarnings("unchecked") + @Override + public Position clone(){ + Position p = new Position(); + try { + p = (Position)super.clone(); + } catch (CloneNotSupportedException e) { + e.printStackTrace(); + } + return p; + } +}