Documentation
¶
Index ¶
- type COKey
- type ClientFloor
- func (cf *ClientFloor) AddOrUpdateFieldObj(v *csprotocol.FieldObjClient)
- func (cf *ClientFloor) Cleanup()
- func (cf *ClientFloor) EnterFloor(TurnCount int)
- func (cf *ClientFloor) FindMovableDir(x, y int, dir way9type.Way9Type) way9type.Way9Type
- func (cf *ClientFloor) Forget()
- func (cf *ClientFloor) GetBias() bias.Bias
- func (cf *ClientFloor) GetFieldObjAt(x, y int) *csprotocol.FieldObjClient
- func (cf *ClientFloor) IsValidPos(x, y int) bool
- func (cf *ClientFloor) LeaveFloor()
- func (cf *ClientFloor) PosAddDir(x, y int, dir way9type.Way9Type) (int, int)
- func (cf *ClientFloor) ReplaceFloorTiles(tiles tilearea.TileArea)
- func (cf *ClientFloor) String() string
- func (cf *ClientFloor) UpdateFieldObjList(folsit []*csprotocol.FieldObjClient)
- func (cf *ClientFloor) UpdateFromViewportTile(vp *csprotocol.NotiVPTiles, vpXYLenList findnear.XYLenList) error
- type ClientFloorList
- type FOKey
- type GLClient
- type MeshMaker
- func (mm *MeshMaker) GetActiveObj(ft factiontype.FactionType, x, y int) *graphic.Mesh
- func (mm *MeshMaker) GetCarryObj(cokey COKey, x, y int) *graphic.Mesh
- func (mm *MeshMaker) GetDangerObj(dt dangertype.DangerType, x, y int) *graphic.Mesh
- func (mm *MeshMaker) GetFieldObj(at fieldobjacttype.FieldObjActType, dt fieldobjdisplaytype.FieldObjDisplayType, ...) *graphic.Mesh
- func (mm *MeshMaker) GetTile(tl tile.Tile, x, y int) *graphic.Mesh
- func (mm *MeshMaker) PutActiveObj(mesh *graphic.Mesh)
- func (mm *MeshMaker) PutCarryObj(mesh *graphic.Mesh)
- func (mm *MeshMaker) PutDangerObj(mesh *graphic.Mesh)
- func (mm *MeshMaker) PutFieldObj(mesh *graphic.Mesh)
- func (mm *MeshMaker) PutTile(tl tile.Tile, mesh *graphic.Mesh)
- func (mm *MeshMaker) String() string
- type ShiftInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type COKey ¶
type COKey struct {
CT carryingobjecttype.CarryingObjectType
ET equipslottype.EquipSlotType
FT factiontype.FactionType
PT potiontype.PotionType
ST scrolltype.ScrollType
Val int // log10 value
}
func NewCOKeyFromCarryObjClientOnFloor ¶
func NewCOKeyFromCarryObjClientOnFloor( src *csprotocol.CarryObjClientOnFloor) COKey
type ClientFloor ¶
type ClientFloor struct {
FloorInfo *csprotocol.FloorInfo
Tiles tilearea.TileArea `prettystring:"simple"`
Visited *visitarea.VisitArea `prettystring:"simple"`
XWrapper *wrapper.Wrapper `prettystring:"simple"`
YWrapper *wrapper.Wrapper `prettystring:"simple"`
XWrapSafe func(i int) int
YWrapSafe func(i int) int
Tiles4PathFind *tilearea4pathfind.TileArea4PathFind `prettystring:"simple"`
FieldObjPosMan uuidposmani.UUIDPosManI `prettystring:"simple"`
// for g3n
Scene *node.Node
// tiles at x,y
TileMeshs [tile.Tile_Count][][]*graphic.Mesh
// fieldobj at x,y
FieldObjMeshs [][]*graphic.Mesh
// contains filtered or unexported fields
}
func NewClientFloor ¶
func NewClientFloor( meshMaker *MeshMaker, FloorInfo *csprotocol.FloorInfo) *ClientFloor
func (*ClientFloor) AddOrUpdateFieldObj ¶
func (cf *ClientFloor) AddOrUpdateFieldObj(v *csprotocol.FieldObjClient)
func (*ClientFloor) Cleanup ¶
func (cf *ClientFloor) Cleanup()
func (*ClientFloor) EnterFloor ¶
func (cf *ClientFloor) EnterFloor(TurnCount int)
func (*ClientFloor) FindMovableDir ¶
func (*ClientFloor) Forget ¶
func (cf *ClientFloor) Forget()
func (*ClientFloor) GetBias ¶
func (cf *ClientFloor) GetBias() bias.Bias
func (*ClientFloor) GetFieldObjAt ¶
func (cf *ClientFloor) GetFieldObjAt(x, y int) *csprotocol.FieldObjClient
func (*ClientFloor) IsValidPos ¶
func (cf *ClientFloor) IsValidPos(x, y int) bool
func (*ClientFloor) LeaveFloor ¶
func (cf *ClientFloor) LeaveFloor()
func (*ClientFloor) ReplaceFloorTiles ¶
func (cf *ClientFloor) ReplaceFloorTiles(tiles tilearea.TileArea)
replace tile rect at x,y
func (*ClientFloor) String ¶
func (cf *ClientFloor) String() string
func (*ClientFloor) UpdateFieldObjList ¶
func (cf *ClientFloor) UpdateFieldObjList(folsit []*csprotocol.FieldObjClient)
func (*ClientFloor) UpdateFromViewportTile ¶
func (cf *ClientFloor) UpdateFromViewportTile( vp *csprotocol.NotiVPTiles, vpXYLenList findnear.XYLenList) error
type ClientFloorList ¶
type ClientFloorList []*ClientFloor
func (ClientFloorList) Len ¶
func (cfList ClientFloorList) Len() int
func (ClientFloorList) Less ¶
func (cfList ClientFloorList) Less(i, j int) bool
func (ClientFloorList) Sort ¶
func (cfList ClientFloorList) Sort()
func (ClientFloorList) Swap ¶
func (cfList ClientFloorList) Swap(i, j int)
type FOKey ¶
type FOKey struct {
AT fieldobjacttype.FieldObjActType
DT fieldobjdisplaytype.FieldObjDisplayType
}
type GLClient ¶
type GLClient struct {
GameInfo *csprotocol.GameInfo
ViewportXYLenList findnear.XYLenList
Name2Floor map[string]*ClientFloor
CurrentFloor *ClientFloor
// turn data
OLNotiData *csprotocol.NotiVPObjList
IsOverLoad bool
HPdiff float64
SPdiff float64
// contains filtered or unexported fields
}
func New ¶
func New( config *goguelikeconfig.GoguelikeConfig, gameInfo *csprotocol.GameInfo, c2tch, t2cch chan *csprotocol.Packet) *GLClient
func (*GLClient) GetPlayerXY ¶
func (*GLClient) GetTurnCount ¶
type MeshMaker ¶
type MeshMaker struct {
// contains filtered or unexported fields
}
func NewMeshMaker ¶
func (*MeshMaker) GetActiveObj ¶
func (mm *MeshMaker) GetActiveObj(ft factiontype.FactionType, x, y int) *graphic.Mesh
func (*MeshMaker) GetCarryObj ¶
func (*MeshMaker) GetDangerObj ¶
func (mm *MeshMaker) GetDangerObj(dt dangertype.DangerType, x, y int) *graphic.Mesh
func (*MeshMaker) GetFieldObj ¶
func (mm *MeshMaker) GetFieldObj( at fieldobjacttype.FieldObjActType, dt fieldobjdisplaytype.FieldObjDisplayType, x, y int) *graphic.Mesh
func (*MeshMaker) PutActiveObj ¶
func (*MeshMaker) PutCarryObj ¶
func (*MeshMaker) PutDangerObj ¶
func (*MeshMaker) PutFieldObj ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.