/minild29

To get this branch, use:
bzr branch http://9ix.org/bzr/minild29

« back to all changes in this revision

Viewing changes to Dark.h

  • Committer: Josh C
  • Date: 2011-09-18 16:12:57 UTC
  • Revision ID: josh@9ix.org-20110918161257-zshzdmi0e62idum1
some more stalk logic

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    void Update();
14
14
 
15
15
    Vector2 velocity;
 
16
    float noisiness;
16
17
 
17
18
    SpriteAnimation *sprite;
 
19
    Entity *dark;
18
20
    AudioDeck *footsteps;
19
21
 
20
22
    int const FRICTION;
31
33
    Vector2 velocity;
32
34
    Vector2 direction;
33
35
    float aiTime;
 
36
    float noiseTime;
34
37
    std::string state;
35
38
 
36
39
    SpriteAnimation *sprite;
37
40
    AudioDeck *skitter1;
 
41
    AudioAsset *alert;
 
42
    AudioAsset *stalk;
38
43
 
39
44
    int const FRICTION;
40
45
    float const MAXSPEED;
41
 
    int const ACCELERATION;     
 
46
    int const ACCELERATION;
 
47
    float const STALKSPEED;
 
48
    float const HUNTSPEED;
 
49
  };
 
50
 
 
51
  class Ping : public Entity
 
52
  {
 
53
  public:
 
54
    Ping();
 
55
    void Update();
 
56
    static Ping *NewPing(Vector2 pos, float d1, float d2, float t2);
 
57
 
 
58
    float d1, d2, t, t2;
 
59
 
 
60
    Sprite *sprite;
42
61
  };
43
62
 
44
63
  class DarkScene : public Scene
49
68
    void Update();
50
69
 
51
70
    LevelEditor *levelEditor;
 
71
    
 
72
    Player *player;
52
73
  };
53
74
 
54
75
  class Text: public Entity