rails.game.move
Interface MoveableHolder

All Known Subinterfaces:
CompanyI, GameManagerI, PrivateCompanyI, PublicCompanyI, TokenHolder
All Known Implementing Classes:
City, Company, GameManager, GameManager_1835, GameManager_1856, GameManager_18EU, Investor_1880, MapHex, Portfolio, PrivateCompany, PublicCompany, PublicCompany_1825, PublicCompany_1856, PublicCompany_1880, PublicCompany_CGR

public interface MoveableHolder


Method Summary
 boolean addObject(Moveable object, int[] position)
          Add an object to its list at a certain position.
 int[] getListIndex(Moveable object)
           
 java.lang.String getName()
           
 boolean removeObject(Moveable object)
           
 

Method Detail

addObject

boolean addObject(Moveable object,
                  int[] position)
Add an object to its list at a certain position.

Parameters:
object - The Moveable object to be added.
position - Position to insert object at. O: at front, -1, at end, >0: at that position.
Returns:
True if successful.

removeObject

boolean removeObject(Moveable object)

getName

java.lang.String getName()

getListIndex

int[] getListIndex(Moveable object)