Skip navigation links
A B C E G I M O P R S T V 

G

getId() - Method in class Martian
Returns the id for this Martian.
getMartianAt(int) - Method in class MartianManager
Returns the ith Martian in MartianManager.martians or null if the index is invalid.
getMartianClosestTo(int) - Method in class MartianManager
Returns the Martian in MartianManager.martians that has an id closest to the input id.
getMartianClosestTo(Martian) - Method in class MartianManager
Returns the Martian in MartianManager.martians that has an id closest to the input Martian's id.
getMartianWithId(int) - Method in class MartianManager
Returns the Martian with id or null if not found.
getNumMartians() - Method in class MartianManager
Returns the number of Martains in MartianManager.martians.
getNumTeleporters() - Method in class MartianManager
Returns the number of Teleporters in MartianManager.teleporters.
getSortedMartians() - Method in class MartianManager
Returns a list of Martians sorted according to their id.
getTeleporterAt(int) - Method in class MartianManager
Returns the ith Teleporter in MartianManager.teleporters or null if the index is invalid.
getTenacity() - Method in class RedMartian
Returns the tenacity of this Martian.
getVolume() - Method in class Martian
Returns the volume for this Martian.
GreenMartian - Class in prob1
This class models a GreenMartian which is a subclass of Martian
GreenMartian(int, int) - Constructor for class GreenMartian
Creates a GreenMartian with the specified id and volume
GreenMartian(int) - Constructor for class GreenMartian
Creates a GreenMartian with the specified id and volume is set to 1.
groupSpeak() - Method in class MartianManager
Returns a string representing all the martians speaking.
groupTeleport(String) - Method in class MartianManager
Returns a string representing all the teleporters teleporting to dest.
A B C E G I M O P R S T V 
Skip navigation links