/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 03:21:36 UTC
  • Revision ID: josh@9ix.org-20110918032136-bprcfnl3jg5xmjsx
track palyer noisiness, beginnings of "alert" state for creatures

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    Vector2 velocity;
34
34
    Vector2 direction;
35
35
    float aiTime;
36
 
    float noiseTime;
37
36
    std::string state;
38
 
    float maxspeed;
39
37
 
40
38
    SpriteAnimation *sprite;
41
39
    AudioDeck *skitter1;
42
 
    AudioAsset *alert;
43
 
    AudioDeck *sniff;
44
40
 
45
41
    int const FRICTION;
46
 
    int const ACCELERATION;
47
 
    float const DEFAULT_MAXSPEED;
48
 
    float const STALKSPEED;
49
 
    //float const HUNTSPEED;
50
 
  };
51
 
 
52
 
  class Ping : public Entity
53
 
  {
54
 
  public:
55
 
    Ping();
56
 
    void Update();
57
 
    static Ping *NewPing(Vector2 pos, float d1, float d2, float t2);
58
 
 
59
 
    float d1, d2, t, t2;
60
 
 
61
 
    Sprite *sprite;
 
42
    float const MAXSPEED;
 
43
    int const ACCELERATION;     
62
44
  };
63
45
 
64
46
  class DarkScene : public Scene
67
49
    DarkScene();
68
50
    void Begin();
69
51
    void Update();
70
 
    void HideSpawners();
71
 
    void ShowSpawners();
72
 
    void Spawn();
73
52
 
74
53
    LevelEditor *levelEditor;
75
54