• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiona863a407fd874b0d76a743d94564fe270098fe86 (tree)
Time2019-04-24 22:50:20
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 mind_type と mind_power 構造体を mind.h へ移動。

Change Summary

Incremental Difference

--- a/src/autopick.c
+++ b/src/autopick.c
@@ -14,6 +14,8 @@
1414 #include "angband.h"
1515 #include "util.h"
1616
17+#include "mind.h"
18+
1719 #include "store.h"
1820 #include "player-status.h"
1921 #include "player-move.h"
--- a/src/mind.c
+++ b/src/mind.c
@@ -17,6 +17,8 @@
1717 #include "angband.h"
1818 #include "util.h"
1919
20+#include "mind.h"
21+
2022 #include "floor.h"
2123 #include "melee.h"
2224 #include "spells.h"
--- a/src/mind.h
+++ b/src/mind.h
@@ -1,5 +1,21 @@
11 #pragma once
22
3+/* Mindcrafters */
4+typedef struct mind_type mind_type;
5+struct mind_type
6+{
7+ PLAYER_LEVEL min_lev;
8+ MANA_POINT mana_cost;
9+ PERCENTAGE fail;
10+ concptr name;
11+};
12+
13+typedef struct mind_power mind_power;
14+struct mind_power
15+{
16+ mind_type info[MAX_MIND_POWERS];
17+};
18+
319 /* mind.c */
420 extern mind_power const mind_powers[5];
521 extern void mindcraft_info(char *p, int use_mind, int power);
--- a/src/types.h
+++ b/src/types.h
@@ -1878,21 +1878,6 @@ struct kamae
18781878 concptr info;
18791879 };
18801880
1881-/* Mindcrafters */
1882-typedef struct mind_type mind_type;
1883-struct mind_type
1884-{
1885- PLAYER_LEVEL min_lev;
1886- MANA_POINT mana_cost;
1887- PERCENTAGE fail;
1888- concptr name;
1889-};
1890-
1891-typedef struct mind_power mind_power;
1892-struct mind_power
1893-{
1894- mind_type info[MAX_MIND_POWERS];
1895-};
18961881
18971882 /* Imitator */
18981883
Show on old repository browser