diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-10 03:58:15 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-10 03:58:15 +0000 |
commit | e2856893e1bdaba52c1ff3e0cbd7a4635e7af90b (patch) | |
tree | 2bb49221533209ffdbb7e9cecb107fc734d57872 /src/map/map.h | |
parent | 8542722b5f295eb8d282cc22f894ec49b5368f40 (diff) | |
download | hercules-e2856893e1bdaba52c1ff3e0cbd7a4635e7af90b.tar.gz hercules-e2856893e1bdaba52c1ff3e0cbd7a4635e7af90b.tar.bz2 hercules-e2856893e1bdaba52c1ff3e0cbd7a4635e7af90b.tar.xz hercules-e2856893e1bdaba52c1ff3e0cbd7a4635e7af90b.zip |
- Added structure party_data and party_member_data to the map server to hold party-specific required information about parties including Monk/TK/SG/SN states and party member count.
- party Hp updates are no longer done each time the Hp is modified, but together with the party xy timer.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7083 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index c0ed9cf16..9f7fd1034 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -417,6 +417,27 @@ struct view_data { char sex;
unsigned dead_sit : 2;
};
+
+struct party_member_data {
+ struct map_session_data *sd;
+ unsigned int hp; //For HP,x,y refreshing.
+ unsigned short x, y;
+};
+
+struct party_data {
+ struct party party;
+ struct party_member_data data[MAX_PARTY];
+ unsigned char count; //Online count of members.
+ unsigned char itemc; //For item distribution.
+ struct {
+ unsigned family : 1; //Is this party a family?
+ unsigned monk : 1; //There's at least one monk in party?
+ unsigned sg : 1; //There's at least one Star Gladiator in party?
+ unsigned snovice :1; //There's a Super Novice
+ unsigned tk : 1; //There's a taekwon
+ } state;
+};
+
struct npc_data;
struct pet_db;
struct item_data;
@@ -668,7 +689,6 @@ struct map_session_data { } deal;
int party_invite,party_invite_account;
- short party_x,party_y; // should be short [zzo]
int guild_invite,guild_invite_account;
int guild_emblem_id,guild_alliance,guild_alliance_account;
|