summaryrefslogtreecommitdiff
path: root/src/map/magic.h
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-12-25 05:00:31 -0500
committerJared Adams <jaxad0127@gmail.com>2009-12-26 00:40:11 -0700
commit634aeeb9d58b01f9de6632a014a063ef0c4cf31e (patch)
tree70023dd2bcc12a3f96ec6f118d80e27411920531 /src/map/magic.h
parent113fcc4f0a7a0921e94bc415515dd4b393a29d60 (diff)
downloadtmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.gz
tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.bz2
tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.xz
tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.zip
Used the "indent" C formatting program from GNU to do some clean ups
The command options used was: -nbad -bap -sc -bl -blf -bli0 -cli4 -cbi0 -di5 -nbc -bls -ip2 -nut -ts4 -bap -i4 -sob -npsl
Diffstat (limited to 'src/map/magic.h')
-rw-r--r--src/map/magic.h41
1 files changed, 13 insertions, 28 deletions
diff --git a/src/map/magic.h b/src/map/magic.h
index e15ca76..99ae647 100644
--- a/src/map/magic.h
+++ b/src/map/magic.h
@@ -6,12 +6,10 @@
#define MAGIC_CONFIG_FILE "conf/magic.conf"
-
typedef struct map_session_data character_t;
typedef struct block_list entity_t;
-struct invocation; /* Spell invocation */
-
+struct invocation; /* Spell invocation */
/**
* Try to cast magic.
@@ -24,17 +22,14 @@ struct invocation; /* Spell invocation */
* \return 1 or -1 if the input message was magic and was handled by this function, 0 otherwise. -1 is returned when the
* message should not be repeated.
*/
-int
-magic_message(character_t *caster,
- char *spell, size_t spell_len);
+int magic_message (character_t * caster, char *spell, size_t spell_len);
/**
* Removes the shroud from a character
*
* \param character The character to remove the shroud from
*/
-void
-magic_unshroud(character_t *character);
+void magic_unshroud (character_t * character);
/**
* Notifies a running spell that a status_change timer triggered by the spell has expired
@@ -45,61 +40,51 @@ magic_unshroud(character_t *character);
* \param supplanted Whether the status_change finished normally (0) or was supplanted by a new status_change (1)
*/
void
-spell_effect_report_termination(int invocation, int bl_id, int sc_id, int supplanted);
-
+spell_effect_report_termination (int invocation, int bl_id, int sc_id,
+ int supplanted);
/**
* Initialise all spells, read config data
*/
-void
-do_init_magic();
+void do_init_magic ();
/**
* Identifies the invocation used to trigger a spell
*
* Returns NULL if not found
*/
-char *
-magic_find_invocation(char *spellame);
+char *magic_find_invocation (char *spellame);
/**
* Identifies the invocation used to denote a teleport location
*
* Returns NULL if not found
*/
-char *
-magic_find_anchor_invocation(char *teleport_location);
-
+char *magic_find_anchor_invocation (char *teleport_location);
/**
* Execute a spell invocation and sets up timers to finish
*/
-void
-spell_execute(struct invocation *invocation);
+void spell_execute (struct invocation *invocation);
/**
* Continue an NPC script embedded in a spell
*/
-void
-spell_execute_script(struct invocation *invocation);
+void spell_execute_script (struct invocation *invocation);
/**
* Stops all magic bound to the specified character
*
*/
-void
-magic_stop_completely(character_t *c);
+void magic_stop_completely (character_t * c);
/**
* Attacks with a magical spell charged to the character
*
* Returns 0 if there is no charged spell or the spell is depleted.
*/
-int
-spell_attack(int caster, int target);
+int spell_attack (int caster, int target);
-
-void
-spell_free_invocation(struct invocation *invocation);
+void spell_free_invocation (struct invocation *invocation);
#endif /* !defined(MAGIC_H_) */