Sokoban
Public Member Functions | Public Attributes | List of all members
Barrel Struct Reference

Struct which represents a barrel. More...

#include <State.h>

Public Member Functions

 Barrel (int x_p, int y_p)
 Constructor. More...
 
bool operator== (const Barrel &b) const
 Determines if barrel is equal to another. More...
 

Public Attributes

int x
 
int y
 

Detailed Description

Struct which represents a barrel.

Constructor & Destructor Documentation

◆ Barrel()

Barrel::Barrel ( int  x_p,
int  y_p 
)
inline

Constructor.

Sets default values for variables

Member Function Documentation

◆ operator==()

bool Barrel::operator== ( const Barrel b) const
inline

Determines if barrel is equal to another.

Parameters
bAnother barrel.
Returns
Bool variable determining if barrel is equal to another.

Member Data Documentation

◆ x

int Barrel::x

Horizontal position of the barrel.

◆ y

int Barrel::y

Vertical position of the barrel.


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