public class Snake extends Object
| Constructor and Description |
|---|
Snake(int id,
javax.websocket.Session session) |
| Modifier and Type | Method and Description |
|---|---|
Location |
getHead() |
String |
getHexColor() |
int |
getId() |
String |
getLocationsJson() |
Collection<Location> |
getTail() |
protected void |
sendMessage(String msg) |
void |
setDirection(Direction direction) |
void |
update(Collection<Snake> snakes) |
protected void sendMessage(String msg)
public void update(Collection<Snake> snakes)
public Location getHead()
public Collection<Location> getTail()
public void setDirection(Direction direction)
public String getLocationsJson()
public int getId()
public String getHexColor()
Copyright © 2015 WSO2 Inc. All rights reserved.