/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
 
    std::string state;
37
 
    float maxspeed;
38
 
 
39
 
    SpriteAnimation *sprite;
40
 
    AudioDeck *skitter1;
41
 
    AudioAsset *alert;
42
 
    AudioDeck *sniff;
43
 
 
44
 
    int const FRICTION;
45
 
    int const ACCELERATION;
46
 
    float const DEFAULT_MAXSPEED;
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;
 
17
 
 
18
    SpriteAnimation *sprite;
 
19
 
 
20
    float const VELOCITY;
61
21
  };
62
22
 
63
23
  class DarkScene : public Scene
66
26
    DarkScene();
67
27
    void Begin();
68
28
    void Update();
69
 
    void HideSpawners();
70
 
    void ShowSpawners();
71
 
    void Spawn();
72
29
 
73
30
    LevelEditor *levelEditor;
74
 
    
75
 
    Player *player;
76
31
  };
77
32
 
78
33
  class Text: public Entity