• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision76fabee209912dc4ed86e64fe933ff9cc93a4d71 (tree)
Time2014-07-23 22:55:08
AuthorDeskull <desull@user...>
CommiterDeskull

Log Message

Add Doxygen comments to variables in tables.c.

Change Summary

Incremental Difference

--- a/src/tables.c
+++ b/src/tables.c
@@ -1,57 +1,66 @@
1-/* File: tables.c */
2-
3-/*
1+/*!
2+ * @file tables.c
3+ * @brief ゲーム情報テーブル / Angband Tables
4+ * @date 2014/07/23
5+ * @author
6+ * <pre>
47 * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
58 *
69 * This software may be copied and distributed for educational, research,
710 * and not for profit purposes provided that this copyright and statement
811 * are included in all such copies. Other copyrights may also apply.
12+ * </pre>
913 */
1014
11-/* Purpose: Angband Tables */
1215
1316 #include "angband.h"
1417
15-
16-
17-
18-/*
19- * Global array for looping through the "keypad directions"
18+/*!
19+ * キーパッドの方向を南から反時計回り順に列挙 / Global array for looping through the "keypad directions"
2020 */
2121 const s16b ddd[9] =
2222 { 2, 8, 6, 4, 3, 1, 9, 7, 5 };
2323
24-/*
25- * Global arrays for converting "keypad direction" into offsets
24+/*!
25+ * dddで定義した順にベクトルのX軸成分を定義 / Global arrays for converting "keypad direction" into offsets
2626 */
2727 const s16b ddx[10] =
2828 { 0, -1, 0, 1, -1, 0, 1, -1, 0, 1 };
2929
30+/*!
31+ * dddで定義した順にベクトルのY軸成分を定義 / Global arrays for converting "keypad direction" into offsets
32+ */
3033 const s16b ddy[10] =
3134 { 0, 1, 1, 1, 0, 0, 0, -1, -1, -1 };
3235
33-/*
34- * Global arrays for optimizing "ddx[ddd[i]]" and "ddy[ddd[i]]"
36+/*!
37+ * ddd越しにベクトルのX軸成分を定義 / Global arrays for optimizing "ddx[ddd[i]]" and "ddy[ddd[i]]"
3538 */
3639 const s16b ddx_ddd[9] =
3740 { 0, 0, 1, -1, 1, -1, 1, -1, 0 };
3841
42+/*!
43+ * ddd越しにベクトルのY軸成分を定義 / Global arrays for optimizing "ddx[ddd[i]]" and "ddy[ddd[i]]"
44+ */
3945 const s16b ddy_ddd[9] =
4046 { 1, -1, 0, 0, 1, 1, -1, -1, 0 };
4147
4248
43-/*
44- * Circular keypad direction array
49+/*!
50+ * キーパッドの円環状方向配列 / Circular keypad direction array
4551 */
4652 const s16b cdd[8] =
4753 { 2, 3, 6, 9, 8, 7, 4, 1 };
4854
49-/*
50- * Global arrays for optimizing "ddx[cdd[i]]" and "ddy[cdd[i]]"
55+/*!
56+ * cdd越しにベクトルのX軸成分を定義 / Global arrays for optimizing "ddx[cdd[i]]" and "ddy[cdd[i]]"
5157 */
5258 const s16b ddx_cdd[8] =
5359 { 0, 1, 1, 1, 0, -1, -1, -1 };
5460
61+/*!
62+ * cdd越しにベクトルのY軸成分を定義 / Global arrays for optimizing "ddx[cdd[i]]" and "ddy[cdd[i]]"
63+ */
5564 const s16b ddy_cdd[8] =
5665 { 1, 1, 0, -1, -1, -1, 0, 1 };
5766
Show on old repository browser