ecs
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
Position Struct Reference

2Dposition More...

Public Member Functions

bool operator== (const Position &other) const
 
void operator+= (const Velocity &vel)
 

Public Attributes

int x
 
int y
 

Friends

std::ostream & operator<< (std::ostream &os, const Position &p)
 

Detailed Description

2Dposition

Examples
TestEcs.cpp.

Member Function Documentation

◆ operator+=()

void Position::operator+= ( const Velocity vel)
inline
Examples
TestEcs.cpp.

◆ operator==()

bool Position::operator== ( const Position other) const
inline
Examples
TestEcs.cpp.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Position p 
)
friend
Examples
TestEcs.cpp.

Member Data Documentation

◆ x

int Position::x
Examples
TestEcs.cpp.

◆ y

int Position::y
Examples
TestEcs.cpp.

The documentation for this struct was generated from the following file: