<commit_before>#pragma once

#include "Globals.h"

class SphereObject : public MainObject
{
protected:
	Vec3f mSpeed;
	bool SlowDown;

	int state;
	double statetime;

public:
	SphereObject(); //Constructer
	SphereObject(float sred, float sgreen, float sblue, float salpha, float ssize, int stexturenumber);
	SphereObject(float x, float y, float z);
	SphereObject(float x, float y, float z, int mstate);
	SphereObject(float x, float y, float z, float size, float speedx, float speedy, float speedz);
	SphereObject(float sred, float sgreen, float sblue, float salpha, float ssize, int stexturenumber, float x, float y, float z);

	bool CheckSlowDown() { return SlowDown; }

	float GetSpeedX() { return mSpeed.x; }
	float GetSpeedY() { return mSpeed.y; }
	float GetSpeedZ() { return mSpeed.z; }

	int GetState() { return state; }

	void RandMovement();

	bool SetSlowDown(bool SlowDown) { SphereObject::SlowDown = SlowDown; }

	void AddSpeedX(float xspeed) { SphereObject::mSpeed.x += xspeed; }
	void AddSpeedY(float yspeed) { SphereObject::mSpeed.y += yspeed; }
	void AddSpeedZ(float zspeed) { SphereObject::mSpeed.z += zspeed; }

	void SpeedReset() { SphereObject::mSpeed = Vec3f::zero(); }

	void Select() { SphereObject::selected = true; SpeedReset(); }

	void SetState(int state) { SphereObject::state = state; SphereObject::age = 0.0; }

	void Update(double elapsed, vector <SphereObject *> *objects, Vec3f camerapoint);
	void SpeedUpdate(double elapsed);
};<commit_msg>Update Sphere.h<commit_after>#pragma once

#include "Globals.h"

class SphereObject : public MainObject
{
protected:
	Vec3f mSpeed;
	bool SlowDown;

	int state;
    
    bool decayed;
	double statetime;

public:
	SphereObject(); //Constructer
	SphereObject(float sred, float sgreen, float sblue, float salpha, float ssize, int stexturenumber);
	SphereObject(float x, float y, float z);
	SphereObject(float x, float y, float z, int mstate);
	SphereObject(float x, float y, float z, float size, float speedx, float speedy, float speedz);
	SphereObject(float sred, float sgreen, float sblue, float salpha, float ssize, int stexturenumber, float x, float y, float z);

	bool CheckSlowDown() { return SlowDown; }

	float GetSpeedX() { return mSpeed.x; }
	float GetSpeedY() { return mSpeed.y; }
	float GetSpeedZ() { return mSpeed.z; }

	int GetState() { return state; }
    
    bool GetDecayed() {return decayed;}

	void RandMovement();

	void SetSlowDown(bool SlowDown) { SphereObject::SlowDown = SlowDown; }

	void AddSpeedX(float xspeed) { SphereObject::mSpeed.x += xspeed; }
	void AddSpeedY(float yspeed) { SphereObject::mSpeed.y += yspeed; }
	void AddSpeedZ(float zspeed) { SphereObject::mSpeed.z += zspeed; }

	void SpeedReset() { SphereObject::mSpeed = Vec3f::zero(); }

	void Select() { SphereObject::selected = true; SpeedReset(); }
    
    void SetDecayed(bool decayed) {SphereObject::decayed = decayed;}

	void SetState(int state) { SphereObject::state = state; SphereObject::age = 0.0; }

	void Update(double elapsed, vector <SphereObject *> *objects, Vec3f camerapoint, ProgramSettings settings);
	void SpeedUpdate(double elapsed);
};
{'fraction_non_alphanumeric': 0.12002567394094994, 'fraction_numerical': 0.003209242618741977, 'mean_word_length': 5.160079051383399, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1627859', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1034, 'n_words': 308}