File: entity.hpp

package info (click to toggle)
sol2 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 23,096 kB
  • sloc: cpp: 43,816; ansic: 1,018; python: 356; sh: 288; makefile: 202
file content (25 lines) | stat: -rw-r--r-- 375 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#ifndef PROGRAM_ENTITY_HPP
#define PROGRAM_ENTITY_HPP

#include <zm/vec3.hpp>

class entity {
private:
	zm::vec3 position_;

public:
	entity() {
		this->position_ = { 1, 1, 1 };
	}

	zm::vec3 get_position() const {
		return this->position_;
	}
	void set_position(zm::vec3 v) {
		this->position_ = v;
	}
};

#endif // PROGRAM_ENTITY_HPP