Class Neo

    • Constructor Detail

      • Neo

        public Neo()
    • Method Detail

      • canDropCoin

        @InspectionAttribute
        public boolean canDropCoin()
        Returns:
        whether Neo can drop a coin
      • canCollectCoin

        @InspectionAttribute
        public boolean canCollectCoin()
        Returns:
        whether there is a coin to collect
      • getCurrentlyCollectableCoins

        public List<Coin> getCurrentlyCollectableCoins()
        Returns:
        a List of all Coins on Neos field
      • setCoins

        protected void setCoins​(int coins)
        Add the amount of coins to the inventory
        Parameters:
        coins - the amount of coins to set
      • setCoinsInWallet

        public void setCoinsInWallet​(int amountOfCoins)
        Helper Method that sets a fixed amount of coins for easier verification. Used in Verification of Task 2.1
        Parameters:
        amountOfCoins - the new amount of coins
      • getCoinsInWallet

        @InspectionAttribute
        public int getCoinsInWallet()
        Returns:
        the number of coins in neos wallet