From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance
  • R/O
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

無人機動兵器ダンジョン探索ゲーム JAVAベース


Commit MetaInfo

修订版34 (tree)
时间2015-07-06 21:44:18
作者manjihq

Log Message

パーツ一覧を整列して表示するように変更
機体の旋回速度を調整

更改概述

差异

--- CarnageHack2/trunk/src/CarnageHack/Oke.java (revision 33)
+++ CarnageHack2/trunk/src/CarnageHack/Oke.java (revision 34)
@@ -250,7 +250,7 @@
250250 destroycount = 0;
251251 chipx = 0;
252252 chipy = 0;
253- turn_rate = 5;
253+ turn_rate = 1;
254254 speed_count = 0;
255255 tempture = 0;
256256 recalc_speed();
@@ -309,7 +309,7 @@
309309 option_status = OPTION_NO_USE;
310310 chipx = 0;
311311 chipy = 0;
312- turn_rate = 5;
312+ turn_rate = 1;
313313 speed_count = 0;
314314 tempture = 0;
315315 recalc_speed();
@@ -751,21 +751,22 @@
751751 } else {
752752 speed_count = speed;
753753 }
754+ if (status == STATUS_TURN) {
755+ if (param == TURN_LEFT) {
756+ deg -= turn_rate;
757+ if (deg < 0) {
758+ deg += 360;
759+ }
760+ } else {
761+ deg += turn_rate;
762+ if (deg >= 360) {
763+ deg -= 360;
764+ }
765+ }
766+ }
754767 if (speed_count == speed) {
755768 option_status = OPTION_NO_USE;
756- if (status == STATUS_TURN) {
757- if (param == TURN_LEFT) {
758- deg -= turn_rate;
759- if (deg < 0) {
760- deg += 360;
761- }
762- } else {
763- deg += turn_rate;
764- if (deg >= 360) {
765- deg -= 360;
766- }
767- }
768- } else if (status == STATUS_GET) {
769+ if (status == STATUS_GET) {
769770 int dx = x + move_deltax[get_direction()][MOVE_FORWARD];
770771 int dy = y + move_deltay[get_direction()][MOVE_FORWARD];
771772 get_item_task(dungeon, dx, dy);
--- CarnageHack2/trunk/src/CarnageHack/CHArrayList.java (revision 33)
+++ CarnageHack2/trunk/src/CarnageHack/CHArrayList.java (revision 34)
@@ -1,6 +1,7 @@
11 package CarnageHack;
22
33 import java.lang.reflect.Array;
4+import java.util.Arrays;
45
56 /**
67 * 配列クラス
@@ -165,6 +166,20 @@
165166 }
166167 return array;
167168 }
169+
170+ /**
171+ * 要素をソートする
172+ */
173+ public void sort() {
174+ int i;
175+ Object wk[];
176+ wk = new Object[current_size];
177+ toArray(wk);
178+ Arrays.sort(wk);
179+ for (i = 0; i < current_size; i++) {
180+ Array.set(data, i, wk[i]);
181+ }
182+ }
168183 }
169184
170185 //EOF
--- CarnageHack2/trunk/src/CarnageHack/CarnageHack.java (revision 33)
+++ CarnageHack2/trunk/src/CarnageHack/CarnageHack.java (revision 34)
@@ -24,7 +24,7 @@
2424 */
2525 public final class CarnageHack extends Panel implements ActionListener {
2626
27- public static final String version = "CarnageHack2 V1.3.0 alpha";
27+ public static final String version = "CarnageHack2 V1.3.1 alpha";
2828 public static final ResourceBundle resource;
2929 public static CHArrayList main_weapon_list;
3030 public static CHArrayList sub_weapon_list;
@@ -288,6 +288,8 @@
288288 wk += field[0];
289289 collected_parts.add(wk);
290290 }
291+ collected_parts.sort();
292+ parts.sort();
291293 }
292294 }
293295
@@ -766,6 +768,7 @@
766768 while ((wkline = r.readLine()) != null) {
767769 parts.add(wkline);
768770 }
771+ parts.sort();
769772 r.close();
770773 } catch (IOException e) {
771774 CHutil.MessageBox(resource.getString("newUser"),