Broken pos
This commit is contained in:
parent
11d928c4f3
commit
3af13d0a8b
24 changed files with 304 additions and 146 deletions
|
@ -18,14 +18,17 @@ func add_from_side(stack : Stack, ang_diff : float) -> Stack
|
|||
|
||||
## Returns if conditions of adding are met
|
||||
@abstract
|
||||
func can_add() -> bool
|
||||
func can_add(item : Item = null) -> bool
|
||||
@abstract
|
||||
func can_add_from_side(ang_diff : float) -> bool
|
||||
func can_add_from_side(ang_diff : float, item : Item = null) -> bool
|
||||
|
||||
## Tries to take first item. Returns null if no items in inventory
|
||||
@abstract
|
||||
func pop() -> Stack
|
||||
|
||||
@abstract
|
||||
func peek() -> Stack
|
||||
|
||||
## Tries to take certain item from inventory. Returns null if no item found
|
||||
@abstract
|
||||
func take(item : Item,amount: int) -> Stack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue