Class BulletDispenser


  • public class BulletDispenser
    extends java.lang.Object
    Stores and handles firing of patterns
    Author:
    Riju De
    • Method Summary

      Modifier and Type Method Description
      void addPattern​(Pattern pattern)
      Add a pattern to the bullet dispensers arsenal
      Bullet[] update​(java.lang.Boolean fire)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BulletDispenser

        public BulletDispenser​(Entity creator)
        Parameters:
        creator - Owner of the BulletDispenser
    • Method Detail

      • addPattern

        public void addPattern​(Pattern pattern)
        Add a pattern to the bullet dispensers arsenal
        Parameters:
        pattern - Pattern to add
      • update

        public Bullet[] update​(java.lang.Boolean fire)
        Parameters:
        fire - Should the dispenser fire?
        Returns:
        bullets fired