Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629227
System.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
505 B
Referenced Files
None
Subscribers
None
System.h
View Options
//
// Created by Ido Mozes on 23/06/2019.
//
#ifndef SDL2_GAME_SYSTEM_H
#define SDL2_GAME_SYSTEM_H
#include
<initializer_list>
#include
<vector>
#include
<cmath>
#include
"Entity.h"
constexpr
uint64_t
createMask
(
std
::
initializer_list
<
int
>
types
)
noexcept
{
uint64_t
mask
=
0
;
for
(
int
bit
:
types
)
{
mask
|=
(
uint64_t
)
pow
(
2
,
bit
);
}
return
mask
;
}
class
System
{
public
:
virtual
void
update
(
std
::
vector
<
std
::
unique_ptr
<
Entity
>>
&
entities
)
=
0
;
};
#endif
//SDL2_GAME_SYSTEM_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 6:17 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
134817
Default Alt Text
System.h (505 B)
Attached To
Mode
R74 BloonsTD
Attached
Detach File
Event Timeline