function setPosition()
    {
        $oldX = $this->posX;
        $oldY = $this->posY;
        $oldZ = $this->posZ;

        $args = func_get_args();

        if (!empty($args)) $this->posX = array_shift($args);

        if (!empty($args)) $this->posY = array_shift($args);

        if (!empty($args)) $this->posZ = array_shift($args);

        $this->onMove($oldX, $oldY, $oldZ);
    }