view src/Humanoid.h @ 10:5727d511a13a

add src in Martial Project Xcode.
author tokumoritaichirou@nw0743.st.ie.u-ryukyu.ac.jp
date Wed, 03 Feb 2010 03:39:04 +0900
parents
children
line wrap: on
line source

/*
 *  Humanoid.h
 *  Martial
 *
 *  Created by ryoma on 10/01/27.
 *  Copyright 2010 琉球大学. All rights reserved.
 *
 */

#ifndef _HUMANOID_H_
#define _HUMANOID_H_

#include "Avatar.h"

/*!
    @class		Humanoid
    @abstract   Avatarの実装。人型のキャラクター
    @discussion パーツ定義をどうしようか検討中
*/


class Humanoid : public Avatar {
	protected:
		osg::Node* humanoidNode;
		osg::Node* body;
		osg::Node* leftArm;
		osg::Node* rightArm;
		osg::Node* leftLeg;
		osg::Node* rightLeg;
		osg::PositionAttitudeTransform* humanoidForm;
		osg::MatrixTransform* bodyForm;
		osg::MatrixTransform* headForm;
		osg::MatrixTransform* leftUpperArmForm;
		osg::MatrixTransform* rightUpperArmForm;
		osg::MatrixTransform* leftDownArmForm;
		osg::MatrixTransform* rightDownArmForm;
		osg::MatrixTransform* leftUpperLegForm;
		osg::MatrixTransform* rightUpperLegForm;
		osg::MatrixTransform* leftDownLegForm;
		osg::MatrixTransform* rightDownLegForm;
		float moveCount;
		virtual void walk() {};
		virtual void turn() {};
		virtual void jump() {};
		virtual void run() {};
		virtual void squat() {};
		virtual void down() {};
		virtual void wait() {};
		virtual void freeze() {};
		virtual void stop() {};
	public:
		Humanoid(char* name) : Avatar::Avatar(name) {};
};

#endif