/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-17 03:16:50 UTC
  • Revision ID: josh@9ix.org-20110917031650-z4zm6jm68luxs400
bare necessary assets

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"
4
5
 
5
6
using namespace Monocle;
6
7
 
13
14
    void Update();
14
15
 
15
16
    Vector2 velocity;
16
 
    float noisiness;
17
 
 
18
 
    SpriteAnimation *sprite;
19
 
    Entity *dark;
20
 
    AudioDeck *footsteps;
21
 
 
22
 
    int const FRICTION;
23
 
    float const MAXSPEED;
24
 
    int const ACCELERATION;    
25
 
  };
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
 
 
45
 
    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;
 
17
 
 
18
    SpriteAnimation *sprite;
 
19
 
 
20
    float const VELOCITY;
62
21
  };
63
22
 
64
23
  class DarkScene : public Scene
67
26
    DarkScene();
68
27
    void Begin();
69
28
    void Update();
70
 
    void HideSpawners();
71
 
    void ShowSpawners();
72
 
    void Spawn();
73
29
 
74
30
    LevelEditor *levelEditor;
75
 
    
76
 
    Player *player;
77
31
  };
78
32
 
79
33
  class Text: public Entity