<commit_before>#include "ShipIA.h"

using namespace Ogre;

ShipIA::ShipIA(void) : ShipAbstract()
{
    this->typeObject = ObjectRoot::SHIP_IA;
}

ShipIA::~ShipIA(void)
{

}

void ShipIA::updatePosition(void)
{
   Ogre::Real sx, sy, cx, cy;

    if(GestSceneManager::projectSizeAndPos(GestSceneManager::getCamera(0)->getCamera(), this->getNode()->convertLocalToWorldPosition(this->getNode()->getPosition()), this->getEntity()->getWorldBoundingSphere().getRadius(),sx, sy, cx, cy)){
        cx *= 800;
        cy *= 600;
        sx = (sx + 1)* 400;
        sy = (sy + 1)* 300;
        //Utils::log("("+Utils::toString(sx)+";"+Utils::toString(sy)+")   =   "+""+"["+Utils::toString(cx)+";"+Utils::toString(cy)+"]"+":"+Utils::toString(this->getEntity()->getBoundingRadius()));
        Ogre::Vector2 pos;
        //GestSceneManager::getScreenspaceCoords()
        GestSceneManager::getScreenspaceCoords(this->getEntity(), GestSceneManager::getCamera(0)->getCamera(),pos);
       // Utils::log("("+Utils::toString(pos.x*800)+";"+Utils::toString(pos.y*600)+")");
    }else
    {
        //Utils::log("hidden("+Utils::toString(sx)+";"+Utils::toString(sy)+")   =   "+""+"["+Utils::toString(cx)+";"+Utils::toString(cy)+"]"+":"+Utils::toString(this->getEntity()->getBoundingRadius()));

    }
	if (this->getAcceleration() != 0)
	{
		this->setSpeed(this->getSpeed()+this->getAcceleration());
		this->setAcceleration(0);
	}
	if (this->getSpeed() != 0)
	{
		this->moveRelative(0.0, 0.0, this->getSpeed());
	}
}<commit_msg>Suppression des références qui restaient chez vous vers mes fonctions de tests<commit_after>#include "ShipIA.h"

using namespace Ogre;

ShipIA::ShipIA(void) : ShipAbstract()
{
    this->typeObject = ObjectRoot::SHIP_IA;
}

ShipIA::~ShipIA(void)
{

}

void ShipIA::updatePosition(void)
{
	if (this->getAcceleration() != 0)
	{
		this->setSpeed(this->getSpeed()+this->getAcceleration());
		this->setAcceleration(0);
	}
	if (this->getSpeed() != 0)
	{
		this->moveRelative(0.0, 0.0, this->getSpeed());
	}
}
{'fraction_non_alphanumeric': 0.22559760956175298, 'fraction_numerical': 0.018426294820717132, 'mean_word_length': 5.143730886850153, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 34, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '602230', 'n_tokens_mistral': 752, 'n_tokens_neox': 718, 'n_words': 91}