Public Types | Public Member Functions
anonymous_namespace{inventory.cpp}::SlotUsed Struct Reference

Public Types

typedef Itemargument_type

Public Member Functions

bool operator() (const Item *const item) const

Detailed Description

Definition at line 48 of file inventory.cpp.

Member Typedef Documentation

◆ argument_type

typedef Item* anonymous_namespace{inventory.cpp}::SlotUsed::argument_type

Definition at line 56 of file inventory.cpp.

Member Function Documentation

◆ operator()()

bool anonymous_namespace{inventory.cpp}::SlotUsed::operator() ( const Item *const  item) const

Definition at line 52 of file inventory.cpp.

53  {
54  return (item != nullptr) && item->mId >= 0 && item->mQuantity > 0;
55  }
int mQuantity
Definition: item.h:248
int mId
Definition: item.h:246

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