<commit_before>//
//  collisions.hpp
//  7drl-violation
//
//  Copyright © 2016 <NAME>
//

#ifndef collisions_h
#define collisions_h

#include <algorithm>
#include <unordered_map>
#include <vector>
#include <iterator>

#include "map.hpp"
#include "interactions.hpp"
#include "position.hpp"

class CollisionManager
{
    std::vector<Position> positions;
    std::vector<Velocity> velocities;
public:
    CollisionManager()
    {
        positions.reserve(64);
        velocities.reserve(64);
    }
    
    // Returns player position, temporary?
    Position update(Position const& player, MapSize const& level_bounds, InteractionQueue& interactions)
    {
        // Update all entities positions
        for(auto const& v: velocities) {
            // FIXME: How to make a copy and not leak
            
            
        }
        
        auto new_positions = std::vector<Position>(positions.size());
        
        std::transform(std::begin(positions),
                       std::end(positions),
                       std::begin(velocities),<commit_msg>Cleaned up forloop<commit_after>//
//  collisions.hpp
//  7drl-violation
//
//  Copyright © 2016 <NAME>
//

#ifndef collisions_h
#define collisions_h

#include <algorithm>
#include <unordered_map>
#include <vector>
#include <iterator>

#include "map.hpp"
#include "interactions.hpp"
#include "position.hpp"

class CollisionManager
{
    std::vector<Position> positions;
    std::vector<Velocity> velocities;
public:
    CollisionManager()
    {
        positions.reserve(64);
        velocities.reserve(64);
    }
    
    // Returns player position, temporary?
    Position update(Position const& player, MapSize const& level_bounds, InteractionQueue& interactions)
    {
        // Update all entities positions
        auto new_positions = std::vector<Position>(positions.size());
        
        std::transform(std::begin(positions),
                       std::end(positions),
                       std::begin(velocities),
{'fraction_non_alphanumeric': 0.11791269443050677, 'fraction_numerical': 0.009031610637230306, 'mean_word_length': 2.6386861313868613, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '943191', 'n_tokens_mistral': 594, 'n_tokens_neox': 563, 'n_words': 130}