/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 18:28:45 UTC
  • Revision ID: josh@9ix.org-20110918182845-4hn7df1fr378bql0
andĀ theĀ asset

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;
36
37
    std::string state;
 
38
    float maxspeed;
37
39
 
38
40
    SpriteAnimation *sprite;
39
41
    AudioDeck *skitter1;
 
42
    AudioAsset *alert;
 
43
    AudioDeck *sniff;
40
44
 
41
45
    int const FRICTION;
42
 
    float const MAXSPEED;
43
 
    int const ACCELERATION;     
 
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;
44
62
  };
45
63
 
46
64
  class DarkScene : public Scene
49
67
    DarkScene();
50
68
    void Begin();
51
69
    void Update();
 
70
    void HideSpawners();
 
71
    void ShowSpawners();
 
72
    void Spawn();
52
73
 
53
74
    LevelEditor *levelEditor;
54
75