• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision59154b14fbd7387efd8e7fa6abcac8b8506e7adb (tree)
Zeit2020-02-13 07:31:17
Autorsebastian_bugiu <sebastian_ <bugiu@head...>
Commitersebastian_bugiu <sebastian_

Log Message

Added some documentation.

Ändern Zusammenfassung

Diff

diff -r 2d8633a93d98 -r 59154b14fbd7 core/src/headwayEnt/HotshotEngine/ENG_Utility.java
--- a/core/src/headwayEnt/HotshotEngine/ENG_Utility.java Tue Jan 14 22:45:18 2020 +0200
+++ b/core/src/headwayEnt/HotshotEngine/ENG_Utility.java Thu Feb 13 00:31:17 2020 +0200
@@ -2077,6 +2077,7 @@
20772077 }
20782078
20792079 // It happens that we only support power of two textures
2080+ @Deprecated
20802081 public static int getWidthAndHeight(int width, int height) {
20812082 if (width > height) {
20822083 return GLPixelUtil.optionalPO2(width);
@@ -2092,10 +2093,19 @@
20922093 return getRandom().nextFloat(s) * (max - min) + min;
20932094 }
20942095
2096+ /**
2097+ *
2098+ * @return the random number between -1.0f and 1.0f.
2099+ */
20952100 public static float symmetricRandom() {
20962101 return symmetricRandom(null);
20972102 }
20982103
2104+ /**
2105+ *
2106+ * @param s
2107+ * @return the random number between -1.0f and 1.0f.
2108+ */
20992109 public static float symmetricRandom(String s) {
21002110 return 2.0f * getRandom().nextFloat(s) - 1.0f;
21012111 }
diff -r 2d8633a93d98 -r 59154b14fbd7 core/src/headwayEnt/blackholedarksun/components/EntityProperties.java
--- a/core/src/headwayEnt/blackholedarksun/components/EntityProperties.java Tue Jan 14 22:45:18 2020 +0200
+++ b/core/src/headwayEnt/blackholedarksun/components/EntityProperties.java Thu Feb 13 00:31:17 2020 +0200
@@ -1,26 +1,32 @@
11 package headwayent.blackholedarksun.components;
22
3-import headwayent.blackholedarksun.animations.AnimationFactory;
4-import headwayent.blackholedarksun.physics.EntityMotionState;
5-import headwayent.blackholedarksun.physics.EntityRigidBody;
6-import headwayent.hotshotengine.*;
7-import headwayent.hotshotengine.audio.ENG_Playable;
8-import headwayent.hotshotengine.renderer.ENG_Entity;
9-import headwayent.hotshotengine.renderer.ENG_Item;
10-import headwayent.hotshotengine.renderer.ENG_Node.TransformSpace;
11-import headwayent.hotshotengine.renderer.ENG_SceneNode;
12-
13-import java.util.HashMap;
14-import java.util.LinkedList;
15-import java.util.Map;
16-import java.util.concurrent.locks.ReentrantLock;
17-
183 import com.artemis.Entity;
194 import com.badlogic.gdx.math.Vector3;
205 import com.badlogic.gdx.physics.bullet.collision.btCollisionShape;
216 import com.badlogic.gdx.physics.bullet.dynamics.btRigidBody;
227
23-import headwayent.blackholedarksun.*;
8+import java.util.HashMap;
9+import java.util.Map;
10+import java.util.concurrent.locks.ReentrantLock;
11+
12+import headwayent.blackholedarksun.Animation;
13+import headwayent.blackholedarksun.GameWorld;
14+import headwayent.blackholedarksun.MainActivity;
15+import headwayent.blackholedarksun.Utility;
16+import headwayent.blackholedarksun.animations.AnimationFactory;
17+import headwayent.blackholedarksun.physics.EntityMotionState;
18+import headwayent.blackholedarksun.physics.EntityRigidBody;
19+import headwayent.hotshotengine.ENG_AxisAlignedBox;
20+import headwayent.hotshotengine.ENG_Math;
21+import headwayent.hotshotengine.ENG_Quaternion;
22+import headwayent.hotshotengine.ENG_Utility;
23+import headwayent.hotshotengine.ENG_Vector3D;
24+import headwayent.hotshotengine.ENG_Vector4D;
25+import headwayent.hotshotengine.audio.ENG_Playable;
26+import headwayent.hotshotengine.renderer.ENG_Entity;
27+import headwayent.hotshotengine.renderer.ENG_Item;
28+import headwayent.hotshotengine.renderer.ENG_Node.TransformSpace;
29+import headwayent.hotshotengine.renderer.ENG_SceneNode;
2430
2531 public class EntityProperties extends MultiplayerComponent implements ENG_Playable {
2632
diff -r 2d8633a93d98 -r 59154b14fbd7 core/src/headwayEnt/blackholedarksun/gamestatedebugger/FrameDeserializer.java
--- a/core/src/headwayEnt/blackholedarksun/gamestatedebugger/FrameDeserializer.java Tue Jan 14 22:45:18 2020 +0200
+++ b/core/src/headwayEnt/blackholedarksun/gamestatedebugger/FrameDeserializer.java Thu Feb 13 00:31:17 2020 +0200
@@ -21,7 +21,7 @@
2121 FrameInterval frameInterval = context.deserialize(frameIntervalElem, FrameInterval.class);
2222 frameIntervals.add(frameInterval);
2323 }
24- // Never fucking call it on the JsoneElement sent as a param. It will result in an INFINITE LOOP!!!
24+ // Never fucking call it on the JsonElement sent as a param. It will result in an INFINITE LOOP!!!
2525 // Frame frame = context.deserialize(jsonObject, Frame.class);
2626 // frame._clearFrameIntervalList();
2727 Frame frame = (Frame) MainApp.getMainThread().getFrameFactory().createFrame(MainApp.getMainThread().getDebuggingState());