-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathbuffs.h
More file actions
52 lines (44 loc) · 978 Bytes
/
Copy pathbuffs.h
File metadata and controls
52 lines (44 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* buffs.h
*
* Created on: 14.11.2008
* Author: superfloh
*/
#ifndef BUFFS_H_
#define BUFFS_H_
#include "actors.h"
#ifdef __cplusplus
extern "C"
{
#endif // __cplusplus
extern int view_buffs;
extern int buff_icon_size;
/*!
* \ingroup network_actors
* \brief Updates the buffs with the actor_id.
*
* Find the player with ID \a actor_id and update their buffs.
*
* \param actor_id The server-side actor ID
* \param in_buffs The buffs.
*/
void update_actor_buffs(int actor_id, Uint32 in_buffs);
void update_actor_buffs_locked(actor *act, actor *attached, Uint32 in_buffs);
/*!
* \ingroup network_actors
* \brief Draw buffs.
*
* Draw the buffs for the actor using the coords.
*
* \param act actor object actor
* \param x x coord
* \param y y coord
* \param z z coord
* \retval int the scaled height of the buffs
*
*/
int draw_buffs(actor *act, float x, float y,float z);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif /* BUFFS_H_ */