|
bool | Add (IStuff stuff) |
| Adds another piece of stuff (ordinary or container) to this container. If the new piece of stuff makes the weight exceed the MaxWeight, then the add is rejected, and false is returned. More...
|
|
bool | Remove (IStuff stuff) |
| Removes the specified piece of stuff (ordinary or container) from this container. More...
|
|
bool | Contains (IStuff stuff) |
| Returns true if the specified stuff (ordinary or container) is contained (directly or indirectly) in this container. More...
|
|
IEnumerator< IStuff > | GetEnumerator () |
| Returns an enumerator over this container More...
|
|
override string | ToString () |
| Returns a string representation of this container More...
|
|
|
String | Description [get, set] |
| The description of this object More...
|
|
int | MaxWeight [get, set] |
| The maximum weight that this container can carry More...
|
|
bool | IsEmpty [get] |
| true if this container is empty, false otherwise More...
|
|
int | Count [get] |
| The number of OrdinarStuff in this container, directly + indirectly More...
|
|
int | Weight [get] |
| The accumulated weight of the ordinary stuff in this container, and in possible sub-containers More...
|
|
int | Weight [get] |
| The (accumulated) weight of this object More...
|
|
String | Description [get] |
| The description of this object More...
|
|
bool CompositePlasticBag.StuffContainer.Add |
( |
IStuff |
stuff | ) |
|
Adds another piece of stuff (ordinary or container) to this container. If the new piece of stuff makes the weight exceed the MaxWeight, then the add is rejected, and false is returned.
- Parameters
-
stuff | the stuff to be added |
- Returns
- true if the stuff was added, false otherwise
bool CompositePlasticBag.StuffContainer.Contains |
( |
IStuff |
stuff | ) |
|
Returns true if the specified stuff (ordinary or container) is contained (directly or indirectly) in this container.
- Parameters
-
stuff | the stuff to look for |
- Returns
- true if the specified stuff (ordinary or container) is contained (directly or indirectly) in this container.
IEnumerator<IStuff> CompositePlasticBag.StuffContainer.GetEnumerator |
( |
| ) |
|
Returns an enumerator over this container
- Returns
- an enumerator over this container
bool CompositePlasticBag.StuffContainer.Remove |
( |
IStuff |
stuff | ) |
|
Removes the specified piece of stuff (ordinary or container) from this container.
- Parameters
-
stuff | the stuff to be removed |
- Returns
- true if the stuff was in the container and is now removed, otherwise false
override string CompositePlasticBag.StuffContainer.ToString |
( |
| ) |
|
Returns a string representation of this container
- Returns
- a string representation of this container
int CompositePlasticBag.StuffContainer.Count |
|
get |
The number of OrdinarStuff in this container, directly + indirectly
String CompositePlasticBag.StuffContainer.Description |
|
getset |
The description of this object
bool CompositePlasticBag.StuffContainer.IsEmpty |
|
get |
true if this container is empty, false otherwise
int CompositePlasticBag.StuffContainer.MaxWeight |
|
getset |
The maximum weight that this container can carry
int CompositePlasticBag.StuffContainer.Weight |
|
get |
The accumulated weight of the ordinary stuff in this container, and in possible sub-containers
The documentation for this class was generated from the following file: