Update player information.

@param PlayerModel $player Login of the player.
487583
protected function updatePlayer($player)
    {
        $time = time();
        $upTime = $time - $this->playerLastUpTime[$player->getLogin()];
        $this->playerLastUpTime[$player->getLogin()] = $time;

        $player->setOnlineTime($player->getOnlineTime() + $upTime);
    }
898017
public function setPlayers(array $players = [])
    {
        if (empty($players)
            || count($players) != 2
            || array_unique(array_filter($players)) < 2
        ) {
            return false;
        }

        $this->players = $players;
    }
637302
public function update($object, $flush = true)
    {
        try {
            $entityManager = $this->getEntityManager($object);
            $this->preUpdate($object);
            $entityManager->persist($object);
            if ($flush) {
                $entityManager->flush();
            }
            $this->postUpdate($object);
        } catch (\PDOException $e) {
            throw new ModelManagerException('', 0, $e);
        }
    }
550572
function() {
            // set player position (player is not added to the enitity manager)
            this.entityManager.add(this.player.x, this.player.y, this.player);
            this.player.updateFov();
            this.lighting.update();
            this.renderer.setCenter(this.player.x, this.player.y);
            this.renderer.draw();
        }
183084
private void updateUser(CmsUser user) {

        setUserPasswordStatus(user, m_forceResetPassword.getValue().booleanValue());
        user.setDescription(m_description.getValue());
        user.setManaged(!m_selfmanagement.getValue().booleanValue());
        user.setEnabled(m_enabled.getValue().booleanValue());
        m_userdata.submit(user, m_cms, new Runnable() {

            public void run() {
                //
            }
        }, true);
    }
1180007
private function update($model)
    {
        $attrs = $this->getMutableAttributes($model);
        $values = array_values($attrs);
        $values[] = $model->{$this->key};
        $this->db
            ->connect()
            ->update($this->table, array_keys($attrs))
            ->where($this->key . ' = ?')
            ->execute($values);
    }
183160
public function castYes($login)
    {
        if ($this->currentVote) {
            $this->currentVote->castYes($login);

            $player = $this->playerStorage->getPlayerInfo($login);
            $this->dispatcher->dispatch("votemanager.voteyes", [$player, $this->currentVote]);
        }
    }
286375
public function updateUser(User $user)
    {
        $this->find("id", $user->id);
        $this->setUserData($user);
        $this->save();
    }
381464
function(player) {
		player.world = this;
		this.players[player.name.toLowerCase()] = player;
		this.announce(player.name+" has entered the world.");
		this.loadPlayerData(player);
	}
1340969
function updatePlayerState($playerLogin, $matchId, $state)
	{
		$this->db->execute(
			'UPDATE Players SET state = %d WHERE login = %s AND matchId = %d',
			$state,
			$this->db->quote($playerLogin),
			$matchId
		);
	}
649745
public function save(Player $player)
    {
        // First clear references. Player has no references that needs saving.
        $player->clearAllReferences(false);

        // Save and free memory.
        $player->save();
        PlayerTableMap::clearInstancePool();
    }
1079481
public function setActivity($player, int $activity): self
    {
        // var_dump($this);
        $result = $this
            ->filter(function ($array) use ($player) {
                return $array['player'] === $player;
            })
        ;

        $array = $result->first();
        $array['action'] = $activity;
        $this->put($result->keys()->first(), $array);

        return self::make($this->values()->toArray());
    }
391520
function getDemoTokenInfosForPlayer($player, $multicall = false)
    {
        $login = $this->getLogin($player);
        if ($login === false) {
            throw new InvalidArgumentException('player = ' . print_r($player, true));
        }

        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array($login), $this->structHandler('TokenInfos'));
        }
        return Structures\TokenInfos::fromArray($this->execute(ucfirst(__FUNCTION__), array($login)));
    }
703503
public function update($entity)
    {
        $eloquentModel = $this->getEloquentModel($entity, true);

        $this->updateRelations($eloquentModel, 'update');

        $eloquentModel->save();

        $eloquentModel->afterSaving($entity, 'update');
    }
1308862
public function giveButtonToPlayer(PlayerContract $player)
    {
        $playerIndex = $this->playersSatDown()
            ->filter
            ->equals($player)
            ->keys()
            ->first();

        if ($playerIndex === null) {
            throw TableException::invalidButtonPosition();
        }

        $this->button = $playerIndex;
    }
1202212
public void setPlayerIds(java.util.Collection<String> playerIds) {
        if (playerIds == null) {
            this.playerIds = null;
            return;
        }

        this.playerIds = new java.util.ArrayList<String>(playerIds);
    }
1214676
protected function updateUserFields(UserInterface $user)
    {
        if (null === $this->userDiscriminator) {
            $this->userDiscriminator = $this->container->get('rollerworks_multi_user.user_discriminator');
        }

        // Can only use the user manager when there is an user-system active
        if (null === $this->userDiscriminator->getCurrentUser() || true !== $this->userDiscriminator->getCurrentUserConfig()->getConfig('use_listener', true)) {
            return;
        }

        if (null === $this->userManager) {
            $this->userManager = $this->container->get('fos_user.user_manager');
        }

        $this->userManager->updateCanonicalFields($user);
        $this->userManager->updatePassword($user);
    }