File: KikiPlayer.i

package info (click to toggle)
kiki-the-nano-bot 1.0.2%2Bdfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,992 kB
  • ctags: 6,989
  • sloc: cpp: 33,853; python: 6,994; makefile: 244; objc: 80; ansic: 35; sh: 2
file content (48 lines) | stat: -rw-r--r-- 1,652 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

// __________________________________________________________________________________________________
%nodefault KikiStatusDisplay;

class KikiStatusDisplay 
{
    public: // ........................................................................ PUBLIC
    
    void		show ();
    void		hide ();
};

// __________________________________________________________________________________________________
%nodefault KikiPlayback;

class KikiPlayback
{
    public: // ........................................................................ PUBLIC
    
    static void	start		( const std::string filename );
    static void	stop		();
};    

// __________________________________________________________________________________________________
%nodefault KikiPlayer;

class KikiPlayer : public KikiBot
{
    public: // ........................................................................ PUBLIC

    void		die			();
    void		reborn			();
    void		reset			();

    void		startRecorder	 	( const std::string & file );    
    void		saveRecorder	 	();
    
    KProjection * 	getProjection 		();
    
    bool 		handleKey 		( const KKey & key );
    bool 		handleKeyRelease	( const KKey & key );
    void 		recordKeyForAction	( const std::string & actionName );
    static std::string	getActionForKey		( const std::string & keyName );
    static std::string	getKeyForAction		( const std::string & actionName );
    static void		setKeyForAction		( const std::string & keyName, const std::string & actionName );
    
    static void		setObjectColor		( const char * color_name, const KColor & color );
};