• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision3ac109a0401dbf65e1ef9611510c0602417d2a62 (tree)
Time2019-05-01 13:46:48
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 activation_type 構造体を cmd-activate.h へ移動.

Change Summary

Incremental Difference

--- a/src/artifact.h
+++ b/src/artifact.h
@@ -1,5 +1,5 @@
11 #pragma once
2-
2+#include "cmd-activate.h"
33
44 typedef struct artifact_type artifact_type;
55
--- a/src/cmd-activate.h
+++ b/src/cmd-activate.h
@@ -1,7 +1,21 @@
1-extern void do_cmd_activate(void);
1+#pragma once
2+
3+extern void do_cmd_activate(void);
24 extern void do_cmd_activate_aux(INVENTORY_IDX item);
35 extern bool activate_artifact(object_type * o_ptr);
46
7+typedef struct {
8+ concptr flag;
9+ byte index;
10+ byte level;
11+ s32b value;
12+ struct {
13+ int constant;
14+ DICE_NUMBER dice;
15+ } timeout;
16+ concptr desc;
17+} activation_type;
18+
519 extern const activation_type activation_info[];
620
721
--- a/src/types.h
+++ b/src/types.h
@@ -1708,18 +1708,6 @@ typedef struct {
17081708 #endif
17091709
17101710 typedef struct {
1711- concptr flag;
1712- byte index;
1713- byte level;
1714- s32b value;
1715- struct {
1716- int constant;
1717- DICE_NUMBER dice;
1718- } timeout;
1719- concptr desc;
1720-} activation_type;
1721-
1722-typedef struct {
17231711 int flag;
17241712 int type;
17251713 concptr name;
Show on old repository browser