~vcs-imports/aethyra/client

« back to all changes in this revision

Viewing changes to src/eathena/db/effectdb.h

  • Committer: Tametomo
  • Date: 2011-03-15 20:36:31 UTC
  • mfrom: (3933.1.1)
  • Revision ID: git-v1:108836f8f9dee6d1320b0498afea83e5f97352bc
Merge branch 'master' of github.com:Tametomo/Aethyra

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class Being;
31
31
 
 
32
struct AmbientEffect
 
33
{
 
34
     float x;
 
35
     float y;
 
36
     float speedX;
 
37
     float speedY;
 
38
     unsigned duration;
 
39
     std::string type;
 
40
};
 
41
 
32
42
struct EffectDescription
33
43
{
34
44
     int id;
 
45
     AmbientEffect ambient;
35
46
     std::string GFX;
36
47
     std::string SFX;
37
48
};
51
62
    void unload();
52
63
 
53
64
    /**
54
 
     * Triggers a effect with the id, at
55
 
     * the specified being.
 
65
     * Triggers a effect with the id, at the specified being.
56
66
     */
57
67
    bool trigger(const int id, Being* being);
58
68
 
59
69
    /**
60
 
     * Triggers a effect with the id, at
61
 
     * the specified x and y coordinate.
 
70
     * Triggers a effect with the id, at the specified x and y coordinate.
62
71
     */
63
72
    bool trigger(const int id, const int x, const int y);
64
73
};