File: KikiObject.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 (44 lines) | stat: -rw-r--r-- 1,624 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

// __________________________________________________________________________________________________
%nodefault KikiActionObject;

class KikiActionObject
{
    public: // ........................................................................ PUBLIC

    void		addAction		( KikiAction * action );
    void		removeAction		( KikiAction * action );
    void		startTimedAction	( KikiAction * action, int duration = -1 );
    void		startTimer		( int duration, int mode );
    KikiAction *	getActionWithName	( const std::string & name );
    KikiAction *	getActionWithId		( int actionId );

    int			addEventWithName	( const std::string & );
    KikiEvent *		getEventWithName	( const std::string & name );
    KikiEvent *		getEventWithId		( int actionId );

    const char * 	getClassName		() const;
};

// __________________________________________________________________________________________________
%nodefault KikiObject;

class KikiObject : public KikiActionObject
{
    public: // ........................................................................ PUBLIC

    void		setName			( const std::string & );
    std::string		getName			() const;
    
    KikiPos		getPos			() const;
    virtual void	setPosition		( const KVector & v );
    KVector		getPosition		() const;
    void		setOrientation		( const KQuaternion & q );
    KQuaternion		getOrientation		() const;
    void		setCurrentOrientation	( const KQuaternion & q );
    KQuaternion		getCurrentOrientation	() const;

    virtual bool	isSpaceEgoistic 	() const;
        
    const char * 	getClassName		() const;
};