/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 22:31:01 UTC
  • Revision ID: josh@9ix.org-20110918223101-7s86wvx5dkkekhgg
now they chase you (hunt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "Monocle.h"
2
2
#include "Graphics/SpriteAnimation.h"
3
3
#include "LevelEditor/LevelEditor.h"
4
 
#include "Graphics/Tilemap.h"
5
4
 
6
5
using namespace Monocle;
7
6
 
14
13
    void Update();
15
14
 
16
15
    Vector2 velocity;
 
16
    float noisiness;
17
17
 
18
18
    SpriteAnimation *sprite;
 
19
    Entity *dark;
 
20
    AudioDeck *footsteps;
19
21
 
20
22
    int const FRICTION;
21
23
    float const MAXSPEED;
22
24
    int const ACCELERATION;    
23
25
  };
24
26
 
 
27
  class Creature : public Entity
 
28
  {
 
29
  public:
 
30
    Creature();
 
31
    void Update();
 
32
 
 
33
    Vector2 velocity;
 
34
    Vector2 direction;
 
35
    float aiTime;
 
36
    float noiseTime;
 
37
    std::string state;
 
38
    float maxspeed;
 
39
 
 
40
    SpriteAnimation *sprite;
 
41
    AudioDeck *skitter1;
 
42
    AudioAsset *alert;
 
43
    AudioDeck *sniff;
 
44
    AudioAsset *freakout;
 
45
 
 
46
    int const FRICTION;
 
47
    int const ACCELERATION;
 
48
    float const DEFAULT_MAXSPEED;
 
49
    float const STALKSPEED;
 
50
    //float const HUNTSPEED;
 
51
  };
 
52
 
 
53
  class Ping : public Entity
 
54
  {
 
55
  public:
 
56
    Ping();
 
57
    void Update();
 
58
    static Ping *NewPing(Vector2 pos, float d1, float d2, float t2);
 
59
 
 
60
    float d1, d2, t, t2;
 
61
 
 
62
    Sprite *sprite;
 
63
  };
 
64
 
25
65
  class DarkScene : public Scene
26
66
  {
27
67
  public:
28
68
    DarkScene();
29
69
    void Begin();
30
70
    void Update();
 
71
    void HideSpawners();
 
72
    void ShowSpawners();
 
73
    void Spawn();
31
74
 
32
75
    LevelEditor *levelEditor;
 
76
    
 
77
    Player *player;
33
78
  };
34
79
 
35
80
  class Text: public Entity