diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-06-01 18:42:35 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-06-01 18:42:35 +0000 |
commit | 67a0736c51678e453497660ef7df7bd601e57101 (patch) | |
tree | 0e908e5b0dbfb84632347d71aeda3b3a4a93913a /src/map/status.h | |
parent | 2d2262df9727b962135d39b6f22a1a092dc80175 (diff) | |
download | hercules-67a0736c51678e453497660ef7df7bd601e57101.tar.gz hercules-67a0736c51678e453497660ef7df7bd601e57101.tar.bz2 hercules-67a0736c51678e453497660ef7df7bd601e57101.tar.xz hercules-67a0736c51678e453497660ef7df7bd601e57101.zip |
performance improvement initial commit for status change state functionality, this first commit covers status that makes you unable to move.
-- this cache the status changes into states saving dozens of checks whenever a unit moves/per cell.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16209 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.h')
-rw-r--r-- | src/map/status.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/status.h b/src/map/status.h index 56a019682..5b6c2296a 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -1408,6 +1408,12 @@ enum manner_flags MANNER_NOROOM = 0x10, }; +/* Status Change State Flags */ +enum scs_flag { + SCS_CONDITION = 0x00000001, /* this implies the flag has a condition (if-checkin) */ + SCS_NOMOVE = 0x00000002, /* unit unable to move */ +}; + //Define flags for the status_calc_bl function. [Skotlex] enum scb_flag { @@ -1556,6 +1562,9 @@ struct status_change { unsigned char count; //TODO: See if it is possible to implement the following SC's without requiring extra parameters while the SC is inactive. unsigned char jb_flag; //Joint Beat type flag + struct { + unsigned char move; + } cant;/* status change state flags */ //int sg_id; //ID of the previous Storm gust that hit you short comet_x, comet_y; // Point where src casted Comet - required to calculate damage from this point /** |