Historique des modifications - Message

Message #11667

Sujet: Système d'animation d'irrlicht


TypeDateAuteurContenu
Création du message15-06-2015 16:34:54jonath313
Là j'ai bien essayé de passer IAnimatedMeshSceneNode* NePlayer au constructeur de AnimationManager. Ok je ne peux pas le passer par le template. j'ai alors fais :

Code c++ :


class RunningState(IAnimatedMeshSceneNode* NePlayer) : public AnimationBinder     ///|34|
{
...
}


Puis :

Code c++ :


class AnimationManager
{
    public:
        AnimationManager(IAnimatedMeshSceneNode* NePlayer,int start, int end, bool loop = false)
        {
            anim.push_back(new RunningState(NePlayer)<1, 0, 80, true>());
        }
...


Donc j'ai voulus passer le IAnimatedMeshSceneNode* à la classe RunningState. Sois j'ai mal lu sois j'ai mal compris mais çà ne marche pas :

||=== Build: Debug in Jeu (compiler: GNU GCC Compiler) ==neutral

...\\CPlayerAnimation.h|34|error: expected ')' before '*' token|
...\\CPlayerAnimation.h||In constructor 'AnimationManager::AnimationManager(irr::scene::IAnimatedMeshSceneNode*, int, int, bool)'neutral
C:\\Users\\Jonathan\\Jeu\\CPlayerAnimation.h|63|error: invalid use of incomplete type 'class RunningState'|
...\\CPlayerAnimation.h|34|error: forward declaration of 'class RunningState'|
...\\CPlayerAnimation.h|63|error: expected primary-expression before ')' token|
...\\CPlayerAnimation.h||In member function 'void AnimationManager::activate(int, bool)'neutral
...\\CPlayerAnimation.h|78|warning: comparison between signed and unsigned integer expressions [-Wsign-compare]|
||=== Build failed: 4 error(s), 2 warning(s) (0 minute(s), 2 second(s)) ==neutral

Retour

OptionsLiens officielsCaractéristiquesStatistiquesCommunauté
Préférences cookies
Corrections
irrlicht
irrklang
irredit
irrxml
Propulsé par Django
xhtml 1.0
css 2.1
884 membres
1441 sujets
11339 messages
Dernier membre inscrit: Saidov17
91 invités en ligne
membre en ligne: -
RSS Feed