MOEntity

From MaratisWiki
Revision as of 02:18, 8 February 2014 by Dahnielson (Talk | contribs)
Jump to: navigation, search


Contents

API

MMeshRef* MOEntity::m_meshRefNone

bool MOEntity::m_isInvisibleNone

unsigned int MOEntity::m_animationIdNone

int MOEntity::m_currentLoopNone

float MOEntity::m_animationSpeedNone

float MOEntity::m_currentFrameNone

MPhysicsProperties* MOEntity::m_physicsPropertiesNone

MBox3d MOEntity::m_boundingBoxNone

MOEntity::MOEntity(MMeshRef *meshRef)

MOEntity::~MOEntity(void)

MOEntity::MOEntity(const MOEntity &entity)

int MOEntity::getType(void)

void MOEntity::setActive(bool active)

void MOEntity::setInvisible(bool invisible)

bool MOEntity::isInvisible(void)

MMesh* MOEntity::getMesh(void)

void MOEntity::setMeshRef(MMeshRef *meshRef)

MMeshRef* MOEntity::getMeshRef(void)

void MOEntity::changeAnimation(unsigned int animationId)

bool MOEntity::isAnimationOver(void)

void MOEntity::setAnimationSpeed(float animationSpeed)

void MOEntity::setCurrentFrame(float currentFrame)

unsigned int MOEntity::getAnimationId(void)

float MOEntity::getAnimationSpeed(void)

float MOEntity::getCurrentFrame(void)

void MOEntity::deletePhysicsProperties(void)

MPhysicsProperties* MOEntity::createPhysicsProperties(void)

MPhysicsProperties* MOEntity::getPhysicsProperties(void)

MBox3d* MOEntity::getBoundingBox(void)

void MOEntity::update(void)

void MOEntity::updateVisibility(MOCamera *camera)


MOEntity is one of the most important objects. It is associated with a mesh and can be moved and rotated around the scene.

It can have physics, so it can collide with other objects.

An entity can be anything from a character, an item, a weapon, a room.

MOEntity is derived from MObject3d.

MOEntity uses MPhysicsProperties and MPhysicsConstraint which are defined in the MOEntity source code itself.


Source code

MOEntity.h

MOEntity.cpp


API

getType

See MObject3d::getType.

setActive

See MObject3d#Active.

Invisible

setInvisible

[...]

isInvisible

[...]

Mesh

getMesh

[...]

setMeshRef

[...]

getMeshRef

[...]

Animation

changeAnimation

[...]

isAnimationOver

[...]

setAnimationSpeed

[...]

setCurrentFrame

[...]

getAnimationId

[...]

getAnimationSpeed

[...]

getCurrentFrame

[...]

Physics

deletePhysicsProperties

[...]

createPhysicsProperties

[...]

getPhysicsProperties

[...]

Bounding box

getBoundingBox

[...]

Update

update

[...]

Visibility

updateVisibility

[...]

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox