Class MobileChannelOutput

    • Method Detail

      • write

        public void write​(java.lang.Object object)
        Description copied from interface: ChannelOutput
        Write an Object to the channel.
        Specified by:
        write in interface ChannelOutput
        Parameters:
        object - the object to write to the channel
      • destroy

        public void destroy()
        Description copied from interface: Networked
        Destroys the Networked construct
        Specified by:
        destroy in interface Networked
      • getLocation

        public NetLocation getLocation()
        Description copied from interface: Networked
        Gets the networked location of the Networked construct
        Specified by:
        getLocation in interface Networked
        Returns:
        The location of the construct
      • poison

        public void poison​(int strength)
        Description copied from interface: Poisonable
        This injects poison into the channel. If the channel was not explicitly constructed to be poisonable or if the strength of poison is not greater than the channel immunity level, the poison will have no effect.
        Specified by:
        poison in interface Poisonable
        Parameters:
        strength - the strength of the poison (must be >= 0).
      • writeObject

        private void writeObject​(java.io.ObjectOutputStream output)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readObject

        private void readObject​(java.io.ObjectInputStream input)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException